mr:blindness_buff
Table of Contents
Blindness Buff - Code References
Java Classes
- Blindness.java - Main buff class extending FlavourBuff
- FlavourBuff.java - Parent class for flavour buffs
- BuffIndicator.java - Buff icon definitions (BLINDNESS constant)
JSON Configuration
This entity uses default buff configuration, no specific JSON config found:
- RemixedDungeon/src/main/assets/buffsDesc/*.json
String Resources
English (values/strings_all.xml):
<string name="BlindnessBuff_Name">Blinded</string> <string name="BlindnessBuff_Info">Completely blinded, only sounds can be heard.</string> <string name="Hero_StaBlindness">You have been blinded!</string>
Russian (values-ru/strings_all.xml):
<string name="BlindnessBuff_Name">Ослеплён</string> <string name="BlindnessBuff_Info">Полностью ослеплен, разве что слышны звуки вокруг.</string> <string name="Hero_StaBlindness">Тебя ослепили!</string>
Other languages:
- German (values-de/): Geblendet
- Spanish (values-es/): Cegado
- French (values-fr/): Aveuglé
- Greek (values-el/): Τύφλωση
Lua Scripts
- commonClasses.lua - Blindness class binding:
Blindness = luajava.bindClass(“com.watabou.pixeldungeon.actors.buffs.Blindness”) - ShootInEye.lua - Uses Blindness buff:
RPD.affectBuff(victim, RPD.Buffs.Blindness, caster:skillLevel()) - autoTestAi.lua - AI check:
if hero:buffLevel('Blindness') > 0 then
Buff Mechanics
- Type: FlavourBuff (temporary status effect)
- Effect: Completely blinds the target, limiting vision to only immediate surroundings
- Icon: BuffIndicator.BLINDNESS
- Attachment: Calls target.observe() when attached to refresh vision
- Detachment: Calls target.observe() when removed to restore normal vision
- Duration: Determined by the source applying the buff
Related Entities
- ShootInEye Spell - Spell that applies Blindness
- FlavourBuff - Parent class for temporary buffs
mr/blindness_buff.txt · Last modified: by 127.0.0.1
