Fix hair, dick around with new game screen.
[18plus-7leafadventure.git] / src / org / sevenchan / dongs / creature / Witch.as
blobf2cca6e17bec4be5b07fdd8cd91cb9c605512ed6
1 package org.sevenchan.dongs.creature
3 import flash.net.*;
4 import org.sevenchan.dongs.*;
5 import org.sevenchan.dongs.bodyparts.*;
6 import org.sevenchan.dongs.items.*;
7 import org.sevenchan.dongs.screens.*;
8 import org.sevenchan.dongs.bodyparts.Build;
9 import org.sevenchan.dongs.Creature;
10 import org.sevenchan.dongs.enchantment.Corruption;
11 import org.sevenchan.dongs.screens.WitchShopScreen;
13 /**
14 * A travelling merchant who sell body modifications and potions.
16 * Some are also hostile.
17 * @author Harbinger
19 public class Witch extends Creature
21 registerClassAlias("EWitch", Witch);
22 public var SKIN:Skin = new Skin("human", "pale", "wrinkled and covered in boils");
24 public function Witch()
26 trace("Witch.init()");
27 super();
28 this.addEnchantment(new Corruption(90));
29 height = Math.random()*1.5 + 5;
30 this.gender = Gender.FEMALE;
31 this.build = Build.MALNOURISHED;
32 this.hair = new Hair();
33 this.arms.push(
34 BodyPartRegistry.human_arm,
35 BodyPartRegistry.human_arm
37 this.legs.push(
38 BodyPartRegistry.human_leg,
39 BodyPartRegistry.human_leg
41 this.eyes.push(
42 BodyPartRegistry.human_green_eye,
43 BodyPartRegistry.human_green_eye
45 this.skin = SKIN;
48 override public function addBreast():Breast
50 var boob:Breast = BodyPartRegistry.human_breast;
51 boob.size = MathUtils.rand(0, 3);
52 breasts.push(boob);
53 return boob;
56 override public function initialGenderSetup():void
58 this.breasts.push(
59 BodyPartRegistry.human_breast,
60 BodyPartRegistry.human_breast
62 this._assholes.push(
63 BodyPartRegistry.human_anus
65 if(gender.hasDick) {
66 this.balls.push(
67 BodyPartRegistry.human_testicle,
68 BodyPartRegistry.human_testicle
70 this.dicks.push(
71 BodyPartRegistry.human_penis
73 breasts[0].size=0;
74 breasts[1].size=0;
76 if(gender.hasVag) {
77 this.vaginas.push(
78 BodyPartRegistry.human_vagina
80 breasts[0].size=breasts[1].size=MathUtils.rand(0,5);
82 customized = false;
85 override public function getTypeName():String
87 return "witch";
90 override public function onEncounter(ply:Creature):Boolean
92 if(ply!=null)
93 WitchShopScreen.push();
94 return true;
97 override public function getHostile(subj:Creature):Boolean
99 return false;
102 override public function getInterested(subj:Creature):Boolean
104 return false;