mr:strong_shield_item
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| mr:strong_shield_item [2025/12/25 18:23] – auto lint fix Mikhael | mr:strong_shield_item [2025/12/29 22:07] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Strong Shield Item - Code References ====== | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | * [[https:// | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | [[https:// | ||
| + | [[https:// | ||
| + | [[https:// | ||
| + | [[https:// | ||
| + | [[https:// | ||
| + | [[https:// | ||
| + | [[https:// | ||
| + | [[https:// | ||
| + | [[https:// | ||
| + | [[https:// | ||
| + | |||
| + | ===== Related Libraries ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ===== Implementation Details ===== | ||
| + | <code lua> | ||
| + | local RPD = require " | ||
| + | |||
| + | local item = require " | ||
| + | |||
| + | local shields = require " | ||
| + | |||
| + | local shieldLevel = 3 | ||
| + | local shieldDesc | ||
| + | |||
| + | local baseDesc = shields.makeShield(shieldLevel, | ||
| + | |||
| + | baseDesc.desc = function (self, item) | ||
| + | return { | ||
| + | image = 2, | ||
| + | imageFile | ||
| + | name = " | ||
| + | info = shieldDesc, | ||
| + | price = 80 * shieldLevel, | ||
| + | equipable | ||
| + | upgradable | ||
| + | } | ||
| + | end | ||
| + | |||
| + | return item.init(baseDesc) | ||
| + | </ | ||
