Module:Etrian 2 Trap Data Cell

MDFW - The Mystery Dungeon Tree of Information.
Revision as of 20:19, 9 November 2024 by Beignet (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 2 for use only in table Templates such as Module:Etrian 2 Dungeon Traps table.

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

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

...and will result in:

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

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

p = {}

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

	-- List of every trap's Japanese names
	local list = {
		["Arrow Trap"] = "木の矢の罠",
		["Binding Trap"] = "部位封じの罠",
		["Boulder Trap"] = "落石の罠",
		["Crystal Tile"] = "結晶床",
		["Curse Trap"] = "アイテム呪いの罠",
		["Dart Trap"] = "毒矢の罠",
		["Demon Gate"] = "魔物活性化の罠",
		["Disarm Trap"] = "装備外しの罠",
		["Downstairs"] = "下り階段",
		["Elemental Weakening Trap"] = "属性弱化の罠",
		["Enervation Trap"] = "TPマイナスの罠",
		["Geomagnetic Pole"] = "樹海磁軸",
		["Giant Bomb"] = "大爆発の罠",
		["Light Switch"] = "あかりスイッチ",
		["Mute Trap"] = "スキル封じの罠",
		["Magma"] = "マグマ",
		["Physical Weakening Trap"] = "物理弱化の罠",
		["Rust Trap"] = "サビの罠",
		["Skill Point Tile"] = "スキルポイント床",
		["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