sebastian-heinz / Arrowgene.DragonsDogmaOnline

Server for Dragons Dogma Online
GNU Affero General Public License v3.0
166 stars 51 forks source link

Amended and Rewritten Revive Timer (12:00AM JST) #472

Closed kaebiene closed 2 months ago

kaebiene commented 2 months ago

Rewrote code to factor in JST in both CharacterChargeRevivePointHandler and LastRevivalPowerRechargeTime to solve #190 again.

Thanks for all your assistance and patience, Laith and co!

Testing:

Joined server after server start, with full revives: No revival option, as full revives are present.

Expended revives: Given revival option, and told 'You have refreshed today already' on second attempt with NPC.

Expended revives again: 'You have refreshed today already'.

Shifted server time to next day, no server restart, character relog, full revives: No revival option, as full revives are present, as expected.

Expended revives: Given revival option, and told 'You have refreshed today already' on second attempt with NPC.

Checklist: