Test cases for reading terrain, monster, and item definitions
- For monster attacks, 'd4' now means '1d4' instead of '0d4', and simple numbers without a 'd' are not accepted - Pop string path after pushing it in the shop test cases
This commit is contained in:
19
test/files/monsters/attacks.xml
Normal file
19
test/files/monsters/attacks.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>1</skill>
|
||||
<hp>10</hp>
|
||||
<speed>4</speed>
|
||||
<race>humanoid</race>
|
||||
<attacks>
|
||||
<attack type='swing'>d10</attack>
|
||||
<attack type='punch'>2d4</attack>
|
||||
<attack type='burn'>1d8</attack>
|
||||
</attacks>
|
||||
<pic h='1' w='1'>0</pic>
|
||||
<attitude>hostile-a</attitude>
|
||||
<immunity/>
|
||||
</monster>
|
||||
</monsters>
|
Reference in New Issue
Block a user