User Tools

Site Tools


en:rpd:experience_system

Experience System

The experience system governs how characters gain levels and grow stronger in Remixed Dungeon.

Description

The experience system tracks how much experience characters have gained and determines when they level up. Experience is primarily gained by defeating enemies, but some other activities also grant experience points.

Experience Mechanics

  • Gain: Characters earn experience points for defeating enemies
  • Storage: Experience is tracked and accumulates until enough is earned
  • Level Thresholds: Specific amounts of experience are needed to reach each level
  • Application: Upon gaining a level, characters receive benefits like increased health

Experience Sources

  • Enemy Defeat: The primary source of experience for the hero
  • Quest Completion: Some quests provide experience rewards
  • Special Events: Rare events or interactions may grant experience
  • NPC Interactions: Some NPCs may provide experience for special tasks

Experience Values

  • Scaling: More powerful enemies grant more experience
  • Efficiency: Experience per health point tends to be consistent across enemy types
  • Level Relevance: Experience values are appropriate to character level progression

Code References

  • Experience System: Char.java - How experience is tracked
  • Hero Experience: Hero.java - How heroes gain and use experience (see setExp() and getExpForLevelUp() methods)
  • Mob Experience: Mob.java - How mobs provide experience when defeated (expForKill field)
  • Leveling Calculation: Leveling code - Implementation of the level-up process
  • Experience Potion: PotionOfExperience.java - Item that grants experience
  • String Resources: strings_all.xml - Experience potion text (PotionOfExperience_Name, PotionOfExperience_Info)

Detailed Implementation

  • Hero.java contains EXP field and getExpForLevelUp(), setExp() methods
  • Char.java contains level() method that calculates character level
  • Mob.java has expForKill field determining experience granted when defeated
  • Experience is stored in Hero's bundle as “exp” during serialization
  • Level progression formula: expForLevelUp increases as hero levels up
  • Experience potion grants 1/2 of the experience needed to reach next level

See Also

en/rpd/experience_system.txt · Last modified: by 127.0.0.1