2 #include "player-status.h"
5 * Return alignment title
7 concptr your_alignment(void)
9 if (p_ptr->align > 150) return _("大善", "Lawful");
10 else if (p_ptr->align > 50) return _("中善", "Good");
11 else if (p_ptr->align > 10) return _("小善", "Neutral Good");
12 else if (p_ptr->align > -11) return _("中立", "Neutral");
13 else if (p_ptr->align > -51) return _("小悪", "Neutral Evil");
14 else if (p_ptr->align > -151) return _("中悪", "Evil");
15 else return _("大悪", "Chaotic");
20 * Return proficiency level of weapons and misc. skills (except riding)
22 int weapon_exp_level(int weapon_exp)
24 if (weapon_exp < WEAPON_EXP_BEGINNER) return EXP_LEVEL_UNSKILLED;
25 else if (weapon_exp < WEAPON_EXP_SKILLED) return EXP_LEVEL_BEGINNER;
26 else if (weapon_exp < WEAPON_EXP_EXPERT) return EXP_LEVEL_SKILLED;
27 else if (weapon_exp < WEAPON_EXP_MASTER) return EXP_LEVEL_EXPERT;
28 else return EXP_LEVEL_MASTER;
33 * Return proficiency level of riding
35 int riding_exp_level(int riding_exp)
37 if (riding_exp < RIDING_EXP_BEGINNER) return EXP_LEVEL_UNSKILLED;
38 else if (riding_exp < RIDING_EXP_SKILLED) return EXP_LEVEL_BEGINNER;
39 else if (riding_exp < RIDING_EXP_EXPERT) return EXP_LEVEL_SKILLED;
40 else if (riding_exp < RIDING_EXP_MASTER) return EXP_LEVEL_EXPERT;
41 else return EXP_LEVEL_MASTER;
46 * Return proficiency level of spells
48 int spell_exp_level(int spell_exp)
50 if (spell_exp < SPELL_EXP_BEGINNER) return EXP_LEVEL_UNSKILLED;
51 else if (spell_exp < SPELL_EXP_SKILLED) return EXP_LEVEL_BEGINNER;
52 else if (spell_exp < SPELL_EXP_EXPERT) return EXP_LEVEL_SKILLED;
53 else if (spell_exp < SPELL_EXP_MASTER) return EXP_LEVEL_EXPERT;
54 else return EXP_LEVEL_MASTER;