The Reliques of Tolti-Aph

An interactive fiction by Graham Nelson (2005) - the Inform 7 source text

Home page

Contents
Previous
Next

Complete text
Section 3(c) - Armour

An armour is a kind of thing. An armour is wearable. Some kinds of armour are defined by the Table of Armoured Dress. Armour is usually metal. Leather jerkins are usually flesh.

Table of Armoured Dress
name   armour class
leather jerkin   1
ring mail   2
chain mail   3
plate armour   4

Check wearing an armour:
    if the player is wearing armour, say "You can only wear one piece of armour at a time." instead.

After printing the name of armour while taking inventory: say " (damage -[armour class])".

Instead of casting magic missile at armour which is worn by someone (called the victim): try casting magic missile at victim.