hedgewars/uVariables.pas
changeset 13370 e202d58236b1
parent 13174 061d55939e47
child 13404 8ce83caec236
--- a/hedgewars/uVariables.pas	Thu May 03 21:04:55 2018 +0200
+++ b/hedgewars/uVariables.pas	Thu May 03 21:40:13 2018 +0200
@@ -2577,6 +2577,7 @@
     trluaammoc: array[TAmmoStrId] of ansistring; // caption of the weapon (Lua overwrite)
     trluaammod: array[TAmmoStrId] of ansistring;  // description of the weapon (Lua overwrite)
     trluaammoa: array[TAmmoStrId] of ansistring; // description appendix of the weapon (Lua only)
+    trluaammoe: array[TAmmoStrId] of boolean;   // whether to render extra text (Lua overwrite)
     trmsg:   array[TMsgStrId]  of ansistring;   // message of the event
     trgoal:  array[TGoalStrId] of ansistring;   // message of the goal
     cTestLua : Boolean;
@@ -2644,6 +2645,7 @@
 var s: shortstring;
     i: integer;
     t: TSound;
+    a: TAmmoStrId;
 begin
     // init LastVoice
     LastVoice.snd:= sndNone;
@@ -2908,6 +2910,9 @@
     for t:= Low(TSound) to High(TSound) do
         MaskedSounds[t]:= false;
 
+    for a:= Low(TAmmoStrId) to High(TAmmoStrId) do
+        trluaammoe[a]:= true;
+
     UIDisplay:= uiAll;
     LocalMessage:= 0;