Skip to content
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

recovery of health.fall and health.bdefend #5

Open
tyt2y3 opened this issue Mar 31, 2013 · 0 comments
Open

recovery of health.fall and health.bdefend #5

tyt2y3 opened this issue Mar 31, 2013 · 0 comments

Comments

@tyt2y3
Copy link
Owner

tyt2y3 commented Mar 31, 2013

I do not have a detailed specification of fall and bdefend recovery.
the current implementation is:

//recovery
$.itr.lasthit--;
if( $.itr.lasthit<-3)
{
    if( $.health.fall>0 && $.health.fall<10) $.health.fall=0;
    if( $.health.fall>0) $.health.fall += GC.recover.fall;
    if( $.health.bdefend>0) $.health.bdefend += GC.recover.bdefend;
}

in words,

  • if last time being hit is more than 3 TU ago, then:
    • if fall is between 0(exclusive) and 10(exclusive)
      • set fall to 0
    • if fall is > 0
      • decrease fall by GC.recover.fall (currently set at 1)
    • if bdefend is > 0
      • decrease bdefend by GC.recover.bdefend (currently set at 0.5)

if you have a better specification, please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant