Table of Contents

Hooked Dagger Item - Code References

The Hooked Dagger is a Lua-scripted melee weapon item in Remixed Dungeon. It is a dagger-type weapon that causes bleeding on hit.

Java Classes

This entity is implemented entirely in Lua. No Java class exists for this item.

The item uses the common Lua item framework:

JSON Configuration

This entity does not have a separate JSON configuration file. Item properties are defined in the Lua script.

Item properties from Lua script:

String Resources

<string name="HookedDagger_Name">[Name]</string>
<string name="HookedDagger_Info">[Description]</string>

Note: Actual string values should be verified in the game's string resource files:

Lua Scripts

Main Script: HookedDagger.lua

Key Functions:

-- Item description
desc = function()
    return {
        image = 3,
        imageFile = "items/daggers.png",
        name = "HookedDagger_Name",
        info = "HookedDagger_Info",
        price = 17,
        equipable = RPD.Slots.weapon
    }
end
 
-- Melee weapon flag
goodForMelee = function()
    return true
end
 
-- Visual name (returns "Wand" - may be a placeholder)
getVisualName = function()
    return "Wand"
end
 
-- Attack animation class
getAttackAnimationClass = function()
    return "staff"
end
 
-- Damage calculation (scales with item level)
damageRoll = function(item, user)
    local lvl = item:level()
    return math.random(lvl, lvl*2)
end
 
-- Attack proc: applies Bleeding buff for 3 turns
attackProc = function(item, attacker, defender, damage)
    RPD.affectBuff(defender, "Bleeding", 3)
    return damage
end
 
-- Required strength
typicalSTR = function()
    return 9
end

Special Abilities:

Buffs:

Similar Items:

Code References