HomePortalFAQSearchMemberlistUsergroupsRegisterLog in
Making threads to link to banned members content grants an automatic ban
Meet the new KITO admins & hear their plans here.
You can use google search to find threads and posts here now. Example

Share | 
 

 Not recovers HP

View previous topic View next topic Go down 
AuthorMessage
LolikmanIT

avatar

Game username : Lolikman
Server : Sunrise (Owner)
Male Posts : 7
Join date : 2016-08-16
Location : Russian Federation

PostSubject: Not recovers HP   Tue Aug 16, 2016 7:35 am

Hey. In short, I recently discovered a bug - not restored HP.  How to fix it?

Thanks in advance)
Back to top Go down
Delete me.
Coder
Coder


Male Posts : 353
Join date : 2011-07-25
Age : 22

PostSubject: Re: Not recovers HP   Tue Aug 16, 2016 12:32 pm

http://www.kitopen.com/t3467-a-few-problem-with-the-new-version-6-0-solved

Nakti wrote:
Fourth problem:
The HP is stored in 'short' dormat, so if you add for example '0.1' to the HP, it'll add 0.
In healing from wound is used
Code:
   if (addHPRatio(-0.001))setWounded(false);
As max HP is 500, it removes 0.5 from HP. If converting to short, it removes 0. So the bar doesn't move.
You could use there addHP(-1):
Code:
   if (addHP(-1))setWounded(false);

Try this.
Back to top Go down
Tsezar

avatar

Game username : Tsezar
Female Posts : 427
Join date : 2015-03-09
Age : 16

PostSubject: Re: Not recovers HP   Tue Aug 16, 2016 4:50 pm

http://www.kitopen.com/t3159-cannot-revive?highlight=Unable+to+revive
Please, make sure that on your question was answered(search it) before posting.
I'm not being rude, just tell in advance.
Back to top Go down
https://shizainu.deviantart.com
LolikmanIT

avatar

Game username : Lolikman
Server : Sunrise (Owner)
Male Posts : 7
Join date : 2016-08-16
Location : Russian Federation

PostSubject: Re: Not recovers HP   Thu Aug 18, 2016 6:37 am

I recently register on this site. Thanks for the help Smile
Back to top Go down
 
Not recovers HP
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Keeping I.T. Open :: SUPPORT :: Support-
Jump to: