dmustanger / 7dtd-ServerTools

Server tools for 7 days to die dedicated servers
192 stars 57 forks source link

[Enhancement] Prayer #433

Open TheDarthFather opened 1 year ago

TheDarthFather commented 1 year ago

Hello, It will be great if prayer can be setup with "a once per" day/week/month cooldown. I am using it now with 1 week CD, however it will be amazing if I could make it so it can be fired once week no matter the day. As an example, now, if you use it on Tuesday, you have to wait until next Tuesday to use it again. The intended behavior would be to be able to do it starting Monday 00:00:01 AM, no matter when you did it last time/week.

PS: I assume I can "hack" the lastPrayer variable to be the beginning of the week before the save, but this is quite "brutal hack' :)

Thank you!

ObsComp commented 1 year ago

Hmm. Indeed all of the cool downs utilize the point of use, so as you mentioned if it gets triggered Tuesday then it will not be available until next Tuesday. Nothing in servertools is coded to function in the manner you mentioned, so I likely won't alter the delay checks to fit a specific day of the week/month/year. That is a bit more in line with timed browser based games that force resets on a schedule. If there are a few others that ask for it as an option for all tools, then I would consider it but just for one tool, no I would not likely change it