File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
asset_manager/functions/artifact/use Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 13
13
# declare score_holder $Fluctuation
14
14
15
15
# 増減量取得
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
19
17
# 増減
20
- scoreboard players operation $Fluctuation Temporary *= $10 Const
21
18
scoreboard players operation @s MP += $Fluctuation Temporary
22
19
scoreboard players operation @s MP > $0 Const
23
20
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
24
24
# リセット
25
25
scoreboard players reset $Fluctuation Temporary
26
26
data remove storage api : Argument . Fluctuation
Original file line number Diff line number Diff line change 13
13
# declare score_holder $Length
14
14
15
15
# 取得して減算
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
17
17
data modify storage api : Argument . DisableLog set value true
18
18
function api:mp/fluctuation
19
19
# リセット
You can’t perform that action at this time.
0 commit comments