mirror of
https://gitlab.com/Oreolek/duel.git
synced 2024-05-20 01:48:32 +03:00
Запись транскрипта
This commit is contained in:
parent
607184faa6
commit
58462dd4f8
10
main3.lua
10
main3.lua
|
@ -1,17 +1,21 @@
|
|||
--$Author:Alexander Yakolev, 2017
|
||||
--$Version:1.0
|
||||
require "format"
|
||||
require "dbg"
|
||||
require "dbg-ru"
|
||||
require "proxymenu"
|
||||
declare "isdebug" (true)
|
||||
|
||||
if isdebug then
|
||||
require "dbg"
|
||||
require "dbg-ru"
|
||||
require "transcript"
|
||||
end
|
||||
|
||||
require 'ui'
|
||||
require 'tools'
|
||||
declare "char" ({})
|
||||
format.dash = true
|
||||
format.quotes = true
|
||||
format.para = true
|
||||
declare "char" ({})
|
||||
-- https://www.google.ru/maps/place/%D0%9C%D0%B5%D0%BA%D1%81%D0%B8%D0%BA%D0%B0/@22.8355052,-105.0808555,16z/data=!4m5!3m4!1s0x84043a3b88685353:0xed64b4be6b099811!8m2!3d23.634501!4d-102.552784
|
||||
|
||||
-- Необходимые правки стиля перед релизом:
|
||||
|
|
24
transcript.lua
Normal file
24
transcript.lua
Normal file
|
@ -0,0 +1,24 @@
|
|||
local std = stead
|
||||
local filename = "game.log"
|
||||
|
||||
function writelog(s)
|
||||
local f = io.open(filename, "a")
|
||||
f:seek("end", 0)
|
||||
f:write("\n", s, "\n")
|
||||
return f:flush()
|
||||
end
|
||||
game.onwalk = function(f, inwalk)
|
||||
local dsc = std.call(inwalk, 'dsc')
|
||||
if dsc then
|
||||
writelog(dsc)
|
||||
end
|
||||
local decor = std.call(inwalk, 'decor')
|
||||
if decor then
|
||||
writelog(decor)
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
||||
game.afteract = function(this, that)
|
||||
writelog("Использование "..this.nam.." на "..that.nam)
|
||||
end
|
Loading…
Reference in a new issue