File tree Expand file tree Collapse file tree 4 files changed +6
-1
lines changed
TheSkyBlessing/data/asset_manager/functions/artifact Expand file tree Collapse file tree 4 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 24
24
# SpecialCooldown? : int
25
25
# DisableCooldownMessage? : boolean
26
26
# DisableMPMessage? : boolean
27
+ # IgnoreItemUpdate? : boolean
27
28
# DisableBreakSound? : boolean
28
29
# EquipID? : int
29
30
# Modifiers : Component[]
74
75
data modify storage asset:artifact Item . tag . TSB . SpecialCooldown set from storage asset:artifact SpecialCooldown
75
76
data modify storage asset:artifact Item . tag . TSB . DisableCooldownMessage set from storage asset:artifact DisableCooldownMessage
76
77
data modify storage asset:artifact Item . tag . TSB . DisableMPMessage set from storage asset:artifact DisableMPMessage
78
+ data modify storage asset:artifact Item . tag . TSB . IgnoreItemUpdate set from storage asset:artifact IgnoreItemUpdate
77
79
data modify storage asset:artifact Item . tag . TSB . DisableBreakSound set from storage asset:artifact DisableBreakSound
78
80
data modify storage asset:artifact Item . tag . TSB . EquipID set from storage asset:artifact EquipID
79
81
data modify storage asset:artifact Item . tag . TSB . Modifiers set from storage asset:artifact Modifiers
Original file line number Diff line number Diff line change 23
23
# SpecialCooldown? : int
24
24
# DisableCooldownMessage? : boolean
25
25
# DisableMPMessage? : boolean
26
+ # IgnoreItemUpdate? : boolean
26
27
# DisableBreakSound? : boolean
27
28
# EquipID? : int
28
29
# Modifiers : Component[]
94
95
data remove storage asset:artifact SpecialCooldown
95
96
data remove storage asset:artifact DisableCooldownMessage
96
97
data remove storage asset:artifact DisableMPMessage
98
+ data remove storage asset:artifact IgnoreItemUpdate
97
99
data remove storage asset:artifact DisableBreakSound
98
100
data remove storage asset:artifact EquipID
99
101
data remove storage asset:artifact Modifiers
Original file line number Diff line number Diff line change @@ -16,3 +16,4 @@ execute unless data storage asset:artifact MPCost unless data storage asset:arti
16
16
# execute unless data storage asset:artifact SpecialCooldown run
17
17
# execute unless data storage asset:artifact DisableCooldownMessage run
18
18
# execute unless data storage asset:artifact DisableMPMessage run
19
+ # execute unless data storage asset:artifact IgnoreItemUpdate run
Original file line number Diff line number Diff line change 20
20
# 対象アイテムの要素数を拾う
21
21
execute store result score $OldItems Temporary if data storage asset:artifact TargetItemList []
22
22
# すべてのアイテムについて更新処理を行う
23
- function asset_manager:artifact/use/item/
23
+ execute unless data storage asset:artifact TargetItem { IgnoreItemUpdate : true } run function asset_manager:artifact/use/item/
24
24
# データを更新する
25
25
# 要素数が変わっていれば一つ以上破壊されている
26
26
execute store result score $NewItems Temporary if data storage asset:artifact RenewedItemList []
You can’t perform that action at this time.
0 commit comments