Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void increaseTemperature(int temperature)
- {
- if(this.running==0) return;
- if(temperature<0 || this.damage>=100) return;
- if(this.damage>=50)
- this.temperature+=(temperature*2);
- else this.temperature+=temperature;
- if(this.temperature>2000) this.damage=(this.temperature-2000)/30;
- this.updateAnimation();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement