# HG changeset patch # User Wuzzy # Date 1522174318 -3600 # Node ID 199ac349aefc32cc32c91f739f176045e9877ded # Parent 4f93f837c4274e3e4b7facaa2540275f9b949e05 GearTypes: crate contents diff -r 4f93f837c427 -r 199ac349aefc GearTypes.wiki --- a/GearTypes.wiki Thu Mar 22 19:48:55 2018 +0000 +++ b/GearTypes.wiki Tue Mar 27 19:11:58 2018 +0100 @@ -121,6 +121,8 @@ We recommend you to use `SpawnAmmoCrate` and the like to crate crate gears instead of `AddGear`. +It is not possible to get the ammo type contained in an ammo or utility crate. Note that random crate contents are determined when a hedgehog collects it, not before. + 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* || || `0x1` || Ammo crate ||