Module:Sandbox/User:Andmcadams/SlayerConsts

From RuneRealm Wiki
Jump to navigation Jump to search
Module documentation
This documentation is transcluded from Template:Module sandbox/doc. [edit] [history] [purge]

This module is a sandbox for Andmcadams. It can be used to test changes to existing modules, prototype new modules, or just experimenting with lua features.

Invocations of this sandbox should be kept in userspace; if the module is intended for use in other namespaces, it should be moved out of the sandbox into a normal module and template.

This default documentation can be overridden by creating the /doc subpage of this module, as normal.

p = {}

p.UNLOCK_SEEING_RED = 1
p.UNLOCK_I_HOPE_YOU_MITH_ME = 2
p.UNLOCK_WATCH_THE_BIRDIE = 3
p.UNLOCK_HOT_STUFF = 4
p.UNLOCK_REPTILE_GOT_RIPPED = 5
p.UNLOCK_LIKE_A_BOSS = 6
p.UNLOCK_STOP_THE_WYVERN = 7
p.UNLOCK_BASILOCKED = 8
p.UNLOCK_VAMPYRES = 9
p.UNLOCK_I_WILDY_MORE_SLAYER = 10
p.UNLOCK_WARPED_REALITY = 11

p.QUEST_PRIEST_IN_PERIL = 1
p.QUEST_DRAGON_SLAYER_II = 2
p.QUEST_DRAGON_SLAYER = 3
p.QUEST_CABIN_FEVER = 4
p.QUEST_HORROR_FROM_THE_DEEP = 5
p.QUEST_MOURNINGS_END_PART_II = 6
p.QUEST_DESERT_TREASURE = 7
p.QUEST_REGICIDE = 8
p.QUEST_BONE_VOYAGE = 9
p.QUEST_LOST_CITY = 10
p.QUEST_ELEMENTAL_WORKSHOP_I = 11
p.QUEST_DEATH_PLATEAU = 12
p.QUEST_LUNAR_DIPLOMACY = 13
p.QUEST_OLAFS_QUEST = 14
p.QUEST_CONTACT = 15
p.QUEST_RUM_DEAL = 16
p.QUEST_SKIPPY_AND_THE_MOGRES = 17
p.QUEST_DEATH_TO_THE_DORGESHUUN = 18
p.QUEST_LEGENDS_QUEST = 19
p.QUEST_ERNEST_THE_CHICKEN = 20
p.QUEST_ROYAL_TROUBLE = 21
p.QUEST_HAUNTED_MINE = 22
p.QUEST_A_PORCINE_OF_INTEREST = 23
p.QUEST_SECRETS_OF_THE_NORTH = 24
p.QUEST_DESERT_TREASURE_2 = 25
p.QUEST_PERILOUS_MOONS = 26

p.ENTERED_ANCIENT_CAVERN = 1
p.ACCESS_GWD = 3
p.BRITTLE_KEY = 4
p.ACCESS_ABYSS = 5

p.TASK_NONE = 0
p.TASK_ABERRANT_SPECTRES = 1
p.TASK_ABYSSAL_DEMONS = 2
p.TASK_ADAMANT_DRAGONS = 3
p.TASK_ANKOU = 4
p.TASK_AVIANSIE = 5
p.TASK_BANSHEES = 6
p.TASK_BASILISK = 7
p.TASK_BATS = 8
p.TASK_BEARS = 9
p.TASK_BIRDS = 10
p.TASK_BLACK_DEMONS = 11
p.TASK_BLACK_DRAGONS = 12
p.TASK_BLOODVELD = 13
p.TASK_BLUE_DRAGONS = 14
p.TASK_BOSS = 15
p.TASK_BRINE_RATS = 16
p.TASK_BRONZE_DRAGONS = 17
p.TASK_CATABLEPON = 18
p.TASK_CAVE_BUGS = 19
p.TASK_CAVE_CRAWLERS = 20
p.TASK_CAVE_HORRORS = 21
p.TASK_CAVE_KRAKEN = 22
p.TASK_CAVE_SLIME = 23
p.TASK_COCKATRICE = 24
p.TASK_COWS = 25
p.TASK_CRAWLING_HANDS = 26
p.TASK_CROCODILES = 27
p.TASK_DAGANNOTH = 28
p.TASK_DARK_BEASTS = 29
p.TASK_DOGS = 30
p.TASK_DRAKES = 31
p.TASK_DUST_DEVILS = 32
p.TASK_DWARVES = 33
p.TASK_EARTH_WARRIORS = 34
p.TASK_ELVES = 35
p.TASK_FEVER_SPIDERS = 36
p.TASK_FIRE_GIANTS = 37
p.TASK_FLESH_CRAWLERS = 38
p.TASK_FOSSIL_ISLAND_WYVERNS = 39
p.TASK_GARGOYLES = 40
p.TASK_GHOSTS = 41
p.TASK_GHOULS = 42
p.TASK_GOBLINS = 43
p.TASK_GREATER_DEMONS = 44
p.TASK_GREEN_DRAGONS = 45
p.TASK_HARPIE_BUG_SWARMS = 46
p.TASK_HELLHOUNDS = 47
p.TASK_HILL_GIANTS = 48
p.TASK_HOBGOBLINS = 49
p.TASK_ICE_GIANTS = 50
p.TASK_ICE_WARRIORS = 51
p.TASK_ICEFIENDS = 52
p.TASK_INFERNAL_MAGES = 53
p.TASK_IRON_DRAGONS = 54
p.TASK_JELLIES = 55
p.TASK_JUNGLE_HORRORS = 56
p.TASK_KALPHITES = 58
p.TASK_KILLERWATTS = 59
p.TASK_KURASK = 60
p.TASK_LESSER_DEMONS = 61
p.TASK_LIZARDS = 62
p.TASK_LIZARDMEN = 63
p.TASK_MINIONS_OF_SCABARAS = 64
p.TASK_MINOTAURS = 65
p.TASK_MITHRIL_DRAGONS = 66
p.TASK_MOGRES = 68
p.TASK_MOLANISK = 69
p.TASK_MONKEY = 70
p.TASK_MOSS_GIANTS = 71
p.TASK_MUTATED_ZYGOMITES = 72
p.TASK_NECHRYAEL = 73
p.TASK_OGRES = 74
p.TASK_OTHERWORLDLY_BEINGS = 75
p.TASK_PYREFIENDS = 76
p.TASK_RATS = 77
p.TASK_RED_DRAGONS = 78
p.TASK_ROCKSLUGS = 79
p.TASK_RUNE_DRAGONS = 80
p.TASK_SCORPIONS = 81
p.TASK_SEA_SNAKES = 82
p.TASK_SHADES = 83
p.TASK_SHADOW_WARRIORS = 84
p.TASK_SKELETAL_WYVERNS = 85
p.TASK_SKELETONS = 86
p.TASK_SMOKE_DEVILS = 87
p.TASK_SPIDERS = 88
p.TASK_SPIRITUAL_CREATURES = 90
p.TASK_STEEL_DRAGONS = 91
p.TASK_SUQAH = 92
p.TASK_TERROR_DOGS = 93
p.TASK_TROLLS = 94
p.TASK_TUROTH = 95
p.TASK_TZHAAR = 96
p.TASK_VAMPYRES = 97
p.TASK_WALL_BEASTS = 98
p.TASK_WATERFIEND = 99
p.TASK_WEREWOLVES = 100
p.TASK_WOLVES = 101
p.TASK_WYRMS = 102
p.TASK_ZOMBIES = 103
p.TASK_BANDITS = 104
p.TASK_CHAOS_DRUIDS = 105
p.TASK_DARK_WARRIORS = 106
p.TASK_ENTS = 107
p.TASK_LAVA_DRAGONS = 108
p.TASK_MAGIC_AXES = 109
p.TASK_MAMMOTHS = 110
p.TASK_REVENANTS = 111
p.TASK_ROGUES = 112
p.TASK_HYDRAS = 113
p.TASK_BOSS_ABYSSAL_SIRE = 114
p.TASK_BOSS_ALCHEMICAL_HYDRA = 115
p.TASK_BOSS_BARROWS = 116
p.TASK_BOSS_CALLISTO = 117
p.TASK_BOSS_CERBERUS = 118
p.TASK_BOSS_CHAOS_ELEMENTAL = 119
p.TASK_BOSS_CHAOS_FANATIC = 120
p.TASK_BOSS_COMMANDER_ZILYANA = 121
p.TASK_BOSS_CRAZY_ARCHAEOLOGIST = 122
p.TASK_BOSS_DAGANNOTH_KINGS = 123
p.TASK_BOSS_GENERAL_GRAARDOR = 124
p.TASK_BOSS_GIANT_MOLE = 125
p.TASK_BOSS_GROTESQUE_GUARDIANS = 126
p.TASK_BOSS_KRIL_TSUTSAROTH = 127
p.TASK_BOSS_KALPHITE_QUEEN = 128
p.TASK_BOSS_KING_BLACK_DRAGON = 129
p.TASK_BOSS_KRAKEN = 130
p.TASK_BOSS_KREEARRA = 131
p.TASK_BOSS_SARACHNIS = 132
p.TASK_BOSS_SCORPIA = 133
p.TASK_BOSS_THERMONUCLEAR_SMOKE_DEVIL = 134
p.TASK_BOSS_VENENATIS = 135
p.TASK_BOSS_VETION = 136
p.TASK_BOSS_VORKATH = 137
p.TASK_BOSS_ZULRAH = 138


-- Note that Skotizo does not have _BOSS_ in its name because
-- Skotizo can not assigned as part of the Boss task.
p.TASK_SKOTIZO = 139
p.TASK_DEMONIC_GORILLAS = 140
p.TASK_SKELETON_HELLHOUNDS = 141

-- Tasks added to Krystilia 4/30/2020

p.TASK_PIRATES = 142
p.TASK_BLACK_KNIGHTS = 143

-- Sourhogs added to Turael 9/10/2020

p.TASK_SOURHOGS = 144

-- Added tasks from secrets of the north and desert treasure 2
p.TASK_BOSS_PHANTOM_MUSPAH = 145
p.TASK_BOSS_VARDORVIS = 146
p.TASK_BOSS_DUKE_SUCELLUS = 147
p.TASK_BOSS_THE_WHISPERER = 148
p.TASK_BOSS_THE_LEVIATHAN = 149

-- Added Warped Creatures
p.TASK_WARPED_CREATURES = 150

-- Added Araxytes
p.TASK_ARAXYTES = 151
p.TASK_BOSS_ARAXXOR = 152

p.TASK_LESSER_NAGUAS = 153

UNLOCK_IDS = {
	["Seeing red"] = p.UNLOCK_SEEING_RED,
	["I hope you mith me"] = p.UNLOCK_I_HOPE_YOU_MITH_ME,
	["Watch the birdie"] = p.UNLOCK_WATCH_THE_BIRDIE,
	["Hot stuff"] = p.UNLOCK_HOT_STUFF,
	["Reptile got ripped"] = p.UNLOCK_REPTILE_GOT_RIPPED,
	["Like a boss"] = p.UNLOCK_LIKE_A_BOSS,
	["Stop the Wyvern"] = p.UNLOCK_STOP_THE_WYVERN,
	["Basilocked"] = p.UNLOCK_BASILOCKED,
	["Unlock vampyres"] = p.UNLOCK_VAMPYRES,
	["I Wildy More Slayer"] = p.UNLOCK_I_WILDY_MORE_SLAYER,
	["Warped Reality"] = p.UNLOCK_WARPED_REALITY
}

function p.get_unlock_id(name)
	return UNLOCK_IDS[name]
end

function p.get_unlock_name(unlockId)
	for k, v in pairs(UNLOCK_IDS) do
		if v == unlockId then
			return k
		end
	end
end

function p.get_unlock_pairs()
	return pairs(UNLOCK_IDS)
end

QUEST_IDS = {
	["Priest in Peril"] = p.QUEST_PRIEST_IN_PERIL,
	["Dragon Slayer II"] = p.QUEST_DRAGON_SLAYER_II,
	["Dragon Slayer"] = p.QUEST_DRAGON_SLAYER,
	["Cabin Fever"] = p.QUEST_CABIN_FEVER,
	["Horror from the Deep"] = p.QUEST_HORROR_FROM_THE_DEEP,
	["Mournings End Part II"] = p.QUEST_MOURNINGS_END_PART_II,
	["Desert Treasure"] = p.QUEST_DESERT_TREASURE,
	["Regicide"] = p.QUEST_REGICIDE,
	["Bone Voyage"] = p.QUEST_BONE_VOYAGE,
	["Lost City"] = p.QUEST_LOST_CITY,
	["Elemental Workshop I"] = p.QUEST_ELEMENTAL_WORKSHOP_I,
	["Death Plateau"] = p.QUEST_DEATH_PLATEAU,
	["Lunar Diplomacy"] = p.QUEST_LUNAR_DIPLOMACY,
	["Olafs Quest"] = p.QUEST_OLAFS_QUEST,
	["Contact!"] = p.QUEST_CONTACT,
	["Rum Deal"] = p.QUEST_RUM_DEAL,
	["Skippy and the Mogres"] = p.QUEST_SKIPPY_AND_THE_MOGRES,
	["Death to the Dorgeshuun"] = p.QUEST_DEATH_TO_THE_DORGESHUUN,
	["Legends Quest"] = p.QUEST_LEGENDS_QUEST,
	["Ernest the Chicken"] = p.QUEST_ERNEST_THE_CHICKEN,
	["Royal Trouble"] = p.QUEST_ROYAL_TROUBLE,
	["Haunted Mine"] = p.QUEST_HAUNTED_MINE,
	["A Porcine of Interest"] = p.QUEST_A_PORCINE_OF_INTEREST,
	["Secrets of the North"] = p.QUEST_SECRETS_OF_THE_NORTH,
	["Desert Treasure 2"] = p.QUEST_DESERT_TREASURE_2,
	["Perilous Moons"] = p.QUEST_PERILOUS_MOONS
}

function p.get_quest_id(name)
	return QUEST_IDS[name]
end

function p.get_quest_name(questId)
	for k, v in pairs(QUEST_IDS) do
		if v == questId then
			return k
		end
	end
end

function p.get_quest_pairs()
	return pairs(QUEST_IDS)
end

OTHER_IDS = {
	["Ancient Cavern"] = p.ENTERED_ANCIENT_CAVERN,
	["Access GWD"] = p.ACCESS_GWD,
	["Brittle Key"] = p.BRITTLE_KEY,
	["Access Abyss"] = p.ACCESS_ABYSS
}

function p.get_other_id(name)
	return OTHER_IDS[name]
end

function p.get_other_name(otherId)
	for k, v in pairs(OTHER_IDS) do
		if v == otherId then
			return k
		end
	end
end

function p.get_other_pairs()
	return pairs(OTHER_IDS)
end

MONSTER_IDS = {
	["None"] = p.TASK_NONE,
	["Aberrant spectres"] = p.TASK_ABERRANT_SPECTRES,
	["Abyssal demons"] = p.TASK_ABYSSAL_DEMONS,
	["Adamant dragons"] = p.TASK_ADAMANT_DRAGONS,
	["Ankou"] = p.TASK_ANKOU,
	["Aviansie"] = p.TASK_AVIANSIE,
	["Banshees"] = p.TASK_BANSHEES,
	["Basilisk"] = p.TASK_BASILISK,
	["Bats"] = p.TASK_BATS,
	["Bears"] = p.TASK_BEARS,
	["Birds"] = p.TASK_BIRDS,
	["Black demons"] = p.TASK_BLACK_DEMONS,
	["Black dragons"] = p.TASK_BLACK_DRAGONS,
	["Bloodveld"] = p.TASK_BLOODVELD,
	["Blue dragons"] = p.TASK_BLUE_DRAGONS,
	["Boss"] = p.TASK_BOSS,
	["Brine rats"] = p.TASK_BRINE_RATS,
	["Bronze dragons"] = p.TASK_BRONZE_DRAGONS,
	["Catablepon"] = p.TASK_CATABLEPON,
	["Cave bugs"] = p.TASK_CAVE_BUGS,
	["Cave crawlers"] = p.TASK_CAVE_CRAWLERS,
	["Cave horrors"] = p.TASK_CAVE_HORRORS,
	["Cave kraken"] = p.TASK_CAVE_KRAKEN,
	["Cave slime"] = p.TASK_CAVE_SLIME,
	["Cockatrice"] = p.TASK_COCKATRICE,
	["Cows"] = p.TASK_COWS,
	["Crawling Hands"] = p.TASK_CRAWLING_HANDS,
	["Crocodiles"] = p.TASK_CROCODILES,
	["Dagannoth"] = p.TASK_DAGANNOTH,
	["Dark beasts"] = p.TASK_DARK_BEASTS,
	["Dogs"] = p.TASK_DOGS,
	["Drakes"] = p.TASK_DRAKES,
	["Dust devils"] = p.TASK_DUST_DEVILS,
	["Dwarves"] = p.TASK_DWARVES,
	["Earth warriors"] = p.TASK_EARTH_WARRIORS,
	["Elves"] = p.TASK_ELVES,
	["Fever spiders"] = p.TASK_FEVER_SPIDERS,
	["Fire giants"] = p.TASK_FIRE_GIANTS,
	["Flesh Crawlers"] = p.TASK_FLESH_CRAWLERS,
	["Fossil Island Wyverns"] = p.TASK_FOSSIL_ISLAND_WYVERNS,
	["Gargoyles"] = p.TASK_GARGOYLES,
	["Ghosts"] = p.TASK_GHOSTS,
	["Ghouls"] = p.TASK_GHOULS,
	["Goblins"] = p.TASK_GOBLINS,
	["Greater demons"] = p.TASK_GREATER_DEMONS,
	["Green dragons"] = p.TASK_GREEN_DRAGONS,
	["Harpie Bug Swarms"] = p.TASK_HARPIE_BUG_SWARMS,
	["Hellhounds"] = p.TASK_HELLHOUNDS,
	["Hill Giants"] = p.TASK_HILL_GIANTS,
	["Hobgoblins"] = p.TASK_HOBGOBLINS,
	["Ice giants"] = p.TASK_ICE_GIANTS,
	["Ice warriors"] = p.TASK_ICE_WARRIORS,
	["Icefiends"] = p.TASK_ICEFIENDS,
	["Infernal Mages"] = p.TASK_INFERNAL_MAGES,
	["Iron dragons"] = p.TASK_IRON_DRAGONS,
	["Jellies"] = p.TASK_JELLIES,
	["Jungle horrors"] = p.TASK_JUNGLE_HORRORS,
	["Kalphites"] = p.TASK_KALPHITES,
	["Killerwatts"] = p.TASK_KILLERWATTS,
	["Kurask"] = p.TASK_KURASK,
	["Lesser demons"] = p.TASK_LESSER_DEMONS,
	["Lesser naguas"] = p.TASK_LESSER_NAGUAS,
	["Lizards"] = p.TASK_LIZARDS,
	["Lizardmen"] = p.TASK_LIZARDMEN,
	["Minions of Scabaras"] = p.TASK_MINIONS_OF_SCABARAS,
	["Minotaurs"] = p.TASK_MINOTAURS,
	["Mithril dragons"] = p.TASK_MITHRIL_DRAGONS,
	["Mogres"] = p.TASK_MOGRES,
	["Molanisk"] = p.TASK_MOLANISK,
	["Monkey"] = p.TASK_MONKEY,
	["Moss giants"] = p.TASK_MOSS_GIANTS,
	["Mutated Zygomites"] = p.TASK_MUTATED_ZYGOMITES,
	["Nechryael"] = p.TASK_NECHRYAEL,
	["Ogres"] = p.TASK_OGRES,
	["Otherworldly beings"] = p.TASK_OTHERWORLDLY_BEINGS,
	["Pyrefiends"] = p.TASK_PYREFIENDS,
	["Rats"] = p.TASK_RATS,
	["Red dragons"] = p.TASK_RED_DRAGONS,
	["Rockslugs"] = p.TASK_ROCKSLUGS,
	["Rune dragons"] = p.TASK_RUNE_DRAGONS,
	["Scorpions"] = p.TASK_SCORPIONS,
	["Sea snakes"] = p.TASK_SEA_SNAKES,
	["Shades"] = p.TASK_SHADES,
	["Shadow warriors"] = p.TASK_SHADOW_WARRIORS,
	["Skeletal Wyverns"] = p.TASK_SKELETAL_WYVERNS,
	["Skeletons"] = p.TASK_SKELETONS,
	["Smoke devils"] = p.TASK_SMOKE_DEVILS,
	["Spiders"] = p.TASK_SPIDERS,
	["Spiritual creatures"] = p.TASK_SPIRITUAL_CREATURES,
	["Steel dragons"] = p.TASK_STEEL_DRAGONS,
	["Suqah"] = p.TASK_SUQAH,
	["Terror dogs"] = p.TASK_TERROR_DOGS,
	["Trolls"] = p.TASK_TROLLS,
	["Turoth"] = p.TASK_TUROTH,
	["TzHaar"] = p.TASK_TZHAAR,
	["Vampyres"] = p.TASK_VAMPYRES,
	["Wall beasts"] = p.TASK_WALL_BEASTS,
	["Waterfiend"] = p.TASK_WATERFIEND,
	["Werewolves"] = p.TASK_WEREWOLVES,
	["Wolves"] = p.TASK_WOLVES,
	["Wyrms"] = p.TASK_WYRMS,
	["Zombies"] = p.TASK_ZOMBIES,
	["Bandits"] = p.TASK_BANDITS,
	["Chaos druids"] = p.TASK_CHAOS_DRUIDS,
	["Dark warriors"] = p.TASK_DARK_WARRIORS,
	["Ents"] = p.TASK_ENTS,
	["Lava dragons"] = p.TASK_LAVA_DRAGONS,
	["Magic axes"] = p.TASK_MAGIC_AXES,
	["Mammoths"] = p.TASK_MAMMOTHS,
	["Revenants"] = p.TASK_REVENANTS,
	["Rogues"] = p.TASK_ROGUES,
	["Hydras"] = p.TASK_HYDRAS,
	["Abyssal Sire"] = p.TASK_BOSS_ABYSSAL_SIRE,
	["Alchemical Hydra"] = p.TASK_BOSS_ALCHEMICAL_HYDRA,
	["Barrows"] = p.TASK_BOSS_BARROWS,
	["Callisto"] = p.TASK_BOSS_CALLISTO,
	["Cerberus"] = p.TASK_BOSS_CERBERUS,
	["Chaos Elemental"] = p.TASK_BOSS_CHAOS_ELEMENTAL,
	["Chaos Fanatic"] = p.TASK_BOSS_CHAOS_FANATIC,
	["Commander Zilyana"] = p.TASK_BOSS_COMMANDER_ZILYANA,
	["Crazy Archaeologist"] = p.TASK_BOSS_CRAZY_ARCHAEOLOGIST,
	["Dagannoth Kings"] = p.TASK_BOSS_DAGANNOTH_KINGS,
	["General Graardor"] = p.TASK_BOSS_GENERAL_GRAARDOR,
	["Giant Mole"] = p.TASK_BOSS_GIANT_MOLE,
	["Grotesque Guardians"] = p.TASK_BOSS_GROTESQUE_GUARDIANS,
	["Kril Tsutsaroth"] = p.TASK_BOSS_KRIL_TSUTSAROTH,
	["Kalphite Queen"] = p.TASK_BOSS_KALPHITE_QUEEN,
	["King Black Dragon"] = p.TASK_BOSS_KING_BLACK_DRAGON,
	["Kraken"] = p.TASK_BOSS_KRAKEN,
	["Kreearra"] = p.TASK_BOSS_KREEARRA,
	["Sarachnis"] = p.TASK_BOSS_SARACHNIS,
	["Scorpia"] = p.TASK_BOSS_SCORPIA,
	["Thermonuclear Smoke Devil"] = p.TASK_BOSS_THERMONUCLEAR_SMOKE_DEVIL,
	["Venenatis"] = p.TASK_BOSS_VENENATIS,
	["Vetion"] = p.TASK_BOSS_VETION,
	["Vorkath"] = p.TASK_BOSS_VORKATH,
	["Zulrah"] = p.TASK_BOSS_ZULRAH,
	["Skotizo"] = p.TASK_SKOTIZO,
	["Demonic gorillas"] = p.TASK_DEMONIC_GORILLAS,
	["Skeleton Hellhounds"] = p.TASK_SKELETON_HELLHOUNDS,
	["Pirates"] = p.TASK_PIRATES,
	["Black knights"] = p.TASK_BLACK_KNIGHTS,
	["Sourhogs"] = p.TASK_SOURHOGS,
	["Warped Creatures"] = p.TASK_WARPED_CREATURES,
	["Araxytes"] = p.TASK_ARAXYTES,
	["Araxxor"] = p.TASK_BOSS_ARAXXOR
}

function p.get_monster_id(name)
	return MONSTER_IDS[name]
end

function p.get_monster_name(monsterId)
	for k, v in pairs(MONSTER_IDS) do
		if v == monsterId then
			return k
		end
	end
end

function p.get_monster_pairs()
	return pairs(MONSTER_IDS)
end

return p