Mega Placement
Megas now have unique placement algorithms for their home sectors PerformanceStats can be marked as simple to hide heat and durability PerformanceStats automatically hide exponents when min and max are the same Some behaviors now have options to spread their effects over time
This commit is contained in:
parent
98371fc453
commit
61072de924
19 changed files with 352 additions and 80 deletions
|
|
@ -9,6 +9,9 @@ public class HeatData : BehaviorData
|
|||
[InspectableField, JsonProperty("heat"), Key(1)]
|
||||
public PerformanceStat Heat = new PerformanceStat();
|
||||
|
||||
[InspectableField, JsonProperty("perSecond"), Key(2)]
|
||||
public bool PerSecond;
|
||||
|
||||
public override IBehavior CreateInstance(GameContext context, Entity entity, Gear item)
|
||||
{
|
||||
return new Heat(context, this, entity, item);
|
||||
|
|
@ -35,7 +38,7 @@ public class Heat : IBehavior
|
|||
|
||||
public bool Update(float delta)
|
||||
{
|
||||
Entity.AddHeat(Context.Evaluate(_data.Heat, Item, Entity));
|
||||
Entity.AddHeat(Context.Evaluate(_data.Heat, Item, Entity) * (_data.PerSecond ? delta : 1));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue