1 package org
.sevenchan
.dongs
.items
3 import org
.sevenchan
.dongs
.Item
;
4 import org
.sevenchan
.dongs
.Creature
;
5 import org
.sevenchan
.dongs
.screens
.InfoScreen
;
10 public class Fish
extends Item
13 public function Fish
(num
:uint = 0)
16 this.descr
= "A red, angry-looking (but dead) fish you caught from the lake.";
22 override public function copy
():Item
24 return new Fish
(amount
);
27 override public function Use
(ply
:Creature
):Boolean
29 if (ply
.HP
< ply
.maxHP
) {
30 InfoScreen
.push
("<p>You manage to build a great fire with surrounding flammable material and cook the fish to perfection. After admiring your culinary masterpeice, you devour it, regaining most of your health.</p>");
31 ply
.HP
+= ply
.maxHP
/ 2;
34 InfoScreen
.push
("<p>You don't feel hungry.</p>");