Module:ShipCreatureData
Jump to navigation
Jump to search
Documentation for this module may be created at Module:ShipCreatureData/doc
local p = { ["Blood Daemon"] = { ["location"] = "Ships", ["difficulty"] = 132.6, ["goldvalue"] = 1326, ["hits"] = 8000, ["minmeleedmg"] = 50, ["maxmeleedmg"] = 60, ["wrestling"] = 110, ["armor"] = 25, ["magicresist"] = 100, ["magery"] = 100, ["minspelldmg"] = 20, ["maxspelldmg"] = 30, ["slayer"] = "Daemonic", ["ai"] = "MeleeMage", ["speed"] = "Medium", ["uniquescalar"] = 1.2, }, ["Blood Feaster"] = { ["location"] = "Ships", ["difficulty"] = 85.6, ["goldvalue"] = 856, ["hits"] = 4500, ["minmeleedmg"] = 40, ["maxmeleedmg"] = 50, ["wrestling"] = 90, ["armor"] = 50, ["magicresist"] = 25, ["slayer"] = "Daemonic", ["ai"] = "Melee", ["speed"] = "Medium", ["uniquescalar"] = 1.4, }, ["Bloody Hornbeast"] = { ["location"] = "Ships", ["difficulty"] = 57.3, ["goldvalue"] = 573, ["hits"] = 3500, ["minmeleedmg"] = 30, ["maxmeleedmg"] = 40, ["wrestling"] = 90, ["armor"] = 50, ["magicresist"] = 100, ["slayer"] = "Daemonic", ["ai"] = "Melee", ["speed"] = "VeryFast", ["uniquescalar"] = 1.2, }, ["Drowned Dragon"] = { ["location"] = "Ships", ["difficulty"] = 62, ["goldvalue"] = 620, ["hits"] = 4000, ["minmeleedmg"] = 30, ["maxmeleedmg"] = 40, ["wrestling"] = 80, ["armor"] = 50, ["magicresist"] = 25, ["poisonresist"] = 0.6, ["slayer"] = "Undead", ["ai"] = "Melee", ["speed"] = "Medium", ["uniquescalar"] = 1.3, }, ["Druidic Voyager"] = { ["location"] = "Ships", ["difficulty"] = 39, ["goldvalue"] = 391, ["hits"] = 5000, ["minmeleedmg"] = 25, ["maxmeleedmg"] = 35, ["wrestling"] = 100, ["armor"] = 25, ["magicresist"] = 25, ["poisonresist"] = 0.2, ["slayer"] = "Humanoid", ["ai"] = "Melee", ["speed"] = "Fast", ["uniquescalar"] = 1, }, ["Explorer Captain"] = { ["location"] = "Ships", ["difficulty"] = 45.3, ["goldvalue"] = 454, ["hits"] = 5000, ["minmeleedmg"] = 40, ["maxmeleedmg"] = 50, ["wrestling"] = 120, ["armor"] = 50, ["magicresist"] = 25, ["slayer"] = "Humanoid", ["ai"] = "Melee", ["speed"] = "Medium", ["uniquescalar"] = 1.05, }, ["Fisherman"] = { ["location"] = "Ships", ["difficulty"] = 17.6, ["goldvalue"] = 177, ["hits"] = 2000, ["minmeleedmg"] = 20, ["maxmeleedmg"] = 30, ["wrestling"] = 90, ["armor"] = 25, ["magicresist"] = 25, ["slayer"] = "Humanoid", ["ai"] = "Melee", ["speed"] = "Medium", ["uniquescalar"] = 1, }, ["Fisherman Captain"] = { ["location"] = "Ships", ["difficulty"] = 36.9, ["goldvalue"] = 369, ["hits"] = 4000, ["minmeleedmg"] = 35, ["maxmeleedmg"] = 45, ["wrestling"] = 110, ["armor"] = 25, ["magicresist"] = 25, ["slayer"] = "Humanoid", ["ai"] = "Melee", ["speed"] = "Medium", ["uniquescalar"] = 1.05, }, ["Fungaloid"] = { ["location"] = "Ships", ["difficulty"] = 40.7, ["goldvalue"] = 408, ["hits"] = 3000, ["minmeleedmg"] = 20, ["maxmeleedmg"] = 30, ["wrestling"] = 80, ["armor"] = 25, ["magicresist"] = 25, ["poisonresist"] = 0.4, ["slayer"] = "Nature", ["ai"] = "Melee", ["speed"] = "Medium", ["uniquescalar"] = 1.25, }, ["Ghostly Captain"] = { ["location"] = "Ships", ["difficulty"] = 45.8, ["goldvalue"] = 459, ["hits"] = 5000, ["minmeleedmg"] = 40, ["maxmeleedmg"] = 50, ["wrestling"] = 110, ["armor"] = 25, ["magicresist"] = 25, ["parry"] = 50, ["slayer"] = "Undead", ["ai"] = "Melee", ["speed"] = "Medium", ["uniquescalar"] = 1.05, }, ["Hierarch"] = { ["location"] = "Ships", ["difficulty"] = 62.7, ["goldvalue"] = 627, ["hits"] = 2500, ["minmeleedmg"] = 20, ["maxmeleedmg"] = 30, ["wrestling"] = 90, ["armor"] = 25, ["magicresist"] = 150, ["magery"] = 100, ["minspelldmg"] = 20, ["maxspelldmg"] = 30, ["slayer"] = "Humanoid", ["ai"] = "Mage", ["speed"] = "Slow", ["uniquescalar"] = 1.3, }, ["Insatiable Slime"] = { ["location"] = "Ships", ["difficulty"] = 9.9, ["goldvalue"] = 99, ["hits"] = 800, ["minmeleedmg"] = 10, ["maxmeleedmg"] = 20, ["wrestling"] = 65, ["armor"] = 25, ["magicresist"] = 25, ["parry"] = 25, ["poisontype"] = "Greater", ["poisoning"] = 50, ["poisonresist"] = 0.4, ["slayer"] = "Elemental", ["ai"] = "Melee", ["speed"] = "VerySlow", ["uniquescalar"] = 1.14, }, ["Insatiable Slug"] = { ["location"] = "Ships", ["difficulty"] = 14, ["goldvalue"] = 141, ["hits"] = 1250, ["minmeleedmg"] = 10, ["maxmeleedmg"] = 20, ["wrestling"] = 50, ["armor"] = 25, ["magicresist"] = 25, ["slayer"] = "Nature", ["ai"] = "Ranged", ["speed"] = "Slow", ["uniquescalar"] = 1.2, }, ["Jackal Spirit"] = { ["location"] = "Ships", ["difficulty"] = 56.5, ["goldvalue"] = 565, ["hits"] = 3500, ["minmeleedmg"] = 30, ["maxmeleedmg"] = 40, ["wrestling"] = 90, ["armor"] = 25, ["magicresist"] = 25, ["parry"] = 50, ["poisonresist"] = 0.6, ["slayer"] = "Undead", ["ai"] = "Melee", ["speed"] = "Medium", ["uniquescalar"] = 1.25, }, ["Lichenid"] = { ["location"] = "Ships", ["difficulty"] = 76.5, ["goldvalue"] = 765, ["hits"] = 4000, ["minmeleedmg"] = 40, ["maxmeleedmg"] = 50, ["wrestling"] = 90, ["armor"] = 75, ["magicresist"] = 25, ["poisonresist"] = 0.4, ["slayer"] = "Nature", ["ai"] = "Melee", ["speed"] = "Medium", ["uniquescalar"] = 1.35, }, ["Lizardman Elite Hunter"] = { ["location"] = "Ships", ["difficulty"] = 60.5, ["goldvalue"] = 606, ["hits"] = 4000, ["minmeleedmg"] = 35, ["maxmeleedmg"] = 45, ["wrestling"] = 90, ["armor"] = 50, ["magicresist"] = 25, ["slayer"] = "Monstrous", ["ai"] = "Melee", ["speed"] = "Medium", ["uniquescalar"] = 1.14, }, ["Lizardman Elite Warrior"] = { ["location"] = "Ships", ["difficulty"] = 79.4, ["goldvalue"] = 795, ["hits"] = 4500, ["minmeleedmg"] = 40, ["maxmeleedmg"] = 50, ["wrestling"] = 90, ["armor"] = 50, ["magicresist"] = 25, ["slayer"] = "Monstrous", ["ai"] = "Melee", ["speed"] = "Medium", ["uniquescalar"] = 1.3, }, ["Lizardman Warchief"] = { ["location"] = "Ships", ["difficulty"] = 134.8, ["goldvalue"] = 1349, ["hits"] = 8000, ["minmeleedmg"] = 50, ["maxmeleedmg"] = 60, ["wrestling"] = 100, ["armor"] = 50, ["magicresist"] = 25, ["slayer"] = "Monstrous", ["ai"] = "Melee", ["speed"] = "Medium", ["uniquescalar"] = 1.3, }, ["Maw Tentacle"] = { ["location"] = "Ships", ["difficulty"] = 27.9, ["goldvalue"] = 279, ["hits"] = 2000, ["minmeleedmg"] = 15, ["maxmeleedmg"] = 25, ["wrestling"] = 100, ["armor"] = 25, ["magicresist"] = 25, ["slayer"] = "Monstrous", ["ai"] = "Melee", ["speed"] = "Medium", ["uniquescalar"] = 1.25, }, ["Merchant Captain"] = { ["location"] = "Ships", ["difficulty"] = 46.2, ["goldvalue"] = 463, ["hits"] = 5000, ["minmeleedmg"] = 40, ["maxmeleedmg"] = 50, ["wrestling"] = 110, ["armor"] = 50, ["magicresist"] = 25, ["parry"] = 50, ["slayer"] = "Humanoid", ["ai"] = "Melee", ["speed"] = "Medium", ["uniquescalar"] = 1.05, }, ["Orc Reaver"] = { ["location"] = "Ships", ["difficulty"] = 26.9, ["goldvalue"] = 270, ["hits"] = 3000, ["minmeleedmg"] = 30, ["maxmeleedmg"] = 40, ["wrestling"] = 90, ["armor"] = 25, ["magicresist"] = 25, ["slayer"] = "Monstrous", ["ai"] = "Melee", ["speed"] = "Medium", ["uniquescalar"] = 1, }, ["Orc Reaver Captain"] = { ["location"] = "Ships", ["difficulty"] = 51.8, ["goldvalue"] = 518, ["hits"] = 6000, ["minmeleedmg"] = 50, ["maxmeleedmg"] = 60, ["wrestling"] = 100, ["armor"] = 50, ["magicresist"] = 25, ["slayer"] = "Monstrous", ["ai"] = "Melee", ["speed"] = "Medium", ["uniquescalar"] = 1, }, ["Ossuarian Sightless Seer"] = { ["location"] = "Ships", ["difficulty"] = 125.8, ["goldvalue"] = 1258, ["hits"] = 5000, ["minmeleedmg"] = 20, ["maxmeleedmg"] = 30, ["wrestling"] = 90, ["armor"] = 25, ["magicresist"] = 100, ["magery"] = 125, ["minspelldmg"] = 25, ["maxspelldmg"] = 35, ["slayer"] = "Humanoid", ["ai"] = "Mage", ["speed"] = "Medium", ["uniquescalar"] = 1.35, }, ["Pirate"] = { ["location"] = "Ships", ["difficulty"] = 21.7, ["goldvalue"] = 217, ["hits"] = 2500, ["minmeleedmg"] = 20, ["maxmeleedmg"] = 30, ["wrestling"] = 100, ["armor"] = 25, ["magicresist"] = 25, ["parry"] = 25, ["slayer"] = "Humanoid", ["ai"] = "Melee", ["speed"] = "Medium", ["uniquescalar"] = 1, }, ["Pirate Captain"] = { ["location"] = "Ships", ["difficulty"] = 46.2, ["goldvalue"] = 463, ["hits"] = 5000, ["minmeleedmg"] = 40, ["maxmeleedmg"] = 50, ["wrestling"] = 110, ["armor"] = 50, ["magicresist"] = 25, ["parry"] = 50, ["slayer"] = "Humanoid", ["ai"] = "Melee", ["speed"] = "Medium", ["uniquescalar"] = 1.05, }, ["Raider"] = { ["location"] = "Ships", ["difficulty"] = 23.4, ["goldvalue"] = 234, ["hits"] = 2500, ["minmeleedmg"] = 25, ["maxmeleedmg"] = 35, ["wrestling"] = 95, ["armor"] = 25, ["magicresist"] = 25, ["slayer"] = "Humanoid", ["ai"] = "Melee", ["speed"] = "Medium", ["uniquescalar"] = 1.05, }, ["Raider Captain"] = { ["location"] = "Ships", ["difficulty"] = 49, ["goldvalue"] = 490, ["hits"] = 5000, ["minmeleedmg"] = 45, ["maxmeleedmg"] = 55, ["wrestling"] = 110, ["armor"] = 50, ["magicresist"] = 25, ["slayer"] = "Humanoid", ["ai"] = "Melee", ["speed"] = "Medium", ["uniquescalar"] = 1.1, }, ["Sailor"] = { ["location"] = "Ships", ["difficulty"] = 21.7, ["goldvalue"] = 217, ["hits"] = 2500, ["minmeleedmg"] = 20, ["maxmeleedmg"] = 30, ["wrestling"] = 100, ["armor"] = 25, ["magicresist"] = 25, ["parry"] = 25, ["slayer"] = "Humanoid", ["ai"] = "Melee", ["speed"] = "Medium", ["uniquescalar"] = 1, }, ["Slime Purger"] = { ["location"] = "Ships", ["difficulty"] = 58.6, ["goldvalue"] = 586, ["hits"] = 3500, ["minmeleedmg"] = 30, ["maxmeleedmg"] = 40, ["wrestling"] = 90, ["armor"] = 25, ["magicresist"] = 25, ["poisonresist"] = 0.6, ["slayer"] = "Beastial", ["ai"] = "Ranged", ["speed"] = "Slow", ["uniquescalar"] = 1.35, }, ["Slimy Mass"] = { ["location"] = "Ships", ["difficulty"] = 38.5, ["goldvalue"] = 385, ["hits"] = 2500, ["minmeleedmg"] = 20, ["maxmeleedmg"] = 30, ["wrestling"] = 100, ["armor"] = 25, ["magicresist"] = 25, ["parry"] = 25, ["poisonresist"] = 0.6, ["slayer"] = "Construct", ["ai"] = "Ranged", ["speed"] = "Slow", ["uniquescalar"] = 1.3, }, ["Spy"] = { ["location"] = "Ships", ["difficulty"] = 18, ["goldvalue"] = 181, ["hits"] = 2000, ["minmeleedmg"] = 20, ["maxmeleedmg"] = 30, ["wrestling"] = 100, ["armor"] = 25, ["magicresist"] = 25, ["poisontype"] = "Greater", ["poisoning"] = 25, ["slayer"] = "Humanoid", ["ai"] = "Melee", ["speed"] = "Medium", ["uniquescalar"] = 1, }, ["Sunken Sorcerer"] = { ["location"] = "Ships", ["difficulty"] = 112, ["goldvalue"] = 1121, ["hits"] = 5000, ["minmeleedmg"] = 20, ["maxmeleedmg"] = 30, ["wrestling"] = 100, ["armor"] = 25, ["magicresist"] = 100, ["magery"] = 125, ["minspelldmg"] = 25, ["maxspelldmg"] = 35, ["slayer"] = "Monstrous", ["ai"] = "Mage", ["speed"] = "Slow", ["uniquescalar"] = 1.2, }, ["Tidecaller Cultist"] = { ["location"] = "Ships", ["difficulty"] = 112, ["goldvalue"] = 1121, ["hits"] = 5000, ["minmeleedmg"] = 20, ["maxmeleedmg"] = 30, ["wrestling"] = 100, ["armor"] = 25, ["magicresist"] = 100, ["magery"] = 125, ["minspelldmg"] = 25, ["maxspelldmg"] = 35, ["slayer"] = "Humanoid", ["ai"] = "Mage", ["speed"] = "Slow", ["uniquescalar"] = 1.2, }, ["Tidecaller Minion"] = { ["location"] = "Ships", ["difficulty"] = 34.4, ["goldvalue"] = 344, ["hits"] = 2000, ["minmeleedmg"] = 15, ["maxmeleedmg"] = 25, ["wrestling"] = 90, ["armor"] = 25, ["magicresist"] = 75, ["magery"] = 75, ["minspelldmg"] = 15, ["maxspelldmg"] = 25, ["slayer"] = "Daemonic", ["ai"] = "Mage", ["speed"] = "Slow", ["uniquescalar"] = 1, }, ["Tidecaller Sentry"] = { ["location"] = "Ships", ["difficulty"] = 52.9, ["goldvalue"] = 529, ["hits"] = 2500, ["minmeleedmg"] = 20, ["maxmeleedmg"] = 30, ["wrestling"] = 100, ["armor"] = 25, ["magicresist"] = 100, ["magery"] = 100, ["minspelldmg"] = 20, ["maxspelldmg"] = 30, ["slayer"] = "Construct", ["ai"] = "Mage", ["speed"] = "Slow", ["uniquescalar"] = 1.1, }, ["Tradesman"] = { ["location"] = "Ships", ["difficulty"] = 22.3, ["goldvalue"] = 223, ["hits"] = 2500, ["minmeleedmg"] = 25, ["maxmeleedmg"] = 35, ["wrestling"] = 95, ["armor"] = 25, ["magicresist"] = 25, ["slayer"] = "Humanoid", ["ai"] = "Melee", ["speed"] = "Medium", ["uniquescalar"] = 1, }, ["Tradesman Foreman"] = { ["location"] = "Ships", ["difficulty"] = 46.8, ["goldvalue"] = 468, ["hits"] = 5000, ["minmeleedmg"] = 45, ["maxmeleedmg"] = 55, ["wrestling"] = 115, ["armor"] = 50, ["magicresist"] = 25, ["slayer"] = "Humanoid", ["ai"] = "Melee", ["speed"] = "Medium", ["uniquescalar"] = 1.05, }, ["Vile Pedagogue"] = { ["location"] = "Ships", ["difficulty"] = 93.9, ["goldvalue"] = 939, ["hits"] = 5000, ["minmeleedmg"] = 20, ["maxmeleedmg"] = 30, ["wrestling"] = 100, ["armor"] = 25, ["magicresist"] = 125, ["magery"] = 125, ["minspelldmg"] = 25, ["maxspelldmg"] = 35, ["poisonresist"] = 0.6, ["slayer"] = "Humanoid", ["ai"] = "Mage", ["speed"] = "Medium", ["uniquescalar"] = 1, }, ["Watery Leaper"] = { ["location"] = "Ships", ["difficulty"] = 36.3, ["goldvalue"] = 363, ["hits"] = 2500, ["minmeleedmg"] = 20, ["maxmeleedmg"] = 30, ["wrestling"] = 90, ["armor"] = 25, ["magicresist"] = 25, ["slayer"] = "Beastial", ["ai"] = "Melee", ["speed"] = "VeryFast", ["uniquescalar"] = 1.2, }, } -- Helper function to add comma's between numbers function FormatInt(int) int = string.reverse(int) if string.len(int) > 3 and string.len(int) < 6 then int = string.gsub(int, "(%d%d%d)", "%1,") elseif string.len(int) == 6 then int = string.gsub(int, "(%d%d%d)(%d%d%d)", "%1,%2") elseif string.len(int) > 6 and string.len(int) < 9 then int = string.gsub(int, "(%d%d%d)(%d%d%d)", "%1,%2,") end int = string.reverse(int) return int end -- Fill out or format values for index, creature in pairs(p) do local defaultStatArray = { ["location"] = "Ships", ["difficulty"] = "?", ["goldvalue"] = "?", ["hits"] = "?", ["minmeleedmg"] = "", ["maxmeleedmg"] = "", ["wrestling"] = "", ["armor"] = "", ["magicresist"] = "", ["parry"] = "", ["atkspd"] = "?", ["magery"] = "", ["minspelldmg"] = "", ["maxspelldmg"] = "", ["poisontype"] = "", ["poisoning"] = "", ["poisonresist"] = "", ["stealth"] = "", ["slayer"] = "?", ["ai"] = "?", ["speed"] = "?", ["uniquescalar"] = "?", ["bosstype"] = "", ["armormin"] = "", ["magicresistmin"] = "", ["poisonresistmin"] = "", } if type(creature.location) == "table" then local locations = "" for i, spawnLocation in pairs(creature.location) do if locations ~= "" then locations = locations .. "<br>" end locations = locations .. "[[" .. spawnLocation .. "]]" end creature.location = locations elseif type(creature.location) == "string" and creature.location ~= "?" then creature.location = "[[" .. creature.location .. "]]" end if type(creature.goldvalue) == "number" then creature.goldvalue = FormatInt(creature.goldvalue) end if type(creature.hits) == "number" then creature.unformattedhits = creature.hits creature.hits = FormatInt(creature.hits) end if creature.armormin then creature.armormin = "<br>(" .. creature.armormin .. " min)" end if creature.magicresistmin then creature.magicresistmin = "<br>(" .. creature.magicresistmin .. " min)" end if creature.poisonresistmin then creature.poisonresistmin = "<br>(" .. creature.poisonresistmin .. " min)" end if creature.poisonresist then creature.poisonresist = (creature.poisonresist * 100) .. "%" end if creature.specialresist then creature.specialresist = (creature.specialresist * 100) .. "%" end if creature.minmeleedmg and creature.minmeleedmg ~= creature.maxmeleedmg then creature.minmeleedmg = creature.minmeleedmg .. " - " elseif creature.minmeleedmg == creature.maxmeleedmg then creature.maxmeleedmg = "" end if creature.minspelldmg and creature.minspelldmg ~= creature.maxspelldmg then creature.minspelldmg = creature.minspelldmg .. " - " elseif creature.minspelldmg == creature.maxspelldmg then creature.maxspelldmg = "" end for stat, defaultValue in pairs(defaultStatArray) do if creature[stat] == nil then creature[stat] = defaultValue end end end return p