Merge pull request #7220 from obrakmann/d2k-worm-option-and-maps

Add worms to d2k maps and add lobby option to disable them
This commit is contained in:
Matthias Mailänder
2014-12-31 13:03:37 +01:00
35 changed files with 708 additions and 19 deletions

View File

@@ -32,6 +32,7 @@ namespace OpenRA.Mods.Cnc.Traits
public void Killed(Actor self, AttackInfo e)
{
if (!self.World.LobbyInfo.GlobalSettings.Creeps) return;
if (e.Warhead == null || e.Warhead.DeathType != spawnViceroidInfo.DeathType) return;
if (self.World.SharedRandom.Next(100) > spawnViceroidInfo.Probability) return;