Module:Torneko 1 Trap Data Cell

MDFW - The Mystery Dungeon Tree of Information.
Revision as of 21:49, 20 February 2024 by Adkuate (talk | contribs) (Created page with "-------------------------------------------------------------------------------- -- -- Module:Torneko 1 Trap Data Cell -- -- This module covers a list of traps in Japanese present in -- Torneko's Great Adventure: Mystery Dungeon. -- -- Parameters -- -- name: Insert the trap's English name there. -- -------------------------------------------------------------------------------- p = {} function p.torneko1TrapDataCell(f) -- Gets the arguments from #invoke:Torneko 1...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Documentation for this module may be created at Module:Torneko 1 Trap Data Cell/doc

--------------------------------------------------------------------------------
--
--						Module:Torneko 1 Trap Data Cell
--
-- This module covers a list of traps in Japanese present in
-- Torneko's Great Adventure: Mystery Dungeon.
--
-- Parameters
--
-- name: Insert the trap's English name there.
--
--------------------------------------------------------------------------------

p = {}

function p.torneko1TrapDataCell(f)
	-- Gets the arguments from #invoke:Torneko 1 Trap Data Cell|torneko1TrapDataCell
	local args = f.args

	-- List of every trap's Japanese names
	local list = {
		["Acid Trap"] = "硫酸",
		["Arrow Trap"] = "矢",
		["Bear Trap"] = "トラばさみ",
		["Gas Trap"] = "睡眠ガス",
		["Mine Trap"] = "地雷",
		["Pitfall Trap"] = "落とし穴",
		["Poison Arrow Trap"] = "毒矢",
		["Rock Trap"] = "石ころ",
		["Warp Pad"] = "ワープゾーン"
	}

	-- Returns the selected trap's Japanese name
	return list[args.name]
end

return p