Skip to content

Commit

Permalink
patched lua manually
Browse files Browse the repository at this point in the history
  • Loading branch information
argrath committed Apr 16, 2024
1 parent 671e4b8 commit 5499c4e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion dat/Wiz-goal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ des.monster({ class = "i",random, peaceful = 0 })
des.monster({ id = "盗賊", x=35, y=06, peaceful=1, name="Pug" })
des.monster({ id = "アウルベア", x=47, y=06, peaceful=1, asleep=1 })
des.monster({ id = "魔法使い", x=32, y=11, peaceful=1, asleep=1, name="Newt" })
des.monster({ id = "Grey-elf", x=44, y=11, peaceful=1 })
des.monster({ id = "灰色エルフ", x=44, y=11, peaceful=1 })
des.monster({ id = "丘の巨人", x=47, y=11, peaceful=1, asleep=1 })
des.monster({ id = "ノームの魔法使い", x=38, y=06, peaceful=1 })
des.monster({ id = "囚人", x=35, y=11, peaceful=1 })
Expand Down
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
14 changes: 7 additions & 7 deletions dat/tower2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ des.object("水上歩行の靴",place[7])
des.object("水晶の鎧",place[8])

local spbooks = {
"spellbook of invisibility",
"spellbook of cone of cold",
"spellbook of create familiar",
"spellbook of clairvoyance",
"spellbook of charm monster",
"spellbook of stone to flesh",
"spellbook of polymorph"
"透明の魔法書",
"冷気の魔法書",
"造魔の魔法書",
"千里眼の魔法書",
"魅了の魔法書",
"軟化の魔法書",
"変化の魔法書"
}
shuffle(spbooks);
des.object(spbooks[1],place[9])
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 5499c4e

Please sign in to comment.