Fix hair, dick around with new game screen.
[18plus-7leafadventure.git] / src / org / sevenchan / dongs / creature / Human.as
blobdb0de46ebd6d3b189b357b6fa49213af407bf525
1 package org.sevenchan.dongs.creature
3 import org.sevenchan.dongs.Creature;
4 import org.sevenchan.dongs.bodyparts.*;
5 import flash.net.registerClassAlias;
7 /**
8 * ...
9 * @author Harbinger
11 public class Human extends Creature
13 registerClassAlias("EHuman", Human);
14 public var SKIN:Skin = new Skin("human", "light", "smooth");
16 public function Human()
18 trace("Human.init()");
19 super();
20 height = Math.random()*1.5 + 5;
21 switch(Math.round(MathUtils.rand(0, 1))) {
22 case 0:
23 this.gender = Gender.MALE;
24 break;
25 case 1:
26 this.gender = Gender.FEMALE;
27 break;
29 this.build = Build.AVG;
30 this.hair = new Hair();
31 this.arms.push(
32 BodyPartRegistry.human_arm,
33 BodyPartRegistry.human_arm
35 this.legs.push(
36 BodyPartRegistry.human_leg,
37 BodyPartRegistry.human_leg
39 this.eyes.push(
40 BodyPartRegistry.human_blue_eye,
41 BodyPartRegistry.human_blue_eye
43 this.skin = SKIN;
46 override public function addBreast():Breast
48 var boob:Breast = BodyPartRegistry.human_breast;
49 boob.size = MathUtils.rand(0, 3);
50 breasts.push(boob);
51 return boob;
54 override public function initialGenderSetup():void
56 this._assholes.push(
57 BodyPartRegistry.human_anus
59 addBreast();
60 addBreast();
61 if(gender.hasDick) {
62 this.balls.push(
63 BodyPartRegistry.human_testicle,
64 BodyPartRegistry.human_testicle
66 this.dicks.push(
67 BodyPartRegistry.human_penis
69 breasts[0].size=0;
70 breasts[1].size=0;
72 if(gender.hasVag) {
73 this.vaginas.push(
74 BodyPartRegistry.human_vagina
76 breasts[0].size=breasts[1].size=MathUtils.rand(0,5);
78 customized = false;
81 override public function getTypeName():String
83 return "human";