bathname
All checks were successful
default/mapgen/master This commit looks good

This commit is contained in:
Alexander Yakovlev 2018-09-29 22:07:00 +07:00
parent b30f4a636f
commit 1e69ec3fe3
3 changed files with 9 additions and 1 deletions

View file

@ -72,6 +72,10 @@ class Maze
for y in [0..(@height-1)]
for x in [0..(@width-1)]
@data[x][y].loctitle = improv.gen('loctitle', @data[x][y])
if @data[x][y].getTag('type') == 'bath'
salet.character.bathname = @data[x][y].loctitle
salet.character.bathx = x
salet.character.bathy = y
return true
at: (x, y) -> return @data[x][y]

View file

@ -75,7 +75,9 @@ $(document).on("room_language_after_choices", () ->
$(".options").addClass("narrowchoice")
)
sysroom "language",
dsc: () -> "intro".l()
dsc: () -> "intro".l({
bathname: salet.character.bathname
})
choices: ['ru']
sysroom "ru",

View file

@ -22,6 +22,8 @@ strings =
Главное - найти ту самую баню, а не одного из дешёвых клонов.
Погнали!
"""
story2:"""
"""
credits: """
Игра написана Александром Яковлевым.