mr:candy_of_death_item
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:candy_of_death_item [2026/02/15 20:13] – Fix wiki pages identified by random selection Qwen Assistant | mr:candy_of_death_item [2026/02/15 20:18] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Candy Of Death Item - Code References ====== | ||
| + | |||
| + | {{ rpd: | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ===== Java Class Content ===== | ||
| + | <code java> | ||
| + | package com.nyrds.pixeldungeon.items.common.debug; | ||
| + | |||
| + | import com.watabou.pixeldungeon.actors.Char; | ||
| + | import com.watabou.pixeldungeon.items.food.Food; | ||
| + | |||
| + | import org.jetbrains.annotations.NotNull; | ||
| + | |||
| + | public class CandyOfDeath extends Food { | ||
| + | |||
| + | // DIE, DIE, DIE, DIE | ||
| + | |||
| + | public CandyOfDeath() { | ||
| + | imageFile = " | ||
| + | image = 21; | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public void _execute(@NotNull Char chr, @NotNull String action ) { | ||
| + | super._execute(chr, | ||
| + | chr.damage(chr.ht(), | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public int price() { | ||
| + | return 20 * quantity(); | ||
| + | } | ||
| + | |||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== 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 | ||
| + | |||
| + | ===== Implementation Notes ===== | ||
| + | * **Class:** Extends Food | ||
| + | * **Special Ability:** When consumed, damages the character for their full HP (chr.damage(chr.ht(), | ||
| + | * **Effect:** Instantly kills the character that eats it | ||
| + | * **Usage:** Debug/ | ||
| + | * **Price:** 20 gold per item | ||
| + | * **Sprite:** Uses index 21 from " | ||
| + | |||
| + | ===== Entity Kind ===== | ||
| + | * Entity Kind: CandyOfDeath | ||
mr/candy_of_death_item.txt · Last modified: by 127.0.0.1
