From e140c0d078613a7bdbd7a14d61ed53df3ecfe448 Mon Sep 17 00:00:00 2001 From: SHIRAKATA Kentaro Date: Mon, 27 Mar 2023 15:59:02 +0900 Subject: [PATCH] patched lua manually --- dat/themerms.lua | 22 +++++++++++----------- dat/tut-1.lua | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/dat/themerms.lua b/dat/themerms.lua index d5965578e..9c25088c8 100644 --- a/dat/themerms.lua +++ b/dat/themerms.lua @@ -107,11 +107,11 @@ themeroom_fills = { function(rm) local diff = nh.level_difficulty() -- start with [1..4] for low difficulty - local zombifiable = { "kobold", "gnome", "orc", "dwarf" }; + local zombifiable = { "コボルド", "ノーム", "オーク", "ドワーフ" }; if diff > 3 then -- medium difficulty - zombifiable[5], zombifiable[6] = "elf", "human"; + zombifiable[5], zombifiable[6] = "エルフ", "人間"; if diff > 6 then -- high difficulty (relatively speaking) - zombifiable[7], zombifiable[8] = "ettin", "giant"; + zombifiable[7], zombifiable[8] = "エティン", "巨人"; end end for i = 1, (rm.width * rm.height) / 2 do @@ -125,14 +125,14 @@ themeroom_fills = { -- Massacre function(rm) - local mon = { "apprentice", "warrior", "ninja", "thug", - "hunter", "acolyte", "abbot", "page", - "attendant", "neanderthal", "chieftain", - "student", "wizard", "valkyrie", "tourist", - "samurai", "rogue", "ranger", "priestess", - "priest", "monk", "knight", "healer", - "cavewoman", "caveman", "barbarian", - "archeologist" }; + local mon = { "実習生", "戦士", "忍者", "ちんぴら", + "ハンター", "侍者", "師範", "小姓", + "随行員", "ネアンデルタール人", "首領", + "学生", "魔法使い", "ワルキューレ", "観光客", + "侍", "盗賊", "レンジャー", "尼僧", + "僧侶", "武闘家", "騎士", "薬師", + "洞窟人", "洞窟人", "野蛮人", + "考古学者" }; local idx = math.random(#mon); for i = 1, d(5,5) do if (percent(10)) then idx = math.random(#mon); end diff --git a/dat/tut-1.lua b/dat/tut-1.lua index 60535e00f..1413ad5a9 100644 --- a/dat/tut-1.lua +++ b/dat/tut-1.lua @@ -100,7 +100,7 @@ des.door({ coord = { 18,13 }, state = "closed" }); des.engraving({ coord = { 19,13 }, type = "engrave", text = "Pick up items with '" .. nh.eckey("pickup") .. "'", degrade = false }); -local armor = (u.role == "Monk") and "leather gloves" or "leather armor"; +local armor = (u.role == "Monk") and "革の手袋" or "革鎧"; des.object({ id = armor, spe = 0, buc = "cursed", coord = { 19,14} });