58 lines
2.2 KiB
Lua
58 lines
2.2 KiB
Lua
---@diagnostic disable: duplicate-set-field
|
|
-- Bunch of actions shouldn't be modified by the adjusted time
|
|
|
|
local og_ISEatFoodAction_new = ISEatFoodAction.new
|
|
function ISEatFoodAction:new(character, item, percentage)
|
|
local action = og_ISEatFoodAction_new(self, character, item, percentage)
|
|
TOC_DEBUG.print("Override ISEatFoodAction")
|
|
action.skipTOC = true
|
|
return action
|
|
end
|
|
|
|
local og_ISReadABook_new = ISReadABook.new
|
|
function ISReadABook:new(character, item, time)
|
|
local action = og_ISReadABook_new(self, character, item, time)
|
|
TOC_DEBUG.print("Override ISReadABook")
|
|
action.skipTOC = true
|
|
return action
|
|
end
|
|
|
|
local og_ISTakePillAction_new = ISTakePillAction.new
|
|
function ISTakePillAction:new(character, item, time)
|
|
local action = og_ISTakePillAction_new(self, character, item, time)
|
|
TOC_DEBUG.print("Override ISTakePillAction")
|
|
action.skipTOC = true
|
|
return action
|
|
end
|
|
|
|
local og_ISTakeWaterAction_new = ISTakeWaterAction.new
|
|
function ISTakeWaterAction:new(character, item, waterUnit, waterObject, time, oldItem)
|
|
local action = og_ISTakeWaterAction_new(self, character, item, waterUnit, waterObject, time, oldItem)
|
|
TOC_DEBUG.print("Override ISTakeWaterAction")
|
|
action.skipTOC = true
|
|
return action
|
|
end
|
|
|
|
local og_ISDrinkFromBottle_new = ISDrinkFromBottle.new
|
|
function ISDrinkFromBottle:new(character, item, uses)
|
|
local action = og_ISDrinkFromBottle_new(self, character, item, uses)
|
|
TOC_DEBUG.print("Override ISDrinkFromBottle")
|
|
action.skipTOC = true
|
|
return action
|
|
end
|
|
|
|
local og_ISFinalizeDealAction_new = ISFinalizeDealAction.new
|
|
function ISFinalizeDealAction:new(player, otherPlayer, itemsToGive, itemsToReceive, time)
|
|
local action = og_ISFinalizeDealAction_new(self, player, otherPlayer, itemsToGive, itemsToReceive, time)
|
|
TOC_DEBUG.print("Override ISFinalizeDealAction")
|
|
action.skipTOC = true
|
|
return action
|
|
end
|
|
|
|
local og_ISCampingInfoAction_new = ISCampingInfoAction.new
|
|
function ISCampingInfoAction:new(character, campfireObject, campfire)
|
|
local action = og_ISCampingInfoAction_new(self, character, campfireObject, campfire)
|
|
TOC_DEBUG.print("Override ISCampingInfoAction")
|
|
action.skipTOC = true
|
|
return action
|
|
end |