Objectives all use a consistent definition of "dead" defined in Mind now. DieCondition is no longer inverted. (#4006)

More brain fixes, mainly
This commit is contained in:
20kdc
2021-05-15 16:46:55 +01:00
committed by GitHub
parent ae8887dea6
commit f6a2daffa9
4 changed files with 40 additions and 44 deletions

View File

@@ -20,18 +20,13 @@ namespace Content.Server.Objectives.Conditions
return new DieCondition {_mind = mind};
}
public string Title => Loc.GetString("Die a glorius death");
public string Title => Loc.GetString("Die a glorious death");
public string Description => Loc.GetString("Die.");
public SpriteSpecifier Icon => new SpriteSpecifier.Rsi(new ResourcePath("Mobs/Ghosts/ghost_human.rsi"), "icon");
public float Progress => _mind?
.OwnedEntity?
.GetComponentOrNull<IMobStateComponent>()?
.IsDead() ?? false
? 0f
: 1f;
public float Progress => (_mind?.CharacterDeadIC ?? true) ? 1f : 0f;
public float Difficulty => 1f;