Tweak CashTick and Oil Derricks
This commit is contained in:
@@ -15,11 +15,11 @@ namespace OpenRA.Mods.RA
|
||||
{
|
||||
class CashTricklerInfo : ITraitInfo
|
||||
{
|
||||
public readonly int Period = 10;
|
||||
public readonly int Amount = 3;
|
||||
public readonly int Period = 50;
|
||||
public readonly int Amount = 15;
|
||||
public readonly bool ShowTicks = true;
|
||||
public readonly int TickLifetime = 30;
|
||||
public readonly int TickVelocity = 2;
|
||||
public readonly int TickVelocity = 1;
|
||||
|
||||
public object Create (ActorInitializer init) { return new CashTrickler(this); }
|
||||
}
|
||||
|
||||
@@ -30,8 +30,8 @@ namespace OpenRA.Mods.RA.Effects
|
||||
this.color = color;
|
||||
this.lifetime = lifetime;
|
||||
this.velocity = velocity;
|
||||
s = "${0}".F(value);
|
||||
this.pos = pos - 0.5f*Game.Renderer.BoldFont.Measure(s).ToFloat2();
|
||||
s = "{0}${1}".F(value < 0 ? "-" : "+", value);
|
||||
this.pos = pos - 0.5f*Game.Renderer.TinyBoldFont.Measure(s).ToFloat2();
|
||||
remaining = lifetime;
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace OpenRA.Mods.RA.Effects
|
||||
|
||||
public IEnumerable<Renderable> Render()
|
||||
{
|
||||
Game.Renderer.BoldFont.DrawTextWithContrast(s, pos - Game.viewport.Location, color, Color.Black,1);
|
||||
Game.Renderer.TinyBoldFont.DrawTextWithContrast(s, pos - Game.viewport.Location, color, Color.Black,1);
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user