aboutsummaryrefslogtreecommitdiffstats
path: root/xml/entities.xml
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2017-09-28 17:28:59 -0400
committerClyne Sullivan <tullivan99@gmail.com>2017-09-28 17:28:59 -0400
commitbabd5e5596cefc7b2e15825976e084591f275d6f (patch)
tree9f7eeb7fd0c375e95c44f4257849f40676965a80 /xml/entities.xml
parent3ffd09ad483a77053ebc566c3ab464a1c85e7a44 (diff)
lua - references
Diffstat (limited to 'xml/entities.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>