mr:strong_shield_item
Table of Contents
Strong Shield Item - Code References
Lua Scripts
- StrongShield.lua - Main implementation of the shield
String Resources
<string name="StrongShield_name">Bronze Plated Shield</string> <string name="StrongShield_desc">This rectangular shield is plated with bronze sheets and decorated with colored cloth. It is significantly heavier, but can block much more incoming damage.</string>
English string resources Russian string resources German string resources French string resources Spanish string resources Chinese string resources Japanese string resources Indonesian string resources Portuguese string resources Ukrainian string resources
Related Libraries
- shields.lua - Shield library with common shield mechanics
- item.lua - Common item library used by all items
Implementation Details
local RPD = require "scripts/lib/commonClasses" local item = require "scripts/lib/item" local shields = require "scripts/lib/shields" local shieldLevel = 3 local shieldDesc = "StrongShield_desc" local baseDesc = shields.makeShield(shieldLevel,shieldDesc) baseDesc.desc = function (self, item) return { image = 2, imageFile = "items/shields.png", name = "StrongShield_name", info = shieldDesc, price = 80 * shieldLevel, equipable = "left_hand", upgradable = true } end return item.init(baseDesc)
mr/strong_shield_item.txt · Last modified: by 127.0.0.1
