fix: fixed ignored actions that should ignore toc calculations

This commit is contained in:
ZioPao
2025-04-17 12:42:35 +02:00
parent d7bdee1d26
commit 80e9391db5
2 changed files with 45 additions and 53 deletions

View File

@@ -31,6 +31,7 @@ local function AddAdminTocOptions(playerNum, context, worldobjects)
end
-- ugly This whole section should be done better
for _, pl in pairs(players) do
---@cast pl IsoPlayer
@@ -45,7 +46,6 @@ local function AddAdminTocOptions(playerNum, context, worldobjects)
sendClientCommand(CommandsData.modules.TOC_RELAY, CommandsData.server.Relay.RelayExecuteInitialization,
{ patientNum = clickedPlayerNum })
else
-- TODO ugly
ClientRelayCommands.ReceiveExecuteInitialization()
end
end)
@@ -65,7 +65,6 @@ local function AddAdminTocOptions(playerNum, context, worldobjects)
{ patientNum = clickedPlayerNum, limbName = limbName })
else
ClientRelayCommands.ReceiveExecuteAmputationAction({surgeonNum=clickedPlayerNum, limbName=limbName, damagePlayer=false})
-- todo ugly
end
end)