fucked up
This commit is contained in:
@@ -21,6 +21,7 @@ local function OperateLocal(_, patient, surgeon, part_name, use_oven)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
--TODO Make the name more unique
|
||||
function TryActionOnOtherPlayerLocal(_, part_name, action, surgeon, patient)
|
||||
|
||||
@@ -34,6 +35,8 @@ function TryActionOnOtherPlayerLocal(_, part_name, action, surgeon, patient)
|
||||
AskCanCutLimb(patient, part_name)
|
||||
elseif action == "Operate" then
|
||||
AskCanOperateLimb(patient, part_name)
|
||||
elseif action == "ResetEverything" then
|
||||
AskCanResetEverything(patient)
|
||||
end
|
||||
ui.actionAct = action
|
||||
ui.partNameAct = part_name
|
||||
@@ -100,7 +103,7 @@ function ISWorldObjectContextMenu.OnFillTOCMenu(player, context, worldObjects, t
|
||||
cheat_menu:addOption("Reset TOC for me", worldObjects, ResetEverything, clickedPlayer)
|
||||
|
||||
else
|
||||
cheat_menu:addOption("Reset TOC for " .. clickedPlayer:getUsername(), worldObjects, AskCanResetEverything, clickedPlayer)
|
||||
cheat_menu:addOption("Reset TOC for " .. clickedPlayer:getUsername(), worldObjects, TryActionOnOtherPlayerLocal, _, "ResetEverything", player_obj, clickedPlayer)
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user