Convert weapon plumbing to use integer damage modifiers.
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#endregion
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using OpenRA.Effects;
|
||||
using OpenRA.GameRules;
|
||||
using OpenRA.Graphics;
|
||||
@@ -45,7 +46,7 @@ namespace OpenRA.Mods.Cnc.Effects
|
||||
if (!impacted && weaponDelay-- <= 0)
|
||||
{
|
||||
var weapon = world.Map.Rules.Weapons[this.weapon.ToLowerInvariant()];
|
||||
weapon.Impact(target.CenterPosition, firedBy.PlayerActor, 1f);
|
||||
weapon.Impact(target.CenterPosition, firedBy.PlayerActor, Enumerable.Empty<int>());
|
||||
impacted = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace OpenRA.Mods.Cnc
|
||||
if (!info.Resources.Contains(r.Info.Name)) return;
|
||||
|
||||
var weapon = self.World.Map.Rules.Weapons[info.Weapon.ToLowerInvariant()];
|
||||
weapon.Impact(self.CenterPosition, self.World.WorldActor, 1f);
|
||||
weapon.Impact(self.CenterPosition, self.World.WorldActor, Enumerable.Empty<int>());
|
||||
poisonTicks = weapon.ReloadDelay;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user