File tree Expand file tree Collapse file tree 17 files changed +206
-1
lines changed
TheSkyBlessing/data/asset_manager/functions/artifact Expand file tree Collapse file tree 17 files changed +206
-1
lines changed Original file line number Diff line number Diff line change 19
19
20
20
#> Trigger検知用
21
21
# @within function
22
- # asset_manager:artifact/triggers/ **
22
+ # asset_manager:artifact/triggers/
23
+ # asset_manager:artifact/triggers/ */
23
24
# core:handler/ **
24
25
# declare tag TriggerFlag.ClickCarrot
25
26
# declare tag TriggerFlag.UseItem
Original file line number Diff line number Diff line change
1
+ #> asset_manager:artifact/triggers/click/
2
+ #
3
+ #
4
+ #
5
+ # @within function asset_manager:artifact/triggers/trigger/foreach/call.m
6
+
7
+ # フラグが存在しているか確認する
8
+ execute if entity @s [ tag =! TriggerFlag . ClickCarrot ] run return fail
9
+ # 使用条件を満たしているか確認する
10
+ function asset_manager:artifact/check/
11
+ function asset_manager:artifact/triggers/click/check.m with storage asset:context
12
+ # 条件を満たしていれば使用する
13
+ execute if entity @s [ tag = CanUsed ] run function asset_manager:artifact/triggers/click/use
14
+
15
+ # リセット
16
+ tag @s remove CanUsed
Original file line number Diff line number Diff line change
1
+ #> asset_manager:artifact/triggers/click/check.m
2
+ #
3
+ #
4
+ #
5
+ # @input args id : int
6
+ # @within function asset_manager:artifact/triggers/click/
7
+
8
+ $ function asset:artifact/alias/ $(id )/ click/check
Original file line number Diff line number Diff line change
1
+ #> asset_manager:artifact/triggers/click/click.m
2
+ #
3
+ #
4
+ #
5
+ # @input args id : int
6
+ # @within function asset_manager:artifact/triggers/click/use
7
+
8
+ $ function asset:artifact/alias/ $(id )/ click /
Original file line number Diff line number Diff line change
1
+ #> asset_manager:artifact/triggers/click/use
2
+ #
3
+ #
4
+ #
5
+ # @within function asset_manager:artifact/triggers/click/
6
+
7
+ # 共通処理
8
+ # アイテムを破壊するとBrokeItemが追加される
9
+ function asset_manager:artifact/use/
10
+
11
+ # 処理対象の神器の重複数を取得する
12
+ execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList []
13
+
14
+ # 神器を呼び出し
15
+ function asset_manager:artifact/triggers/click/click.m with storage asset:context
16
+
17
+ # リセット
18
+ data remove storage asset:context BrokeItem
19
+ data remove storage asset:context Count
Original file line number Diff line number Diff line change
1
+ #> asset_manager:artifact/triggers/keep_click/
2
+ #
3
+ #
4
+ #
5
+ # @within function asset_manager:artifact/triggers/trigger/foreach/call.m
6
+
7
+ # フラグが存在しているか確認する
8
+ execute if entity @s [ tag =! TriggerFlag . UsingItem ] run return fail
9
+ # 使用条件を満たしているか確認する
10
+ function asset_manager:artifact/check/
11
+ function asset_manager:artifact/triggers/keep_click/check.m with storage asset:context
12
+ # 条件を満たしていれば使用する
13
+ execute if entity @s [ tag = CanUsed ] run function asset_manager:artifact/triggers/keep_click/use
14
+
15
+ # リセット
16
+ tag @s remove CanUsed
Original file line number Diff line number Diff line change
1
+ #> asset_manager:artifact/triggers/keep_click/check.m
2
+ #
3
+ #
4
+ #
5
+ # @input args id : int
6
+ # @within function asset_manager:artifact/triggers/keep_click/
7
+
8
+ $ function asset:artifact/alias/ $(id )/ keep_click/check
Original file line number Diff line number Diff line change
1
+ #> asset_manager:artifact/triggers/keep_click/keep_click.m
2
+ #
3
+ #
4
+ #
5
+ # @input args id : int
6
+ # @within function asset_manager:artifact/triggers/keep_click/use
7
+
8
+ $ function asset:artifact/alias/ $(id )/ keep_click /
Original file line number Diff line number Diff line change
1
+ #> asset_manager:artifact/triggers/keep_click/use
2
+ #
3
+ #
4
+ #
5
+ # @within function asset_manager:artifact/triggers/keep_click/
6
+
7
+ # 共通処理
8
+ # アイテムを破壊するとBrokeItemが追加される
9
+ function asset_manager:artifact/use/
10
+
11
+ # 処理対象の神器の重複数を取得する
12
+ execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList []
13
+
14
+ # 神器を呼び出し
15
+ function asset_manager:artifact/triggers/keep_click/keep_click.m with storage asset:context
16
+
17
+ # リセット
18
+ data remove storage asset:context BrokeItem
19
+ data remove storage asset:context Count
Original file line number Diff line number Diff line change
1
+ #> asset_manager:artifact/triggers/tick/
2
+ #
3
+ #
4
+ #
5
+ # @within function asset_manager:artifact/triggers/trigger/foreach/call.m
6
+
7
+ # フラグが存在しているか確認する
8
+ # return fail
9
+ # 使用条件を満たしているか確認する
10
+ function asset_manager:artifact/check/
11
+ function asset_manager:artifact/triggers/tick/check.m with storage asset:context
12
+ # 条件を満たしていれば使用する
13
+ execute if entity @s [ tag = CanUsed ] run function asset_manager:artifact/triggers/tick/use
14
+
15
+ # リセット
16
+ tag @s remove CanUsed
You can’t perform that action at this time.
0 commit comments