-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: elevator arrived event #380
Conversation
not sure if this is really needed, can be done with delay at triggering InteractingElevator. still can me added tho |
delaying code is not best practice, if there is another way, it should be done, like this. |
wouldn't be better to make an event based on ElevatorChamber.CurSequence that trigger for all it's sequence |
I could do that, yeah, but CurSequence gives back "Arriving" which could be misleading with how exiled works because you can deny events like that, whereas you wont be able to here as this is an animation currently going. |
I could add ElevatorReady and ElevatorMovingAway, but I think that's really all that is needed |
yeah just put like a Name ElevatorSequencesUpdated and you give CurSequence as argument |
Sure, I will keep the elevator arrived thing though because I think it might be easier to find this way |
@louis1706 done |
i feel than it's look useless now ? |
I don't think it is really, many people may not know arrived is under ElevatorSequencesUpdated |
Better to merge 2 patches that patch the same method |
yes but it's does the exact same things and do not give more utility |
Ok, which patch file should I use though? |
Well the arrived one gives back the level that it has arrived at, and also it's better for dev experience to do this IMO |
Wouldn't that possible for update sequence too ? |
Better to create a new file that will indicate that both patches are in this file |
@VALERA771 done |
Yes, but here it just provides it to you and you don't need to find it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still have the same opinion that both events is not needed
Co-authored-by: VALERA771 <[email protected]>
I feel like this is just pointless to state, doesn't matter that much, I think it does imo because it saves me having to check the sequence and then get the level, I think EXILED doing this for the user is a much nicer developer experience, and that's what exiled is for, no? |
@VALERA771 this can now be merged |
i mean if we go like that we could make an different event for every Different Role Spawn so people don't have to check than OnChangingRole it's for Scp096 for example |
Not really because with the |
i kinda agree with the french for this |
Do I have to do it for this PR to be merged? |
Idk really. In ElevatorArrived there is also Level property (I don't remember if lift has something similar) |
Personally, I would just merge, but yeah |
Description
Adds an event that is triggered when an elevator has stopped and the doors are opening, aka, arrived at its destination.
Also includes a change that stopped rider from screaming at me
What is the current behavior? (You can also link to an open issue here)
No event for this behavior, manual patching
What is the new behavior? (if this is a feature change)
Adds the event, no need to manually patch
Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
Not really
Types of changes
Submission checklist
Patches (if there are any changes related to Harmony patches)
Other