# HG changeset patch # User Wuzzy # Date 1505948609 -3600 # Node ID e6c3e90f237358a56ca20e4342164002b698cc8f # Parent f243d261e6796dbcb00cdec9eac6db3846b3265c GearTypes: Add Power setting for crates diff -r f243d261e679 -r e6c3e90f2373 GearTypes.wiki --- a/GearTypes.wiki Wed Sep 20 17:22:39 2017 +0100 +++ b/GearTypes.wiki Thu Sep 21 00:03:29 2017 +0100 @@ -114,9 +114,10 @@ * `Pos`: Crate type: 1=ammo crate, 2=health crate, 4=utility crate (also see below) * `Tag`: Used for the appear animation * `Health`: Amount of health contained in a health crate + * `Power`: Ammo count in an ammo or utility crate. `0` = Use weapon scheme default * `Boom`: Explosion size and damage (default: 25) -We recommend you to use `SpawnAmmoCrate` and the like to crate crate gears instead of `AddGear`. Also note that `SpawnAmmoCrate` and `SpawnUtilityCrate` are the only way to set a crate's ammo in Lua, it can not be changed or read afterwards. +We recommend you to use `SpawnAmmoCrate` and the like to crate crate gears instead of `AddGear`. Advanced crate types: If you just care about normal crates, the values 1, 2 and 4 mentioned above are all you need to know. But Hedgewars supports a few crate variants which can be spawned with `SpawnFakeAmmoCrate` and the like. The `Pos` parameter is in reality a sum of several flags which need to be added up for the final type. || *Pos flag* || *Meaning* ||