Skip to content

Conversation

@ElectricSolstice
Copy link

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.

@PilzAdam
Copy link
Owner

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.

@ElectricSolstice
Copy link
Author

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?

…ers so much customization that they can shoot themselves in the foot with it.
hildigerr referenced this pull request in hildigerr/mobs Apr 16, 2020
[Upstream Pull Request #5] "Updated code. Should be the right way of fixing it now."
hildigerr referenced this pull request in hildigerr/mobs Apr 17, 2020
Add Pigs 2014 sc (added by dcorking)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants