Skip to main content

FB2BuffComponent

Overview

  • Component that manages buffs/debuffs.

Metadata

FieldValue
Kindcomponent
EnvironmentB2 - Simulation
Categorycomponents
ExtendsFB2Component
Requirerequire('Components.B2BuffComponent')

Properties (12)

NameTypeDescription
BuffLastApplyTimeMaptable<string, integer>
BuffTagMaptable<string, integer>
BuffTickStatDeltaMaptable<string, FB2BuffTickStatDelta>
Buffstable<string, FB1Buff>
CurrentAdmitBoostLevelinteger
CurrentAdmitBoostTendencyEB1EmotionTendency
CurrentEmotionInertiaTriggerCountinteger
DeferredModifierNameSettable<string, boolean>
InteractionBagWhiteListtable<string, integer>
JoyfulBoostBuffIdstring
LastSendUpdateModifierPacketTicksinteger
NeedModifierUpdateboolean

Functions (28)

FunctionParametersReturnsDescription
AddBuffInBuffId: string, InDetail: FB1BuffDetail, InDesireBoostEmotionId: string-Adds Buff.
AddBuffImmediatelyInBuffId: string, InDetail: FB1BuffDetail, InDesireBoostEmotionId: string-Adds a buff immediately without deferred processing (added to resolve an issue at the first autosave point).
AddBuffMatchWithTagInBuffId: string, InTag: string-Adds Buff Match With Tag.
AddRandomBuffInRandomBuffPoolId: string, InDetail: FB1BuffDetail-Adds Random Buff.
CatchUpBuffInToTick: integer-
ChangeAdmitBoostValueInTendency: EB1EmotionTendency, InLevel: integer-
ChangeJoyfulBoostBuffInJoyfulBoostBuffId: string-
ClearAllBuffbInForce: boolean-Clears All Buff.
FlushBuffCommands--
GetBuffInBuffId: stringFB1BuffReturns Buff.
GetBuffs-table<string, FB1Buff>Returns Buffs.
GetDefaultCityMoveDataPolicy-EB1CityMoveDataPolicyReturns Default City Move Data Policy.
GetDreamBuffId-stringReturns Dream Buff Id.
GetInteractionBagWhitelist-table<string, integer>Returns Interaction Bag Whitelist.
GetTickStatDeltaInStatId: stringnumberReturns Tick Stat Delta.
HasBuffInBuffId: stringbooleanReturns whether it has Buff.
HasBuffTagInBuffTag: stringbooleanReturns whether it has Buff Tag.
HasDreamBuff-booleanReturns whether it has Dream Buff.
HasUnexpiredBuffWithTagInBuffTag: string, InToTick: integerbooleanReturns whether it has Unexpired Buff With Tag.
ModifyBuffInModifyParam: FB2RequestModifyBuffParam-
OnAddedModifierInModifierId: string-Callback invoked on Added Modifier.
OnEmotionChangedInPrev: FB1EmotionInfo, InCurr: FB1EmotionInfo-Callback invoked on Emotion Changed.
RemoveBuffInBuffId: string, IsCanceled: boolean-Removes Buff.
RemoveBuffTagInBuffTag: string, IsCanceled: boolean-Removes Buff Tag.
Send_S_UpdateBuffMap--
ShouldUseScheduler-booleanReturns whether it should Use Scheduler.
UpdateCurrentEmotionComponent--Updates Current Emotion Component.
UpdateDesireBoost--Updates Desire Boost.

Override points (19)

Implement these in Lua as FB2BuffComponent.Override_Name = function(...) end.

FunctionParametersReturnsDescription
Override_AddBuffInBuffId: string, InDetail: FB1BuffDetail, InDesireBoostEmotionId: string-Adds Buff.
Override_AddBuffImmediatelyInBuffId: string, InDetail: FB1BuffDetail, InDesireBoostEmotionId: string-Adds a buff immediately without deferred processing (added to resolve an issue at the first autosave point).
Override_AddBuffMatchWithTagInBuffId: string, InTag: string-Adds Buff Match With Tag.
Override_AddRandomBuffInRandomBuffPoolId: string, InDetail: FB1BuffDetail-Adds Random Buff.
Override_CatchUpBuffInToTick: integer-
Override_ChangeAdmitBoostValueInTendency: EB1EmotionTendency, InLevel: integer-
Override_ChangeJoyfulBoostBuffInJoyfulBoostBuffId: string-
Override_ClearAllBuffbInForce: boolean-Clears All Buff.
Override_FlushBuffCommands--
Override_HasBuffInBuffId: stringbooleanReturns whether it has Buff.
Override_HasBuffTagInBuffTag: stringbooleanReturns whether it has Buff Tag.
Override_HasDreamBuff-booleanReturns whether it has Dream Buff.
Override_OnAddedModifierInModifierId: string-Callback invoked on Added Modifier.
Override_OnEmotionChangedInPrev: FB1EmotionInfo, InCurr: FB1EmotionInfo-Callback invoked on Emotion Changed.
Override_RemoveBuffInBuffId: string, IsCanceled: boolean-Removes Buff.
Override_RemoveBuffTagInBuffTag: string, IsCanceled: boolean-Removes Buff Tag.
Override_Send_S_UpdateBuffMap--
Override_UpdateCurrentEmotionComponent--Updates Current Emotion Component.
Override_UpdateDesireBoost--Updates Desire Boost.