mr:hooked_dagger_item
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| mr:hooked_dagger_item [2025/12/25 18:23] – auto lint fix Mikhael | mr:hooked_dagger_item [2026/03/29 15:15] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== 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: | ||
| + | * `scripts/ | ||
| + | * `scripts/ | ||
| + | |||
| + | ===== 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: | ||
| + | * **Image index:** 3 (from items/ | ||
| + | * **Image file:** items/ | ||
| + | * **Name string key:** HookedDagger_Name | ||
| + | * **Info string key:** HookedDagger_Info | ||
| + | * **Price:** 17 gold | ||
| + | * **Equipment slot:** Weapon slot (RPD.Slots.weapon) | ||
| + | * **Required STR:** 9 | ||
| + | * **Attack delay factor:** 1.0 | ||
| + | * **Accuracy factor:** 1.0 | ||
| + | * **Damage roll:** level * 1 to level * 2 (scales with item level) | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | |||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | Note: Actual string values should be verified in the game's string resource files: | ||
| + | * English: `RemixedDungeon/ | ||
| + | * Russian: `RemixedDungeon/ | ||
| + | * Other languages in their respective values-XX directories | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | |||
| + | **Main Script:** [[https:// | ||
| + | |||
| + | **Key Functions: | ||
| + | <code lua> | ||
| + | -- Item description | ||
| + | desc = function() | ||
| + | return { | ||
| + | image = 3, | ||
| + | imageFile = " | ||
| + | name = " | ||
| + | info = " | ||
| + | price = 17, | ||
| + | equipable = RPD.Slots.weapon | ||
| + | } | ||
| + | end | ||
| + | |||
| + | -- Melee weapon flag | ||
| + | goodForMelee = function() | ||
| + | return true | ||
| + | end | ||
| + | |||
| + | -- Visual name (returns " | ||
| + | getVisualName = function() | ||
| + | return " | ||
| + | end | ||
| + | |||
| + | -- Attack animation class | ||
| + | getAttackAnimationClass = function() | ||
| + | return " | ||
| + | end | ||
| + | |||
| + | -- Damage calculation (scales with item level) | ||
| + | damageRoll = function(item, | ||
| + | local lvl = item: | ||
| + | return math.random(lvl, | ||
| + | end | ||
| + | |||
| + | -- Attack proc: applies Bleeding buff for 3 turns | ||
| + | attackProc = function(item, | ||
| + | RPD.affectBuff(defender, | ||
| + | return damage | ||
| + | end | ||
| + | |||
| + | -- Required strength | ||
| + | typicalSTR = function() | ||
| + | return 9 | ||
| + | end | ||
| + | </ | ||
| + | |||
| + | **Special Abilities: | ||
| + | * **Bleeding Proc:** On hit, applies the Bleeding buff to the target for 3 turns | ||
| + | * **Level Scaling:** Damage scales with item level (1-2 damage per level) | ||
| + | * **Dual-wielding: | ||
| + | |||
| + | ===== Related Entities ===== | ||
| + | |||
| + | **Buffs:** | ||
| + | * [[mr: | ||
| + | |||
| + | **Similar Items:** | ||
| + | * Other daggers in the `scripts/ | ||
| + | * Melee weapons that apply status effects | ||
| + | |||
| + | ===== Code References ===== | ||
| + | * Lua: [[https:// | ||
| + | * Lua Library: [[https:// | ||
| + | * Lua Library: [[https:// | ||
| + | |||
| + | {{tag> mr code reference item weapon lua melee dagger}} | ||
