Updated to OTCv8 3.0 rev 43

This commit is contained in:
OTCv8
2021-05-15 16:51:02 +00:00
parent dea82a6751
commit 1def896276
111 changed files with 4642 additions and 2368 deletions

View File

@@ -477,6 +477,7 @@ function initCallbacks()
onChannelEvent = botChannelEvent,
onImbuementWindow = botOnImbuementWindow,
onModalDialog = botOnModalDialog,
onAttackingCreatureChange = botOnAttackingCreatureChange
})
connect(Tile, {
@@ -532,6 +533,7 @@ function terminateCallbacks()
onChannelEvent = botChannelEvent,
onImbuementWindow = botOnImbuementWindow,
onModalDialog = botOnModalDialog,
onAttackingCreatureChange = botOnAttackingCreatureChange
})
disconnect(Tile, {
@@ -717,3 +719,8 @@ function botOnModalDialog(id, title, message, buttons, enterButton, escapeButton
if botExecutor == nil then return false end
safeBotCall(function() botExecutor.callbacks.onModalDialog(id, title, message, buttons, enterButton, escapeButton, choices, priority) end)
end
function botOnAttackingCreatureChange(creature, oldCreature)
if botExecutor == nil then return false end
safeBotCall(function() botExecutor.callbacks.onAttackingCreatureChange(creature,oldCreature) end)
end