mirror of
https://gitlab.com/Oreolek/duel.git
synced 2024-06-30 13:55:10 +03:00
22 lines
461 B
Lua
22 lines
461 B
Lua
local std = stead
|
|
|
|
std.mod_step(function(state)
|
|
if not state then
|
|
return
|
|
end
|
|
if std.is_obj(std.here(), 'dlg') and not std.me().__inv_disabled then
|
|
std.me():inventory():disable()
|
|
std.me().__inv_disabled = true
|
|
elseif std.me().__inv_disabled then
|
|
std.me():inventory():enable()
|
|
std.me().__inv_disabled = nil
|
|
end
|
|
end)
|
|
|
|
std.mod_done(function()
|
|
if std.me().__inv_disabled then
|
|
std.me():inventory():enable()
|
|
std.me().__inv_disabled = nil
|
|
end
|
|
end)
|