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
;
12 public class GoldPotion
extends Potion
15 public function GoldPotion
(num
:uint = 0)
19 this.setDescr
("liquid gold");
21 this.name
= "Gold Potion";
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'];
38 host
.HP
= host
.maxMana
;