1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2025-01-26 00:50:21 +01:00

Code tidy

This commit is contained in:
TenPlus1 2016-10-04 09:54:26 +01:00
parent 03e96f3017
commit 444b486c5e

View File

@ -1,5 +1,5 @@
-- Mobs Api (29th September 2016) -- Mobs Api (4th October 2016)
mobs = {} mobs = {}
mobs.mod = "redo" mobs.mod = "redo"
@ -1470,9 +1470,7 @@ local do_states = function(self, dtime)
if get_velocity(self) <= 0.5 if get_velocity(self) <= 0.5
and self.object:getvelocity().y == 0 then and self.object:getvelocity().y == 0 then
local v = self.object:getvelocity() do_jump(self)
v.y = 5
self.object:setvelocity(v)
end end
set_velocity(self, self.run_velocity) set_velocity(self, self.run_velocity)