User Tools

Site Tools


mr:chaos_shield_left_buff

Chaos Shield Left Buff - Code References

Lua Scripts

String Resources

<string name="ShieldBuffReady_Name">Shield</string>
<string name="ShieldBuffNotReady_Name">Shield (Not Ready)</string>
<string name="ShieldBuffReady_Info">Your shield is ready to block the next attack.</string>
<string name="ShieldBuffNotReady_Info">Your shield is not ready yet. Wait for it to recharge.</string>

These strings are referenced in the Lua script but are defined in the main game resources:

Key Properties from Code

Buff Name in Code: “ChaosShieldLeft” (as used in ChaosShield.lua)

Chaotic Effects on Block: When the Chaos Shield successfully blocks an attack, one of six random effects occurs:

  • Heal Bearer: Heals the shield bearer for the blocked damage amount (10% chance to double heal)
  • Damage Enemy: Damages the attacker for the blocked damage amount (10% chance to double damage)
  • Clone Enemy: Creates a clone of the enemy in an adjacent cell
  • Buff Bearer: Applies a random beneficial buff (ManaShield, DieHard, BodyArmor, Blessed, Barkskin, Fury, Speed)
  • Curse Enemy: Applies a random debuff (Poison, Ooze, Charm, Slow, Sleep, Roots, Amok, Bleeding, Necrotism, Terror, Paralysis, Cripple, Stun)
  • Turn to Sheep: Transforms the enemy into a Sheep for 3-5 turns (bosses immune)

Shield Mechanics:

  • Two states: “ready” (icon 47) and “not ready” (icon 48)
  • Block chance based on shield level and hero STR
  • Damage reduction based on shield level and item level
  • Recharge time and wait-after-block time calculated by shields.lua library

Code References

mr/chaos_shield_left_buff.txt · Last modified: by 127.0.0.1