More read/write test cases for monsters, especially monster abilities
Fixes: - For radiate abilities, the pattern was not saved and defaulted to single instead of square on load - For summon abilities, what to summon was not saved and chance was incorrectly saved
This commit is contained in:
20
test/files/monsters/abil_spec/bad_node.xml
Normal file
20
test/files/monsters/abil_spec/bad_node.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<monsters boes="2.0.0">
|
||||
<monster id='1'>
|
||||
<name>Test Monster</name>
|
||||
<level>1</level>
|
||||
<armor>0</armor>
|
||||
<skill>2</skill>
|
||||
<hp>10</hp>
|
||||
<speed>4</speed>
|
||||
<race>humanoid</race>
|
||||
<attacks/>
|
||||
<pic h='1' w='1'>5</pic>
|
||||
<attitude>hostile-a</attitude>
|
||||
<immunity/>
|
||||
<abilities>
|
||||
<special type='old-heat'>
|
||||
<bad></bad>
|
||||
</special>
|
||||
</abilities>
|
||||
</monster>
|
||||
</monsters>
|
19
test/files/monsters/abil_spec/bad_type.xml
Normal file
19
test/files/monsters/abil_spec/bad_type.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<monsters boes="2.0.0">
|
||||
<monster id='1'>
|
||||
<name>Test Monster</name>
|
||||
<level>1</level>
|
||||
<armor>0</armor>
|
||||
<skill>2</skill>
|
||||
<hp>10</hp>
|
||||
<speed>4</speed>
|
||||
<race>humanoid</race>
|
||||
<attacks/>
|
||||
<pic h='1' w='1'>5</pic>
|
||||
<attitude>hostile-a</attitude>
|
||||
<immunity/>
|
||||
<abilities>
|
||||
<special type='dmg'>
|
||||
</special>
|
||||
</abilities>
|
||||
</monster>
|
||||
</monsters>
|
22
test/files/monsters/abil_spec/minimal.xml
Normal file
22
test/files/monsters/abil_spec/minimal.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<monsters boes="2.0.0">
|
||||
<monster id='1'>
|
||||
<name>Test Monster</name>
|
||||
<level>1</level>
|
||||
<armor>0</armor>
|
||||
<skill>2</skill>
|
||||
<hp>10</hp>
|
||||
<speed>4</speed>
|
||||
<race>humanoid</race>
|
||||
<attacks/>
|
||||
<pic h='1' w='1'>5</pic>
|
||||
<attitude>hostile-a</attitude>
|
||||
<immunity/>
|
||||
<abilities>
|
||||
<special type='old-heat'>
|
||||
<param>1</param>
|
||||
<param>2</param>
|
||||
<param>3</param>
|
||||
</special>
|
||||
</abilities>
|
||||
</monster>
|
||||
</monsters>
|
23
test/files/monsters/abil_spec/too_many_params.xml
Normal file
23
test/files/monsters/abil_spec/too_many_params.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<monsters boes="2.0.0">
|
||||
<monster id='1'>
|
||||
<name>Test Monster</name>
|
||||
<level>1</level>
|
||||
<armor>0</armor>
|
||||
<skill>2</skill>
|
||||
<hp>10</hp>
|
||||
<speed>4</speed>
|
||||
<race>humanoid</race>
|
||||
<attacks/>
|
||||
<pic h='1' w='1'>5</pic>
|
||||
<attitude>hostile-a</attitude>
|
||||
<immunity/>
|
||||
<abilities>
|
||||
<special type='old-heat'>
|
||||
<param>1</param>
|
||||
<param>2</param>
|
||||
<param>3</param>
|
||||
<param>4</param>
|
||||
</special>
|
||||
</abilities>
|
||||
</monster>
|
||||
</monsters>
|
Reference in New Issue
Block a user