kaansoral / adventureland

Adventure Land The Open Source CODE MMORPG
Other
189 stars 60 forks source link

add timeout to `use` #120

Closed earthiverse closed 4 months ago

earthiverse commented 6 months ago

Changes:

earthiverse commented 6 months ago

Tested locally

image

earthiverse commented 6 months ago

Hmm... The cooldown bar is kind of weird, maybe the additional eval should be removed.

This was with me manually calling use('regen_mp') over and over. The eval resets the bar and it fills up based on how many ms are lefft.

jG2wN2n2od

FreezePhoenix commented 5 months ago

Why are we still using eval for potions? Also, I agree with Telokis, it should maybe jump the potion bar to the appropriate percentage, instead of just resetting it. You'd have to consider that there are different potion cooldowns for different actions, etc.