This repository has been archived by the owner on Mar 9, 2021. It is now read-only.
onMobDeath details parameters #2599
zach2good
started this conversation in
Architecture
Replies: 2 comments 2 replies
-
Should probably have a parameter for mob deaths that have a proper proc before kill, such as abyssea NMs. |
Beta Was this translation helpful? Give feedback.
1 reply
-
"firstCall" : lets just have a count rather than noting its first, so it can be used for more. Right now we can establish a run once easily without it, but I could do a few things with a count against how many times it ran. Say I need to randomly select a party member on mob death - I can use a random number and do something on the nTh call based on that. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As mentioned in this PR: #2569
We're starting to convert KO's work on Assaults, and Eden's
onMobDeath
has an additional argument:entity.onMobDeath = function(mob, player, isKiller, firstCall)
Here, we have
isKiller
andnoKiller
This started the conversation, how do we fix/extend this so it's clean and covers all bases?
I think we're heading towards a params/details/args type of object, with all of the details populated.
Beta Was this translation helpful? Give feedback.
All reactions