diff --git a/main.lua b/main.lua --- a/main.lua +++ b/main.lua @@ -81,18 +81,22 @@ global { player_drake = player { + var { + hp = 10; + has_light = false; + party = {--[["learr", "radcliffe", "phaetlarr", "wright"]]}; + companion = nil; + money = 200; + }; nam = "player"; disp = "Дэвид Дрейк"; disp2 = "Дрейка"; disp3 = "Дрейку"; where = 'port'; - hp = 10; + obj = {'item_umbrella', 'item_charts', 'item_note_1', 'item_money', }; - -- party array. Should be empty on start - party = {--[["learr", "radcliffe", "phaetlarr", "wright"]]}; - companion = nil; - money = 200; + pay = function(s, c) if (s.money >= c) then s.money = s.money - c;