File diff 771f90d1d93b → 24a46a8a6715
items.lua
Show inline comments
 
@@ -26,6 +26,34 @@ item_pickaxe = obj {
 
	end;
 
};
 
 
item_spear = obj {
 
    nam = "pickaxe";
 
    disp = "Кирка";
 
    dsc = [[{Копье Фаэтларра} аккуратно прислонено к стене]];
 
    tak = [[Фаэтларр забирает копье. ]];
 
    inv = [[Копье, добытое Фаэтларром в честном бою. ]];
 
    use = function(s, o)
 
        local canhit = false;
 
        if (type(o.canhit) == "function") then
 
            canhit = o.canhit(o);
 
        else
 
            canhit = o.canhit;
 
        end;
 
        
 
        if (canhit) then
 
            if (o.onhit) then
 
                return(o.onhit(o));
 
            else
 
                return "";
 
            end;
 
        elseif (o.nohitmsg) then
 
            return o.nohitmsg;
 
        else
 
            return "Я не буду этого делать!";
 
        end;
 
    end;
 
};
 
 
item_colt = obj {
 
	nam = "colt";
 
	bullets = 6;