Module:Etrian 1 Trap Data Cell

MDFW - The Mystery Dungeon Tree of Information.
Revision as of 15:22, 19 May 2024 by Beignet (talk | contribs) (Specials Tiles)
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 = {
		["Amber Tile"] = "琥珀床",
		["Arrow Trap"] = "木の矢の罠",
		["Binding Trap"] = "部位封じの罠",
		["Boulder Trap"] = "落石の罠",
		["Curse Trap"] = "アイテム呪いの罠",
		["Dart Trap"] = "毒矢の罠",
		["Demon Gate"] = "魔物活性化の罠",
		["Disarm Trap"] = "装備外しの罠",
		["Downstairs"] = "下り階段",
		["Enervation Trap"] = "TPマイナスの罠",
		["Geomagnetic Pole"] = "樹海磁軸",
		["Giant Bomb"] = "大爆発の罠",
		["Mute Trap"] = "スキル封じの罠",
		["Rust Trap"] = "サビの罠",
		["Slowness Trap"] = "鈍足の罠",
		["Slumber Trap"] = "睡眠の罠",
		["Small Bomb"] = "爆発の罠",
		["Spinning Trap"] = "回転床の罠",
		["Spread Tile"] = "展開床",
		["Summon Trap"] = "魔物召喚の罠",
		["Teleport Trap"] = "ワープの罠",
		["Transmogrifier"] = "魔物変化の罠",
		["Trap Multiplier"] = "罠増えの罠",
		["Upstairs"] = "上り階段",
		["Vine Trap"] = "影縛りの罠",
		["Wrecker Trap"] = "鉄球の罠"
	}

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

return p