Loot — 5 of 26

Fredrik Appelberg

Release 1

Section - Achievements

Achievements is a list of texts that varies. New achievements is a list of texts that varies.

To earn the (name - a text) achievement:

add the name to new achievements.

After attacking something breakable for the third time (this is the smashing achievements rule):

earn the "Smash Brother" achievement;

continue the action.

To update the achievement list:

repeat with name running through new achievements:

if the name is not listed in achievements:

say "Achievement unlocked: [bold type][name][roman type][line break]";

earn a point;

add the name to achievements;

remove name from new achievements.

Every turn when new achievements is not empty:

update the achievement list.