When a character in the group gains the necessary experience points, he or she gains a level.[18] Experience points are awarded for certain player actions, such as killing enemies or completing quests.[19] The party also has a reputation, which is affected by the player's moral actions, and which, along with the party leader's charisma attribute, influences how NPCs in the game world react to the player.[20] The characters in the party will also complain if the party's reputation conflicts with their alignment.[21] Resting heals the characters in the party and refreshes those who are fatigued; also, resting allows a character to memorize spells.[22] The game contains over 300 spells available for memorization.[1] With the exception of sorcerers, magic-users must memorize spells before they can be cast.[24][25] Spell-casting takes time and may be disrupted by attacks or other spells.[25]