Rename Stances to Relationships in the yaml api
This commit is contained in:
@@ -20,7 +20,7 @@ namespace OpenRA.Mods.Common.Traits.Render
|
||||
class CashTricklerBarInfo : TraitInfo, Requires<CashTricklerInfo>
|
||||
{
|
||||
[Desc("Defines to which players the bar is to be shown.")]
|
||||
public readonly PlayerRelationship DisplayStances = PlayerRelationship.Ally;
|
||||
public readonly PlayerRelationship DisplayRelationships = PlayerRelationship.Ally;
|
||||
|
||||
public readonly Color Color = Color.Magenta;
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace OpenRA.Mods.Common.Traits.Render
|
||||
float ISelectionBar.GetValue()
|
||||
{
|
||||
var viewer = self.World.RenderPlayer ?? self.World.LocalPlayer;
|
||||
if (viewer != null && !info.DisplayStances.HasStance(self.Owner.RelationshipWith(viewer)))
|
||||
if (viewer != null && !info.DisplayRelationships.HasStance(self.Owner.RelationshipWith(viewer)))
|
||||
return 0;
|
||||
|
||||
var complete = cashTricklers.Min(ct => (float)ct.Ticks / ct.Info.Interval);
|
||||
|
||||
Reference in New Issue
Block a user