Damage type: Difference between revisions
m →Technical information: this should go here. bit field is more a accurate term for this than bit string (since it's a C# enum that uses [FlagsAttribute]) |
|||
| Line 276: | Line 276: | ||
====Technical information==== | ====Technical information==== | ||
Internally, damage and Bloons in ''BTD6'' use [[wp:Bit field|bit fields]] to represent immunities. Damage uses a variable named <code>immuneBloonProperties</code> that lists the Bloon properties that are immune to it, while Bloons use a variable named <code>bloonProperties</code> that lists which properties it has the immunities of. Every damage type maps to a specific set of bits in <code>immuneBloonProperties</code>. The game files serialize these bit fields as 32-bit integers. | Internally, damage and Bloons in ''BTD6'' use [[wp:Bit field|bit fields]] to represent immunities. Damage uses a variable named <code>immuneBloonProperties</code> that lists the Bloon properties that are immune to it, while Bloons use a variable named <code>bloonProperties</code> that lists which properties it has the immunities of. Every damage type maps to a specific set of bits in <code>immuneBloonProperties</code>. The game files serialize these bit fields as 32-bit integers. | ||
Prior to version 52.0, Plasma and Energy were equivalent to integer values of 8 and 9, making the former functionally identical to the current Fire type. | |||
{|class="wikitable inline" | {|class="wikitable inline" | ||
|+Bloon properties | |+Bloon properties | ||