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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user