Introduce WarheadArgs
- Passes additional arguments to warheads on impact - Uses that to reduce parameter count of DoImpact by 1
This commit is contained in:
@@ -78,7 +78,7 @@ namespace OpenRA.Mods.Common.Projectiles
|
||||
target = Target.FromPos(blockedPos);
|
||||
}
|
||||
|
||||
args.Weapon.Impact(target, args.SourceActor, args.DamageModifiers);
|
||||
args.Weapon.Impact(target, new WarheadArgs(args));
|
||||
world.AddFrameEndTask(w => w.Remove(this));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user