-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⚖ [Artifact 190-192] アモール / ホルス / ファルシオスの杖の効果の調整 (#847)
Co-authored-by: はいいろ <[email protected]>
- Loading branch information
1 parent
ab6effc
commit ea90a73
Showing
28 changed files
with
226 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
Asset/data/asset/functions/effect/0301.soul_light/_/end.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#> asset:effect/0301.soul_light/_/end | ||
# | ||
# Effectの効果の終了時に実行されるfunction | ||
# | ||
# @within tag/function asset:effect/end | ||
|
||
execute if data storage asset:context {id:301} run function asset:effect/0301.soul_light/end/ |
7 changes: 7 additions & 0 deletions
7
Asset/data/asset/functions/effect/0301.soul_light/_/given.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#> asset:effect/0301.soul_light/_/given | ||
# | ||
# Effectが付与された時に実行されるfunction | ||
# | ||
# @within tag/function asset:effect/given | ||
|
||
execute if data storage asset:context {id:301} run function asset:effect/0301.soul_light/given/ |
7 changes: 7 additions & 0 deletions
7
Asset/data/asset/functions/effect/0301.soul_light/_/re-given.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#> asset:effect/0301.soul_light/_/re-given | ||
# | ||
# Effectが上書きされた時に実行されるfunction | ||
# | ||
# @within tag/function asset:effect/re-given | ||
|
||
execute if data storage asset:context {id:301} run function asset:effect/0301.soul_light/re-given/ |
7 changes: 7 additions & 0 deletions
7
Asset/data/asset/functions/effect/0301.soul_light/_/register.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#> asset:effect/0301.soul_light/_/register | ||
# | ||
# | ||
# | ||
# @within tag/function asset:effect/register | ||
|
||
execute if data storage asset:context {id:301} run function asset:effect/0301.soul_light/register |
7 changes: 7 additions & 0 deletions
7
Asset/data/asset/functions/effect/0301.soul_light/_/remove.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#> asset:effect/0301.soul_light/_/remove | ||
# | ||
# Effectが神器や牛乳によって削除された時に実行されるfunction | ||
# | ||
# @within tag/function asset:effect/remove | ||
|
||
execute if data storage asset:context {id:301} run function asset:effect/0301.soul_light/remove/ |
7 changes: 7 additions & 0 deletions
7
Asset/data/asset/functions/effect/0301.soul_light/_/tick.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#> asset:effect/0301.soul_light/_/tick | ||
# | ||
# Effectが発動している間毎tick実行されるfunction | ||
# | ||
# @within tag/function asset:effect/tick | ||
|
||
execute if data storage asset:context {id:301} run function asset:effect/0301.soul_light/tick/ |
8 changes: 8 additions & 0 deletions
8
Asset/data/asset/functions/effect/0301.soul_light/end/.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#> asset:effect/0301.soul_light/end/ | ||
# | ||
# Effectの効果が切れた時の処理 | ||
# | ||
# @within function asset:effect/0301.soul_light/_/end | ||
|
||
# リセット | ||
function asset:effect/0301.soul_light/reset/ |
11 changes: 11 additions & 0 deletions
11
Asset/data/asset/functions/effect/0301.soul_light/given/.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#> asset:effect/0301.soul_light/given/ | ||
# | ||
# Effectが付与された時の処理 | ||
# | ||
# @within function asset:effect/0301.soul_light/_/given | ||
|
||
# this.Healをスコアへ移して保存(e1) | ||
execute store result score @s 301.LatestHeal run data get storage asset:context this.Heal 10 | ||
|
||
# this.UserIDをスコアへ移して保存 | ||
execute store result score @s 301.LatestUserID run data get storage asset:context this.UserID |
11 changes: 11 additions & 0 deletions
11
Asset/data/asset/functions/effect/0301.soul_light/load.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#> asset:effect/0301.soul_light/load | ||
# | ||
# Effectに利用するスコアボード等の初期化処理 | ||
# ※ExtendsSafeを有効化した状態での使用は非推奨です | ||
# | ||
# @within tag/function asset:effect/load | ||
|
||
#> 定義類はここに | ||
# @within function asset:effect/0301.soul_light/** | ||
scoreboard objectives add 301.LatestHeal dummy | ||
scoreboard objectives add 301.LatestUserID dummy |
20 changes: 20 additions & 0 deletions
20
Asset/data/asset/functions/effect/0301.soul_light/re-given/.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#> asset:effect/0301.soul_light/re-given/ | ||
# | ||
# Effectが上書きされた時の処理 | ||
# | ||
# @within function asset:effect/0301.soul_light/_/re-given | ||
|
||
#> Private | ||
# @private | ||
#declare score_holder $Heal | ||
|
||
# 301.LatestHealとthis.Healを比較し、大きい方をthis.Healに入れる | ||
execute store result score $Heal Temporary run data get storage asset:context this.Heal 10 | ||
|
||
# $Healの方が大きいならそのまま | ||
# LatestHealの方が大きいなら、スコアのデータをフィールドへ代入 | ||
execute if score $Heal Temporary < @s 301.LatestHeal store result storage asset:context this.Heal float 0.1 run scoreboard players get @s 301.LatestHeal | ||
execute if score $Heal Temporary < @s 301.LatestHeal store result storage asset:context this.UserID float 0.1 run scoreboard players get @s 301.LatestUserID | ||
|
||
# リセット | ||
scoreboard players reset $Heal Temporary |
41 changes: 41 additions & 0 deletions
41
Asset/data/asset/functions/effect/0301.soul_light/register.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#> asset:effect/0301.soul_light/register | ||
# | ||
# Effectのデータを指定 | ||
# | ||
# @within function asset:effect/0301.soul_light/_/register | ||
|
||
# ExtendsSafe (boolean) (default = false) | ||
# data modify storage asset:effect ExtendsSafe set value true | ||
# ID (int) | ||
data modify storage asset:effect ID set value 301 | ||
# 名前 (TextComponentString) | ||
data modify storage asset:effect Name set value '{"text":"命魂の光","color":"aqua"}' | ||
# 説明文 (TextComponentString[]) | ||
data modify storage asset:effect Description set value ['{"text":"継続的に体力を回復する","color":"white"}'] | ||
# 効果時間 (int) (default = API || error) | ||
data modify storage asset:effect Duration set value 220 | ||
# スタック (int) (default = API || 1) | ||
# data modify storage asset:effect Stack set value | ||
# 効果時間の操作方法 (default = API || "replace") | ||
# data modify storage asset:effect DurationOperation set value | ||
# スタックの操作方法 (default = API || "replace") | ||
# data modify storage asset:effect StackOperation set value | ||
# 最大効果時間 (int) (default = 2147483647) | ||
data modify storage asset:effect MaxDuration set value 220 | ||
# 最大スタック (int) (default = 2147483647) | ||
data modify storage asset:effect MaxStack set value 3 | ||
# 悪い効果か否か (boolean) | ||
data modify storage asset:effect IsBadEffect set value false | ||
# 死亡時のエフェクトの処理 (default = "remove") | ||
# data modify storage asset:effect ProcessOnDied set value | ||
# 消すのに必要なレベル (int) (default = 1) | ||
data modify storage asset:effect RequireClearLv set value 3 | ||
# エフェクトをUIに表示するか (boolean) (default = true) | ||
# data modify storage asset:effect Visible set value | ||
# エフェクトのスタックををUIに表示するか (boolean) (default = true) | ||
# data modify storage asset:effect StackVisible set value | ||
|
||
# フィールド | ||
data modify storage asset:effect Field.Tick set value 20 | ||
data modify storage asset:effect Field.Heal set value 1 | ||
data modify storage asset:effect Field.UserID set value -1 |
8 changes: 8 additions & 0 deletions
8
Asset/data/asset/functions/effect/0301.soul_light/remove/.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#> asset:effect/0301.soul_light/remove/ | ||
# | ||
# Effectが削除された時の処理 | ||
# | ||
# @within function asset:effect/0301.soul_light/_/remove | ||
|
||
# リセット | ||
function asset:effect/0301.soul_light/reset/ |
11 changes: 11 additions & 0 deletions
11
Asset/data/asset/functions/effect/0301.soul_light/reset/.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#> asset:effect/0301.soul_light/reset/ | ||
# | ||
# 共通リセット処理 | ||
# | ||
# @within function | ||
# asset:effect/0301.soul_light/end/ | ||
# asset:effect/0301.soul_light/remove/ | ||
|
||
# スコアをリセット | ||
scoreboard players reset @s 301.LatestHeal | ||
scoreboard players reset @s 301.LatestUserID |
11 changes: 11 additions & 0 deletions
11
Asset/data/asset/functions/effect/0301.soul_light/tick/.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#> asset:effect/0301.soul_light/tick/ | ||
# | ||
# Effectのtick処理 | ||
# | ||
# @within function asset:effect/0301.soul_light/_/tick | ||
|
||
# デクリメント | ||
execute store result storage asset:context this.Tick int 0.9999999999 run data get storage asset:context this.Tick 1 | ||
# 1 秒おきに回復 | ||
execute if data storage asset:context this{Tick:0} run function asset:effect/0301.soul_light/tick/heal | ||
execute if data storage asset:context this{Tick:0} run data modify storage asset:context this.Tick set value 20 |
22 changes: 22 additions & 0 deletions
22
Asset/data/asset/functions/effect/0301.soul_light/tick/heal.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#> asset:effect/0301.soul_light/tick/heal | ||
# | ||
# | ||
# | ||
# @within function asset:effect/0301.soul_light/tick/ | ||
|
||
#> Private | ||
# @private | ||
#declare score_holder $UserID | ||
|
||
# 回復者のUserIDを取得 | ||
execute store result score $UserID Temporary run data get storage asset:context this.UserID | ||
|
||
# 回復 | ||
data modify storage api: Argument.Heal set from storage asset:context this.Heal | ||
execute as @a if score @s UserID = $UserID Temporary run function api:heal/modifier | ||
function api:heal/ | ||
data modify storage api: Argument.ActivateTrigger set value false | ||
function api:heal/reset | ||
|
||
# リセット | ||
scoreboard players reset $UserID Temporary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters