Fix hair, dick around with new game screen.
[18plus-7leafadventure.git] / src / org / sevenchan / dongs / clothing / GasMask.as
blob91b90715747721d2cd561a1907f50a59d5317e29
1 package org.sevenchan.dongs.clothing
3 import org.sevenchan.dongs.Creature;
4 import org.sevenchan.dongs.Item;
5 import org.sevenchan.dongs.screens.InfoScreen;
6 import org.sevenchan.dongs.clothing.Clothing;
8 /**
9 * Making this into a magitek clothing item, might be
10 * useful in magick-flooded Universities, or as a disguise.
11 * @author Harbinger
13 public class GasMask extends Clothing
15 public function GasMask(num:uint = 0)
17 super(num);
18 this.descr = "A strange, copper mask with a thick breathing tube filled with cloth. It tingles to the touch.";
19 this.id = 9;
20 this.name = "Gas Mask";
21 this.isArmor = false;
22 this.opaque = true;
23 this.value = 500;
26 override public function copy():Item
28 return new GasMask(amount);
31 override public function getDescr(host:Creature):String
33 var state:String = "mint-condition";
34 var pct:Number = (HP / maxHP);
35 if (pct < 0.5)
36 state = "heavily-dented and cracked";
37 else if (pct < 0.75)
38 state = "lightly-dented";
39 return state + " copper gas mask";