diff -r e8da1dd5c93c -r 2aa0735e0c32 LuaAPI.wiki --- a/LuaAPI.wiki Tue Dec 04 00:01:16 2018 +0000 +++ b/LuaAPI.wiki Tue Dec 04 00:03:52 2018 +0000 @@ -1136,13 +1136,14 @@ ==== !SetAmmoDelay(ammoType, delay) ==== Changes the delay of a specified [AmmoTypes Ammo Type]. -==== !SetAmmoTexts(ammoType, name, caption, description) (0.9.23) ==== +==== !SetAmmoTexts(ammoType, name, caption, description [, showExtra]) (0.9.23) ==== Allows you to overwrite the displayed name and tooltip descriptions of a given ammo type. This function must only be called either inside the `onGameStart` callback function, or after the engine has called `onGameStart`. * `ammoType`: The ammo type to set the text for * `name`: Name of the ammo type (e.g. “Grenade” for `amGrenade`), affects both name in ammo menu and in the “ticker” message on the screen top. * `caption`: The second line in the ammo menu (below the title). E.g. “Timed grenade” for `amGrenade`. * `description`: Description text in ammo menu, below the caption. + * `showExtra`: If `false` the special “extra” text line like “Weapon is not yet available” or “Weapon does not end turn” will be suppressed `title`, `caption`, `description` can be `nil`, in which case they will be reverted to the engine default value. This function returns `nil`.