1
0
Fork 0
mirror of https://gitlab.com/Oreolek/duel.git synced 2024-07-04 15:54:29 +03:00
duel/tools.lua

62 lines
1 KiB
Lua
Raw Normal View History

init = function ()
map = obj {
nam = "Карта",
inv = function()
walk('map')
end
}
take(map)
quests = obj {
nam = "Квесты",
inv = function()
walk('quests')
end
}
take(quests)
inventory = obj {
nam = "Инвентарь",
inv = function()
walk('inventory')
end
}
take(inventory)
char.act = nil
end
2017-02-20 18:40:12 +02:00
engineer = function()
2017-02-21 16:16:48 +02:00
if char.charural == true then
2017-02-20 18:40:12 +02:00
return 'инженеры'
end
return 'инженер'
end
pronoun_3 = function()
2017-02-21 16:16:48 +02:00
if char.gender == 'she' then
2017-02-20 18:40:12 +02:00
return 'она'
end
2017-02-21 16:16:48 +02:00
if char.gender == 'he' then
2017-02-20 18:40:12 +02:00
return 'он'
end
2017-02-21 16:16:48 +02:00
if char.gender == 'it' then
2017-02-20 18:40:12 +02:00
return 'оно'
end
return 'они'
end
pronoun_1 = function()
2017-02-21 16:16:48 +02:00
if char.charural == true then
2017-02-20 18:40:12 +02:00
return 'мы'
end
return 'я'
end
endings = function()
2017-02-21 16:16:48 +02:00
if char.charural == true then
2017-02-20 18:40:12 +02:00
return 'и'
end
2017-02-21 16:16:48 +02:00
if char.gender == 'she' then
2017-02-20 18:40:12 +02:00
return 'а'
end
return ''
2017-02-20 18:40:12 +02:00
end
rndstr = function(strings)
return strings[rnd(stead.table.maxn(strings))];
end