summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/sprites/npcs/sprite/trap.pngbin0 -> 9240 bytes
-rw-r--r--graphics/sprites/npcs/xml/trap-active.xml13
-rw-r--r--graphics/sprites/npcs/xml/trap-standby.xml10
-rw-r--r--graphics/sprites/npcs/xml/trap-triggered.xml10
-rw-r--r--npcs.xml9
5 files changed, 42 insertions, 0 deletions
diff --git a/graphics/sprites/npcs/sprite/trap.png b/graphics/sprites/npcs/sprite/trap.png
new file mode 100644
index 00000000..d5afe12e
--- /dev/null
+++ b/graphics/sprites/npcs/sprite/trap.png
Binary files differ
diff --git a/graphics/sprites/npcs/xml/trap-active.xml b/graphics/sprites/npcs/xml/trap-active.xml
new file mode 100644
index 00000000..a01c1a7c
--- /dev/null
+++ b/graphics/sprites/npcs/xml/trap-active.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<sprite>
+ <imageset name="base" src="graphics/sprites/npcs/sprite/trap.png" width="32" height="32" />
+ <action name="stand" imageset="base">
+ <animation direction="default">
+ <frame index="1" delay="75"/>
+ <frame index="2" delay="75"/>
+ <frame index="3" delay="75"/>
+ <frame index="4"/>
+ <end/>
+ </animation>
+ </action>
+</sprite>
diff --git a/graphics/sprites/npcs/xml/trap-standby.xml b/graphics/sprites/npcs/xml/trap-standby.xml
new file mode 100644
index 00000000..7fa57c11
--- /dev/null
+++ b/graphics/sprites/npcs/xml/trap-standby.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<sprite>
+ <imageset name="base" src="graphics/sprites/npcs/sprite/trap.png" width="32" height="32" />
+ <action name="stand" imageset="base">
+ <animation direction="default">
+ <frame index="0"/>
+ <end/>
+ </animation>
+ </action>
+</sprite>
diff --git a/graphics/sprites/npcs/xml/trap-triggered.xml b/graphics/sprites/npcs/xml/trap-triggered.xml
new file mode 100644
index 00000000..b78af995
--- /dev/null
+++ b/graphics/sprites/npcs/xml/trap-triggered.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<sprite>
+ <imageset name="base" src="graphics/sprites/npcs/sprite/trap.png" width="32" height="32" />
+ <action name="stand" imageset="base">
+ <animation direction="default">
+ <frame index="5"/>
+ <end/>
+ </animation>
+ </action>
+</sprite>
diff --git a/npcs.xml b/npcs.xml
index a1e19c37..1f0f3fb1 100644
--- a/npcs.xml
+++ b/npcs.xml
@@ -319,6 +319,15 @@ IDs 900-999 = Special
<sprite variant="9">equipment/override/child-outfits.xml</sprite>
<sprite variant="5">equipment/override/child-head.xml|#870a0f,931714,d22b27,ff422c</sprite>
</npc>
+ <npc id="158"> <!-- trap (stand by) -->
+ <sprite>npcs/xml/trap-standby.xml</sprite>
+ </npc>
+ <npc id="159"> <!-- trap (armed) -->
+ <sprite>npcs/xml/trap-active.xml</sprite>
+ </npc>
+ <npc id="160"> <!-- trap (triggered) -->
+ <sprite>npcs/xml/trap-triggered.xml</sprite>
+ </npc>
<!-- Animated NPCs -->