Table of Contents

Tengu Liver Item - Code References

Tengu Liver

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:

JSON Configuration

This entity is implemented in Lua, no JSON configuration found. Check:

String Resources

English string resources:

<string name="TenguLiver_Name">Tengu liver</string>
<string name="TenguLiver_Info">A strange trophy dropped by Tengu when killed by Gnoll.</string>

Russian string resources (values-ru/strings_all.xml):

<string name="TenguLiver_Name">Печень Тенгу</string>
<string name="TenguLiver_Info">Странный трофей, выпадающий из Тенгу, когда его убивает Гнолл.</string>

Lua Scripts

Script Details:

return item.init{
    desc  = function ()
        return {
            image     = 1,
            imageFile = "items/mastery_items.png",
            name      = "TenguLiver_Name",
            info      = "TenguLiver_Info",
            defaultAction = "Food_ACEat",
            price         = 0
        }
    end,
 
    actions = function() return {RPD.Actions.eat} end,
 
    execute = function(self, item, hero, action)
        if action == RPD.Actions.eat then
            local wnd = luajava.newInstance(RPD.Objects.Ui.WndChooseWay, hero, item,
                hero:getSubClassByName("GUARDIAN"), hero:getSubClassByName("WITCHDOCTOR") )
            RPD.GameScene:show(wnd)
        end
    end,
 
    onPickUp = function(self, item, chr)
        RPD.Badges:validateMastery(chr:getHeroClass())
    end
}

Item Properties:

Behavior:

Drop Conditions