Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Bug Report
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 07-16-2010, 09:24 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Quote:
Originally Posted by cbk1994 View Post
Just set up some functions in the player class....

PHP Code:
public function heal(hearts) {
  
this.setHealth(this.getHearts() + hearts);
}

public function 
hurt(hearts) {
  
this.setHealth(this.getHearts() - hearts);
}

public function 
getHearts() {
  return 
this.hearts;
}

public function 
setHealth(hearts) {
  
this.oldAP this.ap;
  
this.ap 50;
  
this.hearts max(0min(this.fullheartshearts));
  
this.ap oldAP;

then you don't have to worry about it
still doesn't work :[
__________________
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:16 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.