Not logged inOpenClonk Forum
Up Topic New Physical Implementation

This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.

Post Reply
In Response to Günther
FrameBreath.patch:

> -        takebreath = 100 * takebreath / C4MaxPhysical;


C4MaxPhysical is significantly larger than 100, so you're making the filling of breath a lot faster here. I don't know whether that's a good idea, so I just want to make sure that this is intended. Also, an object is an it in English ;-)

SetMaxEnergy.patch:

> -  swordman.MaxEnergy = 60000;
> -  swordman->DoEnergy(10);
> +  swordman->SetMaxEnergy(60000);


SetMaxEnergy won't fill up missing energy, only remove excess energy. That either needs to change, or the DoEnergy call here needs to remain. Hm, doing NewEnergy = NewMaxEnergy * GetEnergy() / OldMaxEnergy; SetEnergy(NewEnergy); instead of DoEnergy(0) would take care of both problems with SetMaxEnergy :-)

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill