1 package org
.sevenchan
.dongs
.weapons
4 import org
.sevenchan
.dongs
.bodyparts
.IBodyPart
;
5 import org
.sevenchan
.dongs
.Creature
;
6 import org
.sevenchan
.dongs
.enchantment
.Enchantment
;
11 public interface IWeapon
13 function get name
():String; // You grip excalibur, your heavily-worn black dildo, in your hands.
14 function get baseName
():String; // dildo
15 function get enchancement
():Enchantment
; // enchanted?
16 function get description
():String; // Other stuff
17 function get category
():WeaponCategory
; // sword (for storing or grouping)
18 function get baseDamage
():Number; // small damage boosting thing. will be summed with other weapons.
19 function get wear
():Number; // 0 to 1 wear. finalDamageBoost=baseDamage*(1-wear)
22 * Retrieve a long description of the body part
24 * You have two human arms. You grip a heavily-worn black dildo in your hands.
29 function getDescr
(num
:Number,host
:Creature
,hostingBodyPart
:IBodyPart
):String;
30 function getShortDescr
(withModifier
:Boolean = false):String;
32 function canEquipOn
(bodypart
:IBodyPart
):Boolean;
34 function onFailedAttack
(from
:Creature
, to
:Creature
):void;
35 function onGoodAttack
(from
:Creature
, to
:Creature
):void;
36 function calcDamage
(from
:Creature
, to
:Creature
):Number;
38 return baseDamage * (1 - wear);