fucked up

This commit is contained in:
Pao
2023-01-13 03:50:29 +01:00
parent 5750b3a396
commit 3938c540b4
2 changed files with 7 additions and 4 deletions

View File

@@ -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