Skip to content

Commit

Permalink
マクロでリスト数によって分岐する処理消した
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuzume committed Jan 7, 2025
1 parent fc5d92d commit d4aecb5
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
# ストレージの要素数を取得
execute store result storage asset:context this.Element.Count int 1 run data get storage asset:context this.Element.List
# 取得した要素数を使ってランダムに属性を選ぶ
execute unless data storage asset:context this.Element{Count:1} run function asset:mob/1004.tultaria/tick/base_move/element_select/roll.m with storage asset:context this.Element
# 要素数1個しかないとき
execute if data storage asset:context this.Element{Count:1} run function asset:mob/1004.tultaria/tick/base_move/element_select/only_one_element with storage asset:context this.Element
function asset:mob/1004.tultaria/tick/base_move/element_select/roll.m with storage asset:context this.Element

# 技の数は全属性で一定なので!
data modify storage asset:context this.Skill.List set value [0,1,2]
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,4 @@
# ストレージの要素数を取得
execute store result storage asset:context this.Skill.Count int 1 run data get storage asset:context this.Skill.List
# 取得した要素数を使ってランダムに技を選ぶ
execute unless data storage asset:context this.Skill{Count:1} run function asset:mob/1004.tultaria/tick/base_move/skill_select/roll.m with storage asset:context this.Skill
# 要素数1個しかないとき
execute if data storage asset:context this.Skill{Count:1} run function asset:mob/1004.tultaria/tick/base_move/skill_select/only_one_skill
function asset:mob/1004.tultaria/tick/base_move/skill_select/roll.m with storage asset:context this.Skill

This file was deleted.

0 comments on commit d4aecb5

Please sign in to comment.