Fixed operate with oven and some ui stuff
This commit is contained in:
@@ -105,7 +105,7 @@ end
|
|||||||
|
|
||||||
Commands["OperateLimb"] = function(arg)
|
Commands["OperateLimb"] = function(arg)
|
||||||
local arg = arg["toSend"]
|
local arg = arg["toSend"]
|
||||||
TheOnlyCure.OperateLimb(arg[1], arg[2], arg[3])
|
TocOperateLimb(arg[1], arg[2], arg[3])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ TocContextMenus.CreateOperateWithOvenMenu = function(player, context, worldObjec
|
|||||||
is_main_menu_already_created = true
|
is_main_menu_already_created = true
|
||||||
end
|
end
|
||||||
subMenu:addOption(getText('UI_ContextMenu_' .. v_bodypart), worldObjects, TocOperateLocal,
|
subMenu:addOption(getText('UI_ContextMenu_' .. v_bodypart), worldObjects, TocOperateLocal,
|
||||||
getSpecificPlayer(player), getSpecificPlayer(player), v_bodypart, true)
|
getSpecificPlayer(player), v_bodypart,true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -604,11 +604,11 @@ end
|
|||||||
function ISHealthPanel:createChildren()
|
function ISHealthPanel:createChildren()
|
||||||
ISHealthPanel_createChildren(self)
|
ISHealthPanel_createChildren(self)
|
||||||
|
|
||||||
self.fitness:setWidth(self.fitness:getWidth() / 1.2)
|
self.fitness:setWidth(self.fitness:getWidth() / 1.4)
|
||||||
|
|
||||||
self.TOCButton = ISButton:new(self.fitness:getRight() + 10, self.healthPanel.y, 70, 20, "The Only Cure", self,
|
self.TOCButton = ISButton:new(self.fitness:getRight() + 10, self.healthPanel.y, 60, 20, "", self,
|
||||||
ISNewHealthPanel.onClick_TOC)
|
ISNewHealthPanel.onClick_TOC)
|
||||||
--self.TOCButton:setImage(getTexture("media/ui/TOC/iconForMenu.png"))
|
self.TOCButton:setImage(getTexture("media/ui/TOC/iconForMenu.png"))
|
||||||
self.TOCButton.anchorTop = false
|
self.TOCButton.anchorTop = false
|
||||||
self.TOCButton.anchorBottom = true
|
self.TOCButton.anchorBottom = true
|
||||||
self.TOCButton:initialise()
|
self.TOCButton:initialise()
|
||||||
|
|||||||
@@ -309,7 +309,7 @@ function TheOnlyCure.CutLimb(part_name, surgeon_factor, bandage_table, painkille
|
|||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function TheOnlyCure.OperateLimb(part_name, surgeon_factor, use_oven)
|
function TocOperateLimb(part_name, surgeon_factor, use_oven)
|
||||||
|
|
||||||
local player = getPlayer()
|
local player = getPlayer()
|
||||||
local limbs_data = player:getModData().TOC.Limbs
|
local limbs_data = player:getModData().TOC.Limbs
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ function ISOperateLimb:perform()
|
|||||||
if self.patient ~= self.surgeon and isClient() then
|
if self.patient ~= self.surgeon and isClient() then
|
||||||
SendOperateLimb(self.patient, self.part_name, surgeon_factor, use_oven)
|
SendOperateLimb(self.patient, self.part_name, surgeon_factor, use_oven)
|
||||||
else
|
else
|
||||||
TheOnlyCure.OperateLimb(self.part_name, surgeon_factor, use_oven)
|
TocOperateLimb(self.part_name, surgeon_factor, use_oven)
|
||||||
end
|
end
|
||||||
self.surgeon:getXp():AddXP(Perks.Doctor, 400)
|
self.surgeon:getXp():AddXP(Perks.Doctor, 400)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user