====== Blindness Buff - Code References ======
===== Java Classes =====
* [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/buffs/Blindness.java|Blindness.java]] - Main buff class extending FlavourBuff
* [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/actors/buffs/FlavourBuff.java|FlavourBuff.java]] - Parent class for flavour buffs
* [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/java/com/watabou/pixeldungeon/ui/BuffIndicator.java|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):
Blinded
Completely blinded, only sounds can be heard.
You have been blinded!
Russian (values-ru/strings_all.xml):
Ослеплён
Полностью ослеплен, разве что слышны звуки вокруг.
Тебя ослепили!
Other languages:
* German (values-de/): Geblendet
* Spanish (values-es/): Cegado
* French (values-fr/): Aveuglé
* Greek (values-el/): Τύφλωση
===== Lua Scripts =====
* [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/lib/commonClasses.lua|commonClasses.lua]] - Blindness class binding: ''Blindness = luajava.bindClass("com.watabou.pixeldungeon.actors.buffs.Blindness")''
* [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/spells/ShootInEye.lua|ShootInEye.lua]] - Uses Blindness buff: ''RPD.affectBuff(victim, RPD.Buffs.Blindness, caster:skillLevel())''
* [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/userServices/autoTestAi.lua|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 =====
* [[mr:shootineye_spell|ShootInEye Spell]] - Spell that applies Blindness
* [[mr:flavourbuff|FlavourBuff]] - Parent class for temporary buffs