The Chaos Shield is a unique shield item in Remixed Dungeon that has special mechanics related to damage and charges. It's a level 3 shield that can gain and lose levels based on combat interactions.
The Chaos Shield is the result of fusing a Chaos Crystal with ordinary shield, causing it to manifest random chaotic effects upon a successful block. It's an unusual shield with dynamic properties that can change its level based on combat outcomes.
The Chaos Shield is implemented as a Lua script that extends the shields library:
RemixedDungeon/src/main/assets/scripts/items/ChaosShield.luashields.makeShield() function from the shields libraryownerTakesDamage() and ownerDoesDamage() eventsownerTakesDamage() decreases charges when owner is hitownerDoesDamage() increases charges when owner successfully damages enemy (if not cursed)desc() function provides item description using string resourcesimage() function determines sprite based on current levelChaosShield_name and ChaosShield_desc from strings_all.xml