Fix hair, dick around with new game screen.
[18plus-7leafadventure.git] / src / org / sevenchan / dongs / items / GoldPotion.as
blobf4d1702ea194de58ab2f21f7286046cac12c676e
1 package org.sevenchan.dongs.items
3 import org.sevenchan.dongs.Creature;
4 import org.sevenchan.dongs.enchantment.Corruption;
5 import org.sevenchan.dongs.enchantment.Paralyze;
6 import org.sevenchan.dongs.Item;
7 import org.sevenchan.dongs.screens.InfoScreen;
8 /**
9 * ...
10 * @author Harbinger
12 public class GoldPotion extends Potion
15 public function GoldPotion(num:uint = 0)
17 super(num);
19 this.setDescr("liquid gold");
20 this.id = 6;
21 this.name = "Gold Potion";
22 this.value = 1000;
25 override public function copy():Item
27 return new GoldPotion(amount);
30 override public function Use(host:Creature):Boolean
32 var text:String = "<h2>Golden Potion</h2><p>Without so much as a moment's hesitation, you chug the golden fluid, enjoying its sweetness. Your body feels warm and you gain a sense of calm. <b>All deadly enchantments have been removed, and you have full HP.</b></p>";
33 InfoScreen.push(text);
34 delete host.enchantments["corruption"];
35 delete host.enchantments["paralyze"];
36 delete host.enchantments['sandworms'];
37 host.HP = host.maxHP;
38 host.HP = host.maxMana;
39 return true;