Merge pull request #11520 from reaperrr/IdleWander

Make civilians wander around when idle
This commit is contained in:
Oliver Brakmann
2016-07-04 11:50:35 +02:00
committed by GitHub
10 changed files with 38 additions and 13 deletions

View File

@@ -152,7 +152,7 @@ namespace OpenRA.Mods.D2k.Activities
sandworm.IsAttacking = false;
// There is a chance that the worm would just go away after attacking
if (self.World.SharedRandom.Next(100) <= sandworm.Info.ChanceToDisappear)
if (self.World.SharedRandom.Next(100) <= sandworm.WormInfo.ChanceToDisappear)
{
self.CancelActivity();
self.World.AddFrameEndTask(w => self.Dispose());