-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
TrialSpawner API is very lacking #12023
Copy link
Copy link
Labels
status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.Disputed bug is accepted as valid or Feature accepted as desired to be added.
Metadata
Metadata
Assignees
Labels
status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.Disputed bug is accepted as valid or Feature accepted as desired to be added.
Type
Fields
Give feedbackNo fields configured for Feature.
Is your feature request related to a problem?
The trial spawner tilestate lacks features - the most important one for me being getting and setting the
cooldown_ends_atvalue.Providing access to this value would be highly beneficial, as it would allow users to get the remaining time before the trial spawner becomes available again, as well as modify or remove the cooldown as needed.
Describe the solution you'd like.
I propose these 2 functions:
getCooldownEndTime()returns a long that is the gametime at which the cooldown ends (this is what the game stores as the value), if there is no value it would return 0 or null.setCooldownEndTime(Long)sets this value for the tilestate.Describe alternatives you've considered.
.
Other
Implementing this feature shouldn't be too complex, considering there is already a function in setting and getting the
target_cooldown_lengthvalue. Of course, that's just my perspective. It's not me acutally doing the coding!