Book 2 - Equipment
Part 1 - Weapons
A weapon is a kind of thing.
A weapon has a number called dice.
A weapon has a number called mod.
A weapon has a number called rate.
Some weapons are defined by the Table of Armory.
Table of Armory
name | dice | mod | rate |
a stick | 1 | -2 | 60 |
a dagger | 1 | 2 | 60 |
a club | 2 | -1 | 50 |
a spear | 2 | -1 | 90 |
a sword | 3 | 2 | 70 |
Instead of examining a weapon:
say "The [noun] has an hitting rate of [rate of the noun]% and does [dice of the noun]D6 [if mod of the noun > -1]+[end if][mod of the noun] damage.".
Instead of taking a weapon:
let w be entry 1 of the list of weapons carried by the player;
now w is in the location;
now the noun is carried by the player;
now the equiped weapon is the noun;
say "You take up the [noun]. And since you only have so many hands, you leave your previous weapon behind in hopes that the new one will be better.".