-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathskills.mol
33 lines (30 loc) · 1009 Bytes
/
skills.mol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import common/basic_types;
// We define several skills.
// None means the role can learn a skill but he/she doesn't learn it.
option ArmorLight (SkillLevel);
option ArmorHeavy (SkillLevel); // only Fighter can learn this
option ArmorShields (SkillLevel); // only Fighter can learn this
option WeaponSwords (SkillLevel); // only Mage can't learn this
option WeaponBows (SkillLevel); // only Ranger can learn this
option WeaponBlunt (SkillLevel);
option Dodge (SkillLevel);
option PickLocks (SkillLevel);
option Mercantile (SkillLevel);
option Survival (SkillLevel);
// ... omit other skills ...
// Any skill which is defined above.
union Skill {
ArmorLight,
ArmorHeavy,
ArmorShields,
WeaponSwords,
WeaponBows,
WeaponBlunt,
Dodge,
PickLocks,
Mercantile,
Survival,
// ... omit other skills ...
}
// A hero can learn several skills. The size of learned skills is dynamic.
vector Skills <Skill>;