mr:tengu_liver_item
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:tengu_liver_item [2026/03/01 19:36] – Wiki maintenance: Fix broken links and improve mr: namespace pages Qwen Assistant | mr:tengu_liver_item [2026/03/01 19:37] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Tengu Liver Item - Code References ====== | ||
| + | |||
| + | {{ rpd: | ||
| + | |||
| + | **Tengu Liver** is a special collectible item in Remixed Dungeon. It is dropped by Tengu boss when defeated by the Gnoll hero class, and allows the Gnoll to choose a subclass. | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | This entity is implemented in Lua, no Java class exists. | ||
| + | Related Java classes: | ||
| + | * Item pickup validation: ``RemixedDungeon/ | ||
| + | * Badge validation: ``RemixedDungeon/ | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | This entity is implemented in Lua, no JSON configuration found. Check: | ||
| + | * RemixedDungeon/ | ||
| + | * RemixedDungeon/ | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | English string resources: | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | Russian string resources (values-ru/ | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | * [[https:// | ||
| + | * Location: ``RemixedDungeon/ | ||
| + | |||
| + | **Script Details:** | ||
| + | <code lua> | ||
| + | return item.init{ | ||
| + | desc = function () | ||
| + | return { | ||
| + | image = 1, | ||
| + | imageFile = " | ||
| + | name = " | ||
| + | info = " | ||
| + | defaultAction = " | ||
| + | price = 0 | ||
| + | } | ||
| + | end, | ||
| + | |||
| + | actions = function() return {RPD.Actions.eat} end, | ||
| + | |||
| + | execute = function(self, | ||
| + | if action == RPD.Actions.eat then | ||
| + | local wnd = luajava.newInstance(RPD.Objects.Ui.WndChooseWay, | ||
| + | hero: | ||
| + | RPD.GameScene: | ||
| + | end | ||
| + | end, | ||
| + | |||
| + | onPickUp = function(self, | ||
| + | RPD.Badges: | ||
| + | end | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | **Item Properties: | ||
| + | * **Image ID**: 1 (from items/ | ||
| + | * **Sprite Sheet**: ``items/ | ||
| + | * **Default Action**: ``Food_ACEat`` (eat action) | ||
| + | * **Price**: 0 (cannot be sold) | ||
| + | * **Action**: Eat (consumes the item to choose subclass) | ||
| + | |||
| + | **Behavior: | ||
| + | * **On Eat**: Opens ``WndChooseWay`` dialog to choose between Guardian or Witchdoctor subclass | ||
| + | * **On Pickup**: Validates mastery badge for Gnoll hero class | ||
| + | * **Drop Condition**: | ||
| + | |||
| + | ===== Drop Conditions ===== | ||
| + | * **Source**: [[mr: | ||
| + | * **Requirement**: | ||
| + | * **Quantity**: | ||
| + | * **Purpose**: | ||
| + | |||
| + | ===== Related Entities ===== | ||
| + | * Boss mob: [[mr: | ||
| + | * Hero class: [[mr: | ||
| + | * Subclasses: Guardian, Witchdoctor | ||
| + | * UI: ``WndChooseWay`` (subclass selection dialog) | ||
| + | |||
| + | {{tag> mr item collectible mastery gnoll lua}} | ||
mr/tengu_liver_item.txt · Last modified: by 127.0.0.1
