-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
52 additions
and
34 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
7 changes: 7 additions & 0 deletions
7
data/entity/function/spawn/apply_status/status/unreasonable_attack.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 @@ | ||
#> entity:spawn/apply_status/status/unreasonable_attack | ||
scoreboard players set _ _ 100 | ||
### 理外攻撃力を計算する | ||
execute store result score _ Calc run data get storage tusb_mob: "遅延ステータス"."ステータス"."理外攻撃力" 0.5 | ||
scoreboard players operation _ Calc *= @s Level | ||
scoreboard players operation _ Calc /= _ _ | ||
execute store result score @s UnreasonableAttack run scoreboard players add _ Calc 2 |
7 changes: 7 additions & 0 deletions
7
data/entity/function/spawn/apply_status/status/unreasonable_defence.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 @@ | ||
#> entity:spawn/apply_status/status/unreasonable_defence | ||
scoreboard players set _ _ 100 | ||
### 理外防御力を計算する | ||
execute store result score _ Calc run data get storage tusb_mob: "遅延ステータス"."ステータス"."理外防御力" 1 | ||
scoreboard players operation _ Calc *= @s Level | ||
scoreboard players operation _ Calc /= _ _ | ||
execute store result score @s UnreasonableDefence run scoreboard players add _ Calc 5 |
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
14 changes: 7 additions & 7 deletions
14
...y/change_status/special_attack.mcfunction → ...emy/change_status/magic_attack.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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
#Set, Add | ||
execute store result score @s Calc run data get storage mob_data: Call.SpecialAttack.Add | ||
execute store result score @s _ run data get storage mob_data: Call.SpecialAttack.Range | ||
execute store result score @s Calc run data get storage mob_data: Call.MagicAttack.Add | ||
execute store result score @s _ run data get storage mob_data: Call.MagicAttack.Range | ||
execute unless score @s _ matches 0 run function skill:enemy/change_move/range | ||
execute store result score _ Calc run data get storage tusb_mob: "遅延ステータス"."ステータス"."魔法攻撃力" | ||
execute if data storage mob_data: Call.SpecialAttack.Set store result score _ Calc run data get storage mob_data: Call.SpecialAttack.Set | ||
execute if data storage mob_data: Call.MagicAttack.Set store result score _ Calc run data get storage mob_data: Call.MagicAttack.Set | ||
scoreboard players operation _ Calc += @s Calc | ||
#Limit | ||
execute if data storage mob_data: Call.SpecialAttack.Limit store result score @s _ run data get storage mob_data: Call.SpecialAttack.Limit | ||
execute if score @s Calc matches 1.. if data storage mob_data: Call.SpecialAttack.Limit run scoreboard players operation _ Calc < @s _ | ||
execute if score @s Calc matches ..-1 if data storage mob_data: Call.SpecialAttack.Limit run scoreboard players operation _ Calc > @s _ | ||
execute if data storage mob_data: Call.MagicAttack.Limit store result score @s _ run data get storage mob_data: Call.MagicAttack.Limit | ||
execute if score @s Calc matches 1.. if data storage mob_data: Call.MagicAttack.Limit run scoreboard players operation _ Calc < @s _ | ||
execute if score @s Calc matches ..-1 if data storage mob_data: Call.MagicAttack.Limit run scoreboard players operation _ Calc > @s _ | ||
|
||
execute store result storage tusb_mob: "遅延ステータス"."ステータス"."魔法攻撃力" int 1 run scoreboard players get _ Calc | ||
function entity:spawn/apply_status/status/special_attack | ||
function entity:spawn/apply_status/status/magic_attack |
14 changes: 7 additions & 7 deletions
14
.../change_status/special_defense.mcfunction → ...my/change_status/magic_defense.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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
#Set, Add | ||
execute store result score @s Calc run data get storage mob_data: Call.SpecialDefense.Add | ||
execute store result score @s _ run data get storage mob_data: Call.SpecialDefense.Range | ||
execute store result score @s Calc run data get storage mob_data: Call.MagicDefence.Add | ||
execute store result score @s _ run data get storage mob_data: Call.MagicDefence.Range | ||
execute unless score @s _ matches 0 run function skill:enemy/change_move/range | ||
execute store result score _ Calc run data get storage tusb_mob: "遅延ステータス"."ステータス"."魔法防御力" | ||
execute if data storage mob_data: Call.SpecialDefense.Set store result score _ Calc run data get storage mob_data: Call.SpecialDefense.Set | ||
execute if data storage mob_data: Call.MagicDefence.Set store result score _ Calc run data get storage mob_data: Call.MagicDefence.Set | ||
scoreboard players operation _ Calc += @s Calc | ||
#Limit | ||
execute if data storage mob_data: Call.SpecialDefense.Limit store result score @s _ run data get storage mob_data: Call.SpecialDefense.Limit | ||
execute if score @s Calc matches 1.. if data storage mob_data: Call.SpecialDefense.Limit run scoreboard players operation _ Calc < @s _ | ||
execute if score @s Calc matches ..-1 if data storage mob_data: Call.SpecialDefense.Limit run scoreboard players operation _ Calc > @s _ | ||
execute if data storage mob_data: Call.MagicDefence.Limit store result score @s _ run data get storage mob_data: Call.MagicDefence.Limit | ||
execute if score @s Calc matches 1.. if data storage mob_data: Call.MagicDefence.Limit run scoreboard players operation _ Calc < @s _ | ||
execute if score @s Calc matches ..-1 if data storage mob_data: Call.MagicDefence.Limit run scoreboard players operation _ Calc > @s _ | ||
|
||
execute store result storage tusb_mob: "遅延ステータス"."ステータス"."魔法防御力" int 1 run scoreboard players get _ Calc | ||
function entity:spawn/apply_status/status/special_defense | ||
function entity:spawn/apply_status/status/magic_defense |
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