mobs icon indicating copy to clipboard operation
mobs copied to clipboard

Updated code. Should be the right way of fixing it now.

Open ElectricSolstice opened this issue 11 years ago • 2 comments

Updated the code more, so now the fix should be the right way. Added lines of code to make sure attack.dist gets set to nil and changed the jump variable to use a function rather than a boolean, allowing modders that use the api to customize the jump.

ElectricSolstice avatar Oct 14 '13 00:10 ElectricSolstice

1st commit: See my forum post. 2nd commit: the jump function should be added to the mob table, so you can simply call self:jump() (like set_velocity()). 3rd commit: Good idea.

PilzAdam avatar Oct 15 '13 10:10 PilzAdam

How's the commits I made? Is it fixing it the right way now? And how about the jump function. Is it fine that way?

ElectricSolstice avatar Oct 16 '13 01:10 ElectricSolstice