Module:Etrian 1 Trap Data Cell

MDFW - The Mystery Dungeon Tree of Information.
Revision as of 15:58, 23 March 2023 by Jubilee (talk | contribs)
Jump to navigation Jump to search
Template-info.png Documentation

This template covers a list of traps and their names in Japanese present in Etrian Mystery Dungeon for use only in table Templates such as Module:Etrian 1 Dungeon Traps table.

In this example, the attribute {{{trap_n|}}} uses this module...

{{#invoke:Etrian 1 Dungeon Traps table|main
  | trap_1  = Arrow Trap
  | floor_1 = 2
}}

...and will result in:

ModelTrapsFloors
EnglishJapanese
Etrian 1 - Arrow Trap.pngArrow Trap木の矢2

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

p = {}

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

	-- List of every trap's Japanese names
	local list = {
		["Arrow Trap"] = "木の矢",
		["Binding Trap"] = "部位封じ",
		["Boulder Trap"] = "落石の罠",
		["Curse Trap"] = "呪い",
		["Dart Trap"] = "毒の矢",
		["Demon Gate"] = "魔物活性化",
		["Disarm Trap"] = "装備外し",
		["Enervation Trap"] = "TPマイナス",
		["Giant Bomb"] = "大爆発",
		["Mute Trap"] = "麻痺",
		["Rust Trap"] = "サビ",
		["Slowness Trap"] = "鈍足",
		["Slumber Trap"] = "睡眠の罠",
		["Small Bomb"] = "爆発",
		["Spinning Trap"] = "回転床",
		["Summon Trap"] = "魔物召喚",
		["Teleport Trap"] = "ワープ床",
		["Transmogrifier"] = "魔物変化",
		["Trap Multiplier"] = "罠増殖",
		["Vine Trap"] = "影縛り",
		["Wrecker Trap"] = "鉄球の罠"
	}

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

return p