Add Lua globals: AMMO_INFINITE and NoPointX
authorWuzzy <Wuzzy2@mail.ru>
Thu, 02 Aug 2018 01:45:45 +0200
changeset 13595 0adc82afb784
parent 13594 ddd90e92c4c3
child 13596 7699987d9f70
Add Lua globals: AMMO_INFINITE and NoPointX
ChangeLog.txt
hedgewars/uScript.pas
--- a/ChangeLog.txt	Thu Aug 02 01:34:26 2018 +0200
+++ b/ChangeLog.txt	Thu Aug 02 01:45:45 2018 +0200
@@ -80,6 +80,8 @@
  + New parameter: ShowMission: 6th param. forceDisplay: Set to true to prevent this particular mission panel to be hidden manually by player
  + New Lua library: Achievements
  + Can enable infinite fly time for jetpack/Birdy by setting health to JETPACK_FUEL_INFINITE or BIRDY_ENERGY_INFINITE, respectively
+ + New global: NoPointX. Value of CursorX and CursorY if cursor is inactive
+ + New global: AMMO_INFINITE. Value for infinite ammo count for AddAmmo and other functions
  * Changed global: lfCurrentHog becomes lfCurHogCrate
  * Fixed variable: TotalRounds was -1 (instead of 0) in first real round after hog placement phase
  * AI sometimes intentionally shot hedgehogs with aihDoesntMatter set
--- a/hedgewars/uScript.pas	Thu Aug 02 01:34:26 2018 +0200
+++ b/hedgewars/uScript.pas	Thu Aug 02 01:45:45 2018 +0200
@@ -3917,8 +3917,10 @@
 ScriptSetInteger('SAY_SHOUT', 3);
 
 // other
+ScriptSetInteger('AMMO_INFINITE', AMMO_INFINITE);
 ScriptSetInteger('JETPACK_FUEL_INFINITE', JETPACK_FUEL_INFINITE);
 ScriptSetInteger('BIRDY_ENERGY_INFINITE', BIRDY_ENERGY_INFINITE);
+ScriptSetInteger('NoPointX', NoPointX);
 
 // register gear types
 for at:= Low(TGearType) to High(TGearType) do