2023-04-09 05:35:35 +00:00
|
|
|
-- SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2023-04-12 12:51:09 +00:00
|
|
|
-- 列出所有触发时机。
|
|
|
|
-- 关于每个时机的详情请从文档中检索。
|
|
|
|
|
2022-04-01 12:51:01 +00:00
|
|
|
---@alias Event integer
|
2022-03-25 04:28:07 +00:00
|
|
|
|
2022-04-01 12:51:01 +00:00
|
|
|
fk.NonTrigger = 1
|
2023-05-20 08:00:03 +00:00
|
|
|
fk.GamePrepared = 78
|
2022-04-01 12:51:01 +00:00
|
|
|
fk.GameStart = 2
|
2023-08-11 16:50:17 +00:00
|
|
|
fk.BeforeTurnStart = 83
|
2022-04-01 12:51:01 +00:00
|
|
|
fk.TurnStart = 3
|
2023-04-30 10:55:59 +00:00
|
|
|
fk.TurnEnd = 73
|
2023-08-11 16:50:17 +00:00
|
|
|
fk.AfterTurnEnd = 84
|
2022-04-01 12:51:01 +00:00
|
|
|
fk.EventPhaseStart = 4
|
|
|
|
fk.EventPhaseProceeding = 5
|
|
|
|
fk.EventPhaseEnd = 6
|
2023-08-11 16:50:17 +00:00
|
|
|
fk.AfterPhaseEnd = 86
|
2022-04-01 12:51:01 +00:00
|
|
|
fk.EventPhaseChanging = 7
|
|
|
|
fk.EventPhaseSkipping = 8
|
2022-04-02 13:39:44 +00:00
|
|
|
|
2022-04-08 10:39:58 +00:00
|
|
|
fk.BeforeCardsMove = 9
|
|
|
|
fk.AfterCardsMove = 10
|
|
|
|
|
|
|
|
fk.DrawNCards = 11
|
|
|
|
fk.AfterDrawNCards = 12
|
|
|
|
fk.DrawInitialCards = 13
|
|
|
|
fk.AfterDrawInitialCards = 14
|
|
|
|
|
|
|
|
fk.PreHpRecover = 15
|
|
|
|
fk.HpRecover = 16
|
|
|
|
fk.PreHpLost = 17
|
|
|
|
fk.HpLost = 18
|
|
|
|
fk.BeforeHpChanged = 19
|
|
|
|
fk.HpChanged = 20
|
|
|
|
fk.MaxHpChanged = 21
|
|
|
|
|
|
|
|
fk.EventLoseSkill = 22
|
|
|
|
fk.EventAcquireSkill = 23
|
|
|
|
|
|
|
|
fk.StartJudge = 24
|
|
|
|
fk.AskForRetrial = 25
|
|
|
|
fk.FinishRetrial = 26
|
|
|
|
fk.FinishJudge = 27
|
|
|
|
|
2023-04-08 12:45:55 +00:00
|
|
|
fk.RoundStart = 28
|
|
|
|
fk.RoundEnd = 29
|
2022-04-08 10:39:58 +00:00
|
|
|
|
2023-05-28 10:45:54 +00:00
|
|
|
fk.BeforeTurnOver = 79
|
2022-04-08 10:39:58 +00:00
|
|
|
fk.TurnedOver = 30
|
2023-05-28 10:45:54 +00:00
|
|
|
fk.BeforeChainStateChange = 80
|
2022-04-08 10:39:58 +00:00
|
|
|
fk.ChainStateChanged = 31
|
|
|
|
|
|
|
|
fk.PreDamage = 32
|
|
|
|
fk.DamageCaused = 33
|
|
|
|
fk.DamageInflicted = 34
|
|
|
|
fk.Damage = 35
|
|
|
|
fk.Damaged = 36
|
|
|
|
fk.DamageFinished = 37
|
|
|
|
|
|
|
|
fk.EnterDying = 38
|
|
|
|
fk.Dying = 39
|
|
|
|
fk.AfterDying = 40
|
|
|
|
|
2022-04-30 07:27:56 +00:00
|
|
|
fk.PreCardUse = 41
|
|
|
|
fk.AfterCardUseDeclared = 42
|
|
|
|
fk.AfterCardTargetDeclared = 43
|
2023-03-14 12:48:08 +00:00
|
|
|
fk.CardUsing = 44
|
|
|
|
fk.BeforeCardUseEffect = 45
|
2022-04-30 07:27:56 +00:00
|
|
|
fk.TargetSpecifying = 46
|
|
|
|
fk.TargetConfirming = 47
|
|
|
|
fk.TargetSpecified = 48
|
|
|
|
fk.TargetConfirmed = 49
|
|
|
|
fk.CardUseFinished = 50
|
|
|
|
|
|
|
|
fk.PreCardRespond = 51
|
|
|
|
fk.CardResponding = 52
|
|
|
|
fk.CardRespondFinished = 53
|
|
|
|
|
|
|
|
fk.PreCardEffect = 54
|
|
|
|
fk.BeforeCardEffect = 55
|
|
|
|
fk.CardEffecting = 56
|
|
|
|
fk.CardEffectFinished = 57
|
2022-12-18 04:52:52 +00:00
|
|
|
fk.CardEffectCancelledOut = 58
|
2022-04-30 07:27:56 +00:00
|
|
|
|
2022-12-20 04:51:54 +00:00
|
|
|
fk.AskForPeaches = 59
|
|
|
|
fk.AskForPeachesDone = 60
|
|
|
|
fk.Death = 61
|
|
|
|
fk.BuryVictim = 62
|
2023-04-30 10:55:59 +00:00
|
|
|
fk.Deathed = 63
|
|
|
|
fk.BeforeGameOverJudge = 64
|
|
|
|
fk.GameOverJudge = 65
|
|
|
|
fk.GameFinished = 66
|
2022-12-20 04:51:54 +00:00
|
|
|
|
2023-04-30 10:55:59 +00:00
|
|
|
fk.AskForCardUse = 67
|
|
|
|
fk.AskForCardResponse = 68
|
2023-03-05 17:07:54 +00:00
|
|
|
|
2023-04-30 10:55:59 +00:00
|
|
|
fk.StartPindian = 69
|
|
|
|
fk.PindianCardsDisplayed = 70
|
|
|
|
fk.PindianResultConfirmed = 71
|
|
|
|
fk.PindianFinished = 72
|
2023-03-14 12:48:08 +00:00
|
|
|
|
2023-04-30 10:55:59 +00:00
|
|
|
-- 73 = TurnEnd
|
2023-05-13 06:20:34 +00:00
|
|
|
fk.AfterDrawPileShuffle = 74
|
2023-04-22 07:52:26 +00:00
|
|
|
|
2023-05-13 06:20:34 +00:00
|
|
|
fk.BeforeTriggerSkillUse = 75
|
|
|
|
|
|
|
|
fk.BeforeDrawCard = 76
|
|
|
|
|
2023-05-20 08:00:03 +00:00
|
|
|
fk.CardShown = 77
|
|
|
|
|
|
|
|
-- 78 = GamePrepared
|
|
|
|
|
2023-05-28 10:45:54 +00:00
|
|
|
-- 79 = BeforeTurnOver
|
|
|
|
-- 80 = BeforeChainStateChange
|
|
|
|
|
2023-06-08 17:10:16 +00:00
|
|
|
fk.SkillEffect = 81
|
|
|
|
fk.AfterSkillEffect = 82
|
|
|
|
|
2023-08-11 16:50:17 +00:00
|
|
|
-- 83 = PreTurnStart
|
|
|
|
-- 84 = AfterTurnEnd
|
|
|
|
-- 85 = xxx
|
|
|
|
-- 86 = AfterPhaseEnd
|
|
|
|
|
2023-08-13 04:35:23 +00:00
|
|
|
fk.AreaAborted = 87
|
|
|
|
fk.AreaResumed = 88
|
|
|
|
|
2023-08-24 13:37:06 +00:00
|
|
|
fk.GeneralRevealed = 89
|
|
|
|
fk.GeneralHidden = 90
|
|
|
|
|
|
|
|
fk.NumOfEvents = 91
|
2023-09-23 07:28:05 +00:00
|
|
|
--[[
|
2023-09-23 06:09:09 +00:00
|
|
|
local events = {
|
|
|
|
"NonTrigger",
|
|
|
|
"GamePrepared",
|
|
|
|
"GameStart",
|
|
|
|
"BeforeTurnStart",
|
|
|
|
"TurnStart",
|
|
|
|
"TurnEnd",
|
|
|
|
"AfterTurnEnd",
|
|
|
|
"EventPhaseStart",
|
|
|
|
"EventPhaseProceeding",
|
|
|
|
"EventPhaseEnd",
|
|
|
|
"AfterPhaseEnd",
|
|
|
|
"EventPhaseChanging",
|
|
|
|
"EventPhaseSkipping",
|
|
|
|
|
|
|
|
"BeforeCardsMove",
|
|
|
|
"AfterCardsMove",
|
|
|
|
|
|
|
|
"DrawNCards",
|
|
|
|
"AfterDrawNCards",
|
|
|
|
"DrawInitialCards",
|
|
|
|
"AfterDrawInitialCards",
|
|
|
|
|
|
|
|
"PreHpRecover",
|
|
|
|
"HpRecover",
|
|
|
|
"PreHpLost",
|
|
|
|
"HpLost",
|
|
|
|
"BeforeHpChanged",
|
|
|
|
"HpChanged",
|
|
|
|
"MaxHpChanged",
|
|
|
|
|
|
|
|
"EventLoseSkill",
|
|
|
|
"EventAcquireSkill",
|
|
|
|
|
|
|
|
"StartJudge",
|
|
|
|
"AskForRetrial",
|
|
|
|
"FinishRetrial",
|
|
|
|
"FinishJudge",
|
|
|
|
|
|
|
|
"RoundStart",
|
|
|
|
"RoundEnd",
|
|
|
|
"BeforeTurnOver",
|
|
|
|
"TurnedOver",
|
|
|
|
"BeforeChainStateChange",
|
|
|
|
"ChainStateChanged",
|
|
|
|
|
|
|
|
"PreDamage",
|
|
|
|
"DamageCaused",
|
|
|
|
"DamageInflicted",
|
|
|
|
"Damage",
|
|
|
|
"Damaged",
|
|
|
|
"DamageFinished",
|
|
|
|
|
|
|
|
"EnterDying",
|
|
|
|
"Dying",
|
|
|
|
"AfterDying",
|
|
|
|
|
|
|
|
"PreCardUse",
|
|
|
|
"AfterCardUseDeclared",
|
|
|
|
"AfterCardTargetDeclared",
|
|
|
|
"CardUsing",
|
|
|
|
"BeforeCardUseEffect",
|
|
|
|
"TargetSpecifying",
|
|
|
|
"TargetConfirming",
|
|
|
|
"TargetSpecified",
|
|
|
|
"TargetConfirmed",
|
|
|
|
"CardUseFinished",
|
|
|
|
|
|
|
|
"PreCardRespond",
|
|
|
|
"CardResponding",
|
|
|
|
"CardRespondFinished",
|
|
|
|
|
|
|
|
"PreCardEffect",
|
|
|
|
"BeforeCardEffect",
|
|
|
|
"CardEffecting",
|
|
|
|
"CardEffectFinished",
|
|
|
|
"CardEffectCancelledOut",
|
|
|
|
|
|
|
|
"AskForPeaches",
|
|
|
|
"AskForPeachesDone",
|
|
|
|
"Death",
|
|
|
|
"BuryVictim",
|
|
|
|
"Deathed",
|
|
|
|
"BeforeGameOverJudge",
|
|
|
|
"GameOverJudge",
|
|
|
|
"GameFinished",
|
|
|
|
|
|
|
|
"AskForCardUse",
|
|
|
|
"AskForCardResponse",
|
|
|
|
|
|
|
|
"StartPindian",
|
|
|
|
"PindianCardsDisplayed",
|
|
|
|
"PindianResultConfirmed",
|
|
|
|
"PindianFinished",
|
|
|
|
|
|
|
|
"AfterDrawPileShuffle",
|
|
|
|
|
|
|
|
"BeforeTriggerSkillUse",
|
|
|
|
|
|
|
|
"BeforeDrawCard",
|
|
|
|
|
|
|
|
"CardShown",
|
|
|
|
|
|
|
|
"SkillEffect",
|
|
|
|
"AfterSkillEffect",
|
|
|
|
|
|
|
|
"AreaAborted",
|
|
|
|
"AreaResumed",
|
|
|
|
|
|
|
|
"GeneralRevealed",
|
|
|
|
"GeneralHidden",
|
|
|
|
|
|
|
|
"NumOfEvents"
|
|
|
|
}
|
|
|
|
for i, event in ipairs(events) do
|
|
|
|
fk[event] = i
|
|
|
|
end --]]
|