Guest User

codpiece lua

a guest
Jul 30th, 2015
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.35 KB | None | 0 0
  1. local Talents = require "engine.interface.ActorTalents"
  2.  
  3. --currently copied from helm code
  4.  
  5. newEntity{
  6.     define_as = "BASE_CODPIECE",
  7.     slot = "CODPIECE",
  8.     type = "armor", subtype="codpiece",
  9.     add_name = " (#ARMOR#)",
  10.     display = "]", color=colors.SLATE, image = resolvers.image_material("codpiece", "metal"),
  11.     moddable_tile = resolvers.moddable_tile("codpiece"),
  12.     require = { talent = { Talents.T_ARMOUR_TRAINING }, },
  13.     encumber = 3,
  14.     rarity = 7,
  15.     metallic = true,
  16.     desc = [[A large codpiece that can protect the entire groin.]],
  17.     randart_able = "/data/general/objects/random-artifacts/generic.lua",
  18.     egos = "/data/general/objects/egos/codpiece.lua", egos_chance = { prefix=resolvers.mbonus(40, 5), suffix=resolvers.mbonus(40, 5) },
  19. }
  20.  
  21. newEntity{ base = "BASE_CODPIECE",
  22.     name = "iron codpiece", short_name = "iron",
  23.     level_range = {1, 20},
  24.     cost = 5,
  25.     material_level = 1,
  26.     wielder = {
  27.         combat_armor = 3,
  28.         fatigue = 5,
  29.     },
  30. }
  31.  
  32. newEntity{ base = "BASE_CODPIECE",
  33.     name = "dwarven-steel codpiece", short_name = "d.steel",
  34.     level_range = {20, 40},
  35.     cost = 7,
  36.     material_level = 3,
  37.     wielder = {
  38.         combat_armor = 4,
  39.         fatigue = 4,
  40.     },
  41. }
  42.  
  43. newEntity{ base = "BASE_CODPIECE",
  44.     name = "voratun codpiece", short_name = "voratun",
  45.     level_range = {40, 50},
  46.     cost = 10,
  47.     material_level = 5,
  48.     wielder = {
  49.         combat_armor = 5,
  50.         fatigue = 5,
  51.     },
  52. }
Advertisement
Add Comment
Please, Sign In to add comment