User Tools

Site Tools


mr:regeneration_buff

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
mr:regeneration_buff [2025/12/28 20:48] – Update regeneration_buff.txt in mr namespace with detailed technical information mikemr:regeneration_buff [2025/12/28 20:53] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Regeneration Buff - Code References ======
  
 +===== Java Classes =====
 +  * [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/buffs/Regeneration.java|Regeneration.java]]
 +
 +===== Code Implementation =====
 +This buff handles natural health regeneration for characters. The regeneration rate is affected by other buffs via regenerationBonus() method and can be modified by game facilitions (FAST_REGENERATION).
 +
 +===== Key Properties =====
 +  * **Base Regeneration Delay**: 10 turns (REGENERATION_DELAY constant)
 +  * **Heal Rate Formula**: (float) Math.pow(1.2, bonus[0]) where bonus is accumulated from other buffs
 +  * **Fast Regeneration Facilitation**: Adds +10 to the bonus when FAST_REGENERATION is enabled and the target is a hero
 +  * **Safe Level Condition**: Regeneration does not occur on safe levels (when target.level().isSafe() is true)
 +  * **Starving Condition**: Regeneration does not occur when the target is starving (target.isStarving())
 +
 +===== Method Details =====
 +  * **act()**: Main action method that handles the regeneration process, calculates healing points based on bonuses, and schedules the next regeneration
 +  * **attachTo()**: Overrides the default behavior to check if the target already has regeneration buff level > 0
 +
 +===== JSON Configuration =====
 +This entity is implemented in Java, no JSON configuration exists
 +
 +===== String Resources =====
 +  * No specific string resources for this entity (name and description use default class name)
 +
 +===== Lua Scripts =====
 +This entity is implemented in Java, no Lua script exists
mr/regeneration_buff.txt · Last modified: by 127.0.0.1