Fix hair, dick around with new game screen.
[18plus-7leafadventure.git] / src / org / sevenchan / dongs / items / Fish.as
blob096627ba7a23775acdbbe965899cd34f8b728586
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;
6 /**
7 * ...
8 * @author Harbinger
9 */
10 public class Fish extends Item
13 public function Fish(num:uint = 0)
15 super(num);
16 this.descr = "A red, angry-looking (but dead) fish you caught from the lake.";
17 this.id = 8;
18 this.name = "Fish";
19 this.value = 1000;
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;
32 return true;
34 InfoScreen.push("<p>You don't feel hungry.</p>");
35 return false;