move HackyAI bot from world to player context
This commit is contained in:
@@ -38,7 +38,7 @@ namespace OpenRA.Mods.RA
|
|||||||
var player = new Player(w, w.Map.Players[slot.MapPlayer], playerIndex++);
|
var player = new Player(w, w.Map.Players[slot.MapPlayer], playerIndex++);
|
||||||
w.AddPlayer(player);
|
w.AddPlayer(player);
|
||||||
|
|
||||||
/* todo: init its bot -- but only on the host! */
|
/* todo: only activate the bot option that's selected! */
|
||||||
if (Game.IsHost)
|
if (Game.IsHost)
|
||||||
foreach (var bot in player.PlayerActor.TraitsImplementing<IBot>())
|
foreach (var bot in player.PlayerActor.TraitsImplementing<IBot>())
|
||||||
bot.Activate(player);
|
bot.Activate(player);
|
||||||
|
|||||||
@@ -83,6 +83,7 @@ Player:
|
|||||||
InitialCash: 5000
|
InitialCash: 5000
|
||||||
ActorGroupProxy:
|
ActorGroupProxy:
|
||||||
DeveloperMode:
|
DeveloperMode:
|
||||||
|
HackyAI:
|
||||||
|
|
||||||
|
|
||||||
World:
|
World:
|
||||||
@@ -180,7 +181,6 @@ World:
|
|||||||
SpatialBins:
|
SpatialBins:
|
||||||
BinSize: 4
|
BinSize: 4
|
||||||
Shroud:
|
Shroud:
|
||||||
HackyAI:
|
|
||||||
|
|
||||||
MINP:
|
MINP:
|
||||||
Mine:
|
Mine:
|
||||||
|
|||||||
Reference in New Issue
Block a user