Skip to content

Commit 8ee3cf2

Browse files
committed
🎨 float型をdouble型に修正
1 parent e34d5ca commit 8ee3cf2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

TheSkyBlessing/data/api/functions/mp/fluctuation.mcfunction

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
#declare score_holder $Fluctuation
1414

1515
# 増減量取得
16-
execute store result score $Fluctuation Temporary run data get storage api: Argument.Fluctuation 1
17-
# 表示
18-
execute unless data storage api: Argument{DisableLog:1b} at @s run function lib:status_log/show_mp
16+
execute store result score $Fluctuation Temporary run data get storage api: Argument.Fluctuation 10
1917
# 増減
20-
scoreboard players operation $Fluctuation Temporary *= $10 Const
2118
scoreboard players operation @s MP += $Fluctuation Temporary
2219
scoreboard players operation @s MP > $0 Const
2320
scoreboard players operation @s MP < @s MPMax
21+
# 表示
22+
scoreboard players operation $Fluctuation Temporary /= $10 Const
23+
execute unless data storage api: Argument{DisableLog:1b} at @s run function lib:status_log/show_mp
2424
# リセット
2525
scoreboard players reset $Fluctuation Temporary
2626
data remove storage api: Argument.Fluctuation

TheSkyBlessing/data/asset_manager/functions/artifact/use/remove_mp.mcfunction

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#declare score_holder $Length
1414

1515
# 取得して減算
16-
execute store result storage api: Argument.Fluctuation float -0.01 run data get storage asset:artifact TargetItems[0].tag.TSB.MPCost 100
16+
execute store result storage api: Argument.Fluctuation double -0.01 run data get storage asset:artifact TargetItems[0].tag.TSB.MPCost 100
1717
data modify storage api: Argument.DisableLog set value true
1818
function api:mp/fluctuation
1919
# リセット

0 commit comments

Comments
 (0)