2 package org
.sevenchan
.dongs
.bodyparts
4 import org
.sevenchan
.dongs
.Creature
;
5 import org
.sevenchan
.dongs
.enchantment
.*;
6 import flash
.net
.registerClassAlias
;
11 public class Skin
implements IBodyPart
13 registerClassAlias
("P_Arm", Arm
);
15 public var _name
:String;
16 public var color
:String;
17 public var texture
:String;
18 public var descrOverride
:String = "";
20 public function Skin
(n
:String = "", color
:String = "light", texture
:String = "silk-smooth")
24 this.texture
= texture
;
27 /* INTERFACE org.sevenchan.dongs.bodyparts.IBodyPart */
29 public function get name
():String
34 public function getDescr
(num
:Number, host
:Creature
):String {
35 var dmgDescr
:Array = [
36 "throughly-decayed and corrupted", //0
38 "vomit-inducing decaying", //2
39 "corruption-riddled, abscessed, pitted, and baggy", //3
40 "corruption-scarred and cellulous", //4
41 "heavily-pimpled", //5
42 "moderately zitty", //6
43 "blemish-sprinkled, but pretty", //7
44 "slightly damaged", //8
47 var damage
:int = 10 - Math.min
(10, Math.max
(1, Math.round
((Corruption
.getLevelOf
(host
) * 0.1))))
49 // perfect light, smooth human skin.
50 return dmgDescr
[damage
] + " " + color
+ ", " + texture
+ " " + _name
+ " skin";
53 public function onFailedAttack
(from
:Creature
, to
:Creature
):void{}
54 public function onGoodAttack
(from
:Creature
, to
:Creature
):void{}