Expose number of air mines in Lua variable AirMinesNum
authorWuzzy <almikes@aol.com>
Sun, 20 Nov 2016 01:50:24 +0100
changeset 11968 0c1420aaa59e
parent 11967 209a66df2340
child 11969 f3c1679694d3
Expose number of air mines in Lua variable AirMinesNum
ChangeLog.txt
hedgewars/uScript.pas
--- a/ChangeLog.txt	Sun Nov 20 01:31:09 2016 +0100
+++ b/ChangeLog.txt	Sun Nov 20 01:50:24 2016 +0100
@@ -86,6 +86,7 @@
  + New call: SetAmmoDescriptionAppendix(ammoType, descAppend) -- Append a custom text to the description of an ammo type without overwriting it
  + New hook: onVisualGearAdd(vgUid) -- called when a visual gear is added
  + New hook: onVisualGearDelete(vgUid) -- called when a visual gear is deleted
+ + New variable: AirMinesNum -- Number of air mines being placed on a medium-sized map
  + New variable: WorldEdge -- World edge type (weNone, weWrap, weBounce, weSea)
 
 0.9.21 -> 0.9.22
--- a/hedgewars/uScript.pas	Sun Nov 20 01:31:09 2016 +0100
+++ b/hedgewars/uScript.pas	Sun Nov 20 01:50:24 2016 +0100
@@ -2826,6 +2826,7 @@
 ScriptSetInteger('MinesNum', cLandMines);
 ScriptSetInteger('MinesTime', cMinesTime);
 ScriptSetInteger('MineDudPercent', cMineDudPercent);
+ScriptSetInteger('AirMinesNum', cAirMines);
 ScriptSetInteger('Explosives', cExplosives);
 ScriptSetInteger('Delay', cInactDelay);
 ScriptSetInteger('Ready', cReadyDelay);
@@ -2856,6 +2857,7 @@
 cLandMines       := ScriptGetInteger('MinesNum');
 cMinesTime       := ScriptGetInteger('MinesTime');
 cMineDudPercent  := ScriptGetInteger('MineDudPercent');
+cAirMines        := ScriptGetInteger('AirMinesNum');
 cExplosives      := ScriptGetInteger('Explosives');
 cInactDelay      := ScriptGetInteger('Delay');
 cReadyDelay      := ScriptGetInteger('Ready');