Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. public void increaseTemperature(int temperature)
  2. {
  3. if(this.running==0) return;
  4. if(temperature<0 || this.damage>=100) return;
  5. if(this.damage>=50)
  6. this.temperature+=(temperature*2);
  7. else this.temperature+=temperature;
  8. if(this.temperature>2000) this.damage=(this.temperature-2000)/30;
  9. this.updateAnimation();
  10.  
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement