-
Notifications
You must be signed in to change notification settings - Fork 0
⚖ [Mob 420] アストロブレイズの性能及び演出の調整 #1740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
394bab3
ダメージ定義をregisterで行うように
Lapis-LJA e83a462
発射処理を修正及び弾数が難易度比例で増加するように
Lapis-LJA 6d69a19
演出を調整
Lapis-LJA 785310b
弾数設定のミスを修正
Lapis-LJA 149888a
関数名変更
Lapis-LJA 429416e
ディレクトリ調整
Lapis-LJA c17db8e
斜線が通ったプレイヤーに対して連射するように仕様を変更
Lapis-LJA 3a892c2
コメントを修正
Lapis-LJA 0febb01
コメントの誤字を修正
Lapis-LJA ba47253
ターゲットがいなくなった場合の処理を追加
Lapis-LJA 80817c6
ターゲットに対するセレクターのdistanceを縮小
Lapis-LJA 22c1ecd
flameパーティクルの発生率を調整
Lapis-LJA 586010c
ターゲットがいなくなった判定を修正
Lapis-LJA 01ee94b
判定をさらに縮小
Lapis-LJA bae5391
発射までが早くなっている問題を修正
Lapis-LJA 4d90322
execute runを削除
Lapis-LJA a49b287
Vanillaの誤字を修正
Lapis-LJA a05a71a
視線が通っているかの判定を一時storageではなくフィールドで実装するように
Lapis-LJA File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
17 changes: 17 additions & 0 deletions
17
Asset/data/asset/functions/mob/0420.astro_blaze/tick/check_through/.mcfunction
This file contains hidden or 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,17 @@ | ||
| #> asset:mob/0420.astro_blaze/tick/check_through/ | ||
| # | ||
| # | ||
| # | ||
| # @within function asset:mob/0420.astro_blaze/tick/ | ||
|
|
||
| # 初期化 | ||
| data modify storage asset:context this.Success set value false | ||
|
|
||
| # 近くのプレイヤーに射線が通っているか? | ||
| execute as @a[tag=!PlayerShouldInvulnerable,distance=..20,sort=nearest] facing entity @s eyes run function asset:mob/0420.astro_blaze/tick/check_through/recursive | ||
|
|
||
| # 一度も成功してないなら失敗 | ||
| execute unless data storage asset:context this{Success:true} run return 0 | ||
|
|
||
| # 成功 | ||
| return 1 |
16 changes: 16 additions & 0 deletions
16
Asset/data/asset/functions/mob/0420.astro_blaze/tick/check_through/recursive.mcfunction
This file contains hidden or 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,16 @@ | ||
| #> asset:mob/0420.astro_blaze/tick/check_through/recursive | ||
| # | ||
| # 再帰で自身の位置に辿り着けるか? | ||
| # | ||
| # @within function | ||
| # asset:mob/0420.astro_blaze/tick/check_through/ | ||
| # asset:mob/0420.astro_blaze/tick/check_through/recursive | ||
|
|
||
| # 既に成功してるならreturn | ||
| execute if data storage asset:context this{Success:true} run return fail | ||
|
|
||
| # 自身に接触したら成功判定を返す | ||
| execute positioned ~-0.5 ~-0.5 ~-0.5 if entity @s[dx=0] run function asset:mob/0420.astro_blaze/tick/check_through/success | ||
|
|
||
| # 再帰 | ||
| execute positioned ^ ^ ^0.5 if block ~ ~ ~ #lib:no_collision/ run function asset:mob/0420.astro_blaze/tick/check_through/recursive | ||
11 changes: 11 additions & 0 deletions
11
Asset/data/asset/functions/mob/0420.astro_blaze/tick/check_through/success.mcfunction
This file contains hidden or 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:mob/0420.astro_blaze/tick/check_through/success | ||
| # | ||
| # 成功 | ||
| # | ||
| # @within function asset:mob/0420.astro_blaze/tick/check_through/recursive | ||
|
|
||
| # 成功判定 | ||
| data modify storage asset:context this.Success set value true | ||
|
|
||
| # 自身のUserIDをFieldへ入れておく | ||
| execute store result storage asset:context this.TargetID int 1 run scoreboard players get @s UserID |
25 changes: 0 additions & 25 deletions
25
Asset/data/asset/functions/mob/0420.astro_blaze/tick/fire.mcfunction
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
Asset/data/asset/functions/mob/0420.astro_blaze/tick/set_bullet.mcfunction
This file contains hidden or 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,16 @@ | ||
| #> asset:mob/0420.astro_blaze/tick/set_bullet | ||
| # | ||
| # 弾数を設定する | ||
| # | ||
| # @within function asset:mob/0420.astro_blaze/tick/ | ||
|
|
||
| #> Private | ||
| # @private | ||
| #declare score_holder $Difficulty | ||
|
|
||
| # 難易度比例で弾数を設定する | ||
| # 4+2N | ||
| function api:global_vars/get_difficulty | ||
| execute store result score $Difficulty Temporary run data get storage api: Return.Difficulty 2 | ||
| execute store result storage asset:context this.Bullet int 1 run scoreboard players add $Difficulty Temporary 4 | ||
| scoreboard players reset $Difficulty Temporary |
18 changes: 18 additions & 0 deletions
18
Asset/data/asset/functions/mob/0420.astro_blaze/tick/shoot/.mcfunction
This file contains hidden or 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,18 @@ | ||
| #> asset:mob/0420.astro_blaze/tick/shoot/ | ||
| # | ||
| # | ||
| # | ||
| # @within function asset:mob/0420.astro_blaze/tick/ | ||
|
|
||
| #> Private | ||
| # @private | ||
| #declare score_holder $Interval | ||
|
|
||
| # 発射 | ||
| scoreboard players operation $Interval Temporary = @s General.Mob.Tick | ||
| scoreboard players operation $Interval Temporary %= $2 Const | ||
| execute if score $Interval Temporary matches 0 run function asset:mob/0420.astro_blaze/tick/shoot/spread.m with storage asset:context this | ||
| scoreboard players reset $Interval Temporary | ||
|
|
||
| # 弾数が0ならスコア初期化 | ||
| execute if data storage asset:context this{Bullet:0} run scoreboard players set @s General.Mob.Tick 0 |
31 changes: 31 additions & 0 deletions
31
Asset/data/asset/functions/mob/0420.astro_blaze/tick/shoot/spread.m.mcfunction
This file contains hidden or 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,31 @@ | ||
| #> asset:mob/0420.astro_blaze/tick/shoot/spread.m | ||
| # | ||
| # | ||
| # | ||
| # @within function asset:mob/0420.astro_blaze/tick/shoot/ | ||
|
|
||
| #> Tags | ||
| # @private | ||
| #declare tag BO.Marker | ||
|
|
||
| # まず、ターゲットがいなくなった場合、弾を0にしてreturnする | ||
| $execute unless entity @p[tag=!PlayerShouldInvulnerable,scores={UserID=$(TargetID)},distance=..35] run return run data modify storage asset:context this.Bullet set value 0 | ||
|
|
||
| # 弾数のデクリメント | ||
| execute store result storage asset:context this.Bullet int 0.9999999999 run data get storage asset:context this.Bullet | ||
|
|
||
| # Markerを召喚 | ||
| execute positioned ~ ~1 ~ run summon marker ~ ~ ~ {Tags:["BO.Marker"]} | ||
|
|
||
| # 前方拡散設定 | ||
| data modify storage lib: Argument.Distance set value 8.0 | ||
| data modify storage lib: Argument.Spread set value 1.5 | ||
|
|
||
| # ターゲット方向に対して前方拡散を実行する | ||
| $execute as @e[type=marker,tag=BO.Marker,distance=..3] at @s facing entity @p[scores={UserID=$(TargetID)},distance=..35] eyes rotated ~ ~2.5 run function lib:forward_spreader/circle | ||
|
|
||
| # 発射 | ||
| execute positioned ~ ~1 ~ facing entity @e[type=marker,tag=BO.Marker,distance=..15,limit=1] feet run function asset:mob/0420.astro_blaze/tick/shoot/summon | ||
|
|
||
| # マーカーを戻してあげる | ||
| kill @e[type=marker,tag=BO.Marker,distance=..15,limit=1] |
7 changes: 4 additions & 3 deletions
7
...b/0420.astro_blaze/tick/summon.mcfunction → ....astro_blaze/tick/shoot/summon.mcfunction
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.