@@ -469,49 +469,48 @@ item_colt = obj {
here().onreload();
end;
};
item_harpoon = obj {
var {
charge = 1;
nam = "item_harpoon";
disp = function(s)
if (s.charge == 0) then
return "Ружье (разряжено)";
else
return "Ружье (заряжено)";
dsc = [[К стене прислонено {гарпунное ружье}. ]];
tak = "Вы забираете ружье. ";
use = function(s, o)
local canshoot = false;
if (type(o.canshoot) == "function") then
canshoot, noshootmsg = o:canshoot();
print(canshoot, noshootmsg);
canshoot = o.canshoot;
local canthrust = false;
if (type(o.canthrust) == "function") then
canthrust = o:canthrust();
canthrust = o.canthrust;
if (canthrust) then
p("Вы атакуете "..o.disp2 .. ". ");
if (o.onthrust) then
return(o.onthrust(o));
return "";
elseif (canshoot) then
return "Ружье не заряжено. ";
s.charge = s.charge - 1;