[Main page] [Overview]   /examples /armour.c
#include <defs>
inherit STD_ARMOUR;
public void setup() {
set_name("plate armour"); // The name
set_alias( ({"plate"})); // An additional name
set_short("plate armour"); // The description
set_long("A dull plate armour."); // The long description for look
set_limbs( ({"abdomen","thorax","upper arm","forearm"}));
set_acs( ([ DAM_PHYS_BLUNT: 6, DAM_PHYS_PIERCE: 6, DAM_PHYS_SLASH:10,
DAM_MAGIC_ELECTRIC: 0,
DAM_ANY: 2 ]));
set_layer(3); // Layer of the armours. Armours with a higher layer can be worn above armours with lower layer
}