# HG changeset patch # User Wuzzy # Date 1560524700 -7200 # Node ID 309aa93df1109089e9a32a6efaa71f6d6c3bd48b # Parent 7a8cc8bc963efb998318844ccd0b7d8161bef420 Continental supplies: Bots select random continent diff -r 7a8cc8bc963e -r 309aa93df110 share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua --- a/share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua Thu Jun 13 15:07:03 2019 +0200 +++ b/share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua Fri Jun 14 17:05:00 2019 +0200 @@ -1201,6 +1201,11 @@ InitWeaponsMenu(CurrentHedgehog) CS.TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]=0 CS.INIT_TEAMS[GetHogTeamName(CurrentHedgehog)] = 2 + if GetHogLevel(CurrentHedgehog) ~= 0 then + -- Set random continent for bots + SetWeapon(amNothing) + CS.CONFIRM_CONTINENT_SELECTION=500 + end else --if its not the initialization turn