Improve rotting examine text (#24689)

This commit is contained in:
Kara
2024-01-29 00:50:17 -07:00
committed by GitHub
parent ef6ca154e7
commit 1a74311c9f
3 changed files with 27 additions and 7 deletions

View File

@@ -133,7 +133,8 @@ public sealed class RottingSystem : SharedRottingSystem
return;
}
var description = "perishable-" + stage;
var isMob = HasComp<MobStateComponent>(perishable);
var description = "perishable-" + stage + (!isMob ? "-nonmob" : string.Empty);
args.PushMarkup(Loc.GetString(description, ("target", Identity.Entity(perishable, EntityManager))));
}