# HG changeset patch # User Wuzzy # Date 1567976377 -3600 # Node ID 210ad26e9e9482522e1bf0c8238103470f7905f5 # Parent c85f6f3bb16c9a05a8db8be783ac99270c83dac7 LuaGameplay: Fix misleading AddAmmo help diff -r c85f6f3bb16c -r 210ad26e9e94 LuaGameplay.wiki --- a/LuaGameplay.wiki Sun Sep 08 21:55:45 2019 +0100 +++ b/LuaGameplay.wiki Sun Sep 08 21:59:37 2019 +0100 @@ -176,7 +176,7 @@ === !AddAmmo(gearUid, ammoType [, ammoCount]) === Adds or sets the amount of ammo to the specified hedgehog gear. -If `ammoCount` is `nil`, then X ammos of the type `ammoType` will be added to `gearUid`, where X is determined by the `numberInCrate` argument passed via `SetAmmo()` in the `onAmmoStoreInit()` [LuaEvents event handler]. Note that `numberInCrate` defaults to 0 if `SetAmmo()` was not called for the ammo type before. +If `ammoCount` is `nil`, then X ammos of the type `ammoType` will be added to `gearUid`, where X equals the “number in crate” setting of the weapon scheme, or, if `onAmmoStoreInit()` is used, X equals the `numberInCrate` argument passed via `SetAmmo()` in the `onAmmoStoreInit()` [LuaEvents event handler]. Note that if you use `onAmmoStoreInit()`, `numberInCrate` defaults to 0 if `SetAmmo()` was not called for the ammo type before. If `ammoCount` is a number, the ammo will *not* be added, but instead set to `ammoCount`. A value of `0` will remove the ammo, a value of `AMMO_INFINITE` will set it to infinite.