Skip to content

Commit

Permalink
patched lua manually
Browse files Browse the repository at this point in the history
  • Loading branch information
argrath committed Jan 8, 2024
1 parent 4df3fd7 commit e140c0d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions dat/themerms.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion dat/tut-1.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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} });

Expand Down

0 comments on commit e140c0d

Please sign in to comment.