mr:lightning_trap
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:lightning_trap [2026/04/12 12:31] – Fix wiki page compliance issues and add mr:lightning_trap Qwen Assistant | mr:lightning_trap [2026/04/12 12:32] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Lightning Trap - Code References ====== | ||
| + | |||
| + | {{ rpd: | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | * [[https:// | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | This entity is implemented in Java, no JSON configuration exists | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | This entity is implemented in Java, no Lua script exists | ||
| + | |||
| + | ===== Entity Implementation Details ===== | ||
| + | * **Package: | ||
| + | * **Base Interface: | ||
| + | * **Entity Kind:** LightningTrap | ||
| + | * **Type:** Trap (level object) | ||
| + | * **Damage Type:** Electricity (LightningTrap.Electricity) | ||
| + | * **Damage Formula:** Math.max(1, Random.Int(ch.hp() / 3, 2 * ch.hp() / 3)) | ||
| + | * **Damage Range:** 1/3 to 2/3 of target' | ||
| + | * **Visual Effect:** Lightning bolts in cross pattern (horizontal and vertical) | ||
| + | * **Camera Effect:** Camera shake (2 intensity, 0.3f duration) for hero | ||
| + | * **Particle Effect:** SparkParticle burst (3-4 particles) | ||
| + | * **Hero Equipment Effect:** Charges or discharges all equipment (ch.getBelongings().charge(false)) | ||
| + | |||
| + | ===== Damage Type ===== | ||
| + | * **Electricity Class:** LightningTrap.Electricity implements NamedEntityKind | ||
| + | * **Entity Kind Name:** " | ||
| + | * **Used For:** Damage identification and resistance calculations | ||
| + | |||
| + | ===== Trigger Behavior ===== | ||
| + | * **Activation: | ||
| + | * **Target:** Creature at trap position (can be passed as parameter or found via Actor.findChar) | ||
| + | * **Area Effect:** Lightning extends in 4 directions (up, down, left, right) from center | ||
| + | * **Death Message:** "You were killed by a discharge of a lightning trap..." | ||
| + | |||
| + | ===== Related Files ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ===== Related mr Entities ===== | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | |||
| + | {{tag> mr trap lightning electricity damage}} | ||
mr/lightning_trap.txt · Last modified: by 127.0.0.1
