Captain's Captain's Jetpack (#10195)
This commit is contained in:
@@ -21,7 +21,7 @@ namespace Content.Server.Objectives.Conditions
|
||||
/// instead of "steal advanced magboots. Should be a loc string.
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
[DataField("owner", required: true)] private string _owner = string.Empty;
|
||||
[DataField("owner")] private string? _owner = null;
|
||||
|
||||
public IObjectiveCondition GetAssigned(Mind.Mind mind)
|
||||
{
|
||||
@@ -38,7 +38,10 @@ namespace Content.Server.Objectives.Conditions
|
||||
? prototype.Name
|
||||
: "[CANNOT FIND NAME]";
|
||||
|
||||
public string Title => Loc.GetString("objective-condition-steal-title", ("owner", Loc.GetString(_owner)), ("itemName", Loc.GetString(PrototypeName)));
|
||||
public string Title =>
|
||||
_owner == null
|
||||
? Loc.GetString("objective-condition-steal-title-no-owner", ("owner", ("itemName", Loc.GetString(PrototypeName))))
|
||||
: Loc.GetString("objective-condition-steal-title", ("owner", Loc.GetString(_owner)), ("itemName", Loc.GetString(PrototypeName)));
|
||||
|
||||
public string Description => Loc.GetString("objective-condition-steal-description",("itemName", Loc.GetString(PrototypeName)));
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
objective-condition-steal-title-no-owner = Steal the {$itemName}.
|
||||
objective-condition-steal-title = Steal the {$owner}'s {$itemName}.
|
||||
objective-condition-steal-description = We need you to steal {$itemName}. Don't get caught.
|
||||
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
conditions:
|
||||
- !type:StealCondition
|
||||
prototype: CaptainIDCard
|
||||
owner: job-name-captain
|
||||
|
||||
- type: objective
|
||||
id: KillRandomObjective
|
||||
@@ -191,4 +190,3 @@
|
||||
conditions:
|
||||
- !type:StealCondition
|
||||
prototype: JetpackCaptainFilled
|
||||
owner: job-name-captain
|
||||
|
||||
Reference in New Issue
Block a user