aboutsummaryrefslogtreecommitdiffstats
path: root/xml
diff options
context:
space:
mode:
Diffstat (limited to 'xml')
-rw-r--r--xml/entities.xml21
1 files changed, 16 insertions, 5 deletions
diff --git a/xml/entities.xml b/xml/entities.xml
index aecae45..edee471 100644
--- a/xml/entities.xml
+++ b/xml/entities.xml
@@ -52,15 +52,14 @@
<Dialog />
<Wander>
countdown = 0
- velx = 0
update = function()
if (countdown == 0) then
- countdown = 5000 + math.random(0, 2000)
- velx = (math.random(0, 3) - 1) * 0.004
+ countdown = math.random(4000, 6000)
+ velx = math.random(-1, 1) * 0.004
+ vely = .1
end
countdown = countdown - 1
- return velx, 0
end
</Wander>
</npc>
@@ -78,7 +77,19 @@
<Solid />
<Physics />
<Name value="SKIRL" />
- <Wander />
+ <Wander>
+ countdown = 0
+ velx = 0
+
+ update = function()
+ if (countdown == 0) then
+ countdown = math.random(3000, 5000)
+ velx = math.random(-1, 1) * 0.005
+ end
+ countdown = countdown - 1
+ return velx
+ end
+ </Wander>
<!--<Aggro arena="arena.xml" />
<Trigger />-->
<Drop>