GearTypes: Add Power setting for crates
authorWuzzy
Thu, 21 Sep 2017 00:03:29 +0100
changeset 1025 e6c3e90f2373
parent 1024 f243d261e679
child 1026 1a9e923f1c1b
GearTypes: Add Power setting for crates
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* ||