Compare commits
2 Commits
32165b87e7
...
7f3bb68719
| Author | SHA1 | Date | |
|---|---|---|---|
| 7f3bb68719 | |||
| fa52df1d39 |
+1
-1
@@ -10,7 +10,7 @@ loom_version=1.16.1
|
|||||||
fabric_api_version=0.141.3+1.21.11
|
fabric_api_version=0.141.3+1.21.11
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version=0.4.0
|
mod_version=0.4.1
|
||||||
maven_group=com.g2806.soulsteal
|
maven_group=com.g2806.soulsteal
|
||||||
archives_base_name=soul-steal
|
archives_base_name=soul-steal
|
||||||
|
|
||||||
|
|||||||
@@ -122,75 +122,77 @@ public record SoulStealConfig(
|
|||||||
|
|
||||||
public static String defaultYaml() {
|
public static String defaultYaml() {
|
||||||
return """
|
return """
|
||||||
economy:
|
economy:
|
||||||
starting_souls: 0
|
starting_souls: 0
|
||||||
max_souls: 1000000
|
max_souls: 1000000
|
||||||
kill_reward: 25
|
kill_reward: 25
|
||||||
death_penalty:
|
death_penalty:
|
||||||
flat: 15
|
flat: 15
|
||||||
percent: 0.10
|
percent: 0.10
|
||||||
minimum: 5
|
minimum: 5
|
||||||
maximum: 100
|
maximum: 100
|
||||||
transfer:
|
transfer:
|
||||||
enabled: true
|
enabled: true
|
||||||
minimum: 1
|
minimum: 1
|
||||||
|
|
||||||
bounties:
|
bounties:
|
||||||
enabled: true
|
enabled: true
|
||||||
min_value: 25
|
min_value: 25
|
||||||
max_value: 10000
|
max_value: 10000
|
||||||
default_duration_seconds: 7200
|
default_duration_seconds: 7200
|
||||||
min_duration_seconds: 600
|
min_duration_seconds: 600
|
||||||
max_duration_seconds: 86400
|
max_duration_seconds: 86400
|
||||||
survivor_reward_percent: 0.50
|
survivor_reward_percent: 0.50
|
||||||
placement_cooldown_seconds: 60
|
placement_cooldown_seconds: 60
|
||||||
max_active_per_target: 5
|
max_active_per_target: 5
|
||||||
max_active_per_placer: 3
|
max_active_per_placer: 3
|
||||||
|
|
||||||
tracker:
|
tracker:
|
||||||
enabled: true
|
enabled: true
|
||||||
duration_seconds: 900
|
duration_seconds: 900
|
||||||
update_interval_ticks: 20
|
update_interval_ticks: 20
|
||||||
expire_if_target_offline: false
|
expire_if_target_offline: false
|
||||||
|
|
||||||
contracts:
|
contracts:
|
||||||
enabled: true
|
enabled: true
|
||||||
auto_claim: true
|
auto_claim: true
|
||||||
hud_enabled: true
|
hud_enabled: true
|
||||||
hud_title: "Active Contract"
|
hud_title: "Active Contract"
|
||||||
|
|
||||||
shop:
|
shop:
|
||||||
title: "Soul Shop"
|
title: "Soul Shop"
|
||||||
rows: 3
|
rows: 3
|
||||||
filler_item: "minecraft:black_stained_glass_pane"
|
filler_item: "minecraft:light_gray_stained_glass_pane"
|
||||||
default_purchase_cooldown_seconds: 0
|
default_purchase_cooldown_seconds: 0
|
||||||
enable_custom_amount_selector: true
|
enable_custom_amount_selector: true
|
||||||
default_max_custom_amount: 64
|
default_max_custom_amount: 64
|
||||||
|
|
||||||
hud:
|
hud:
|
||||||
scoreboard:
|
scoreboard:
|
||||||
enabled: true
|
enabled: true
|
||||||
default_visible: false
|
default_visible: false
|
||||||
title: "Soul HUD"
|
title: "Soul HUD"
|
||||||
bounty_bossbar:
|
|
||||||
enabled: true
|
|
||||||
title: "Bounty on You"
|
|
||||||
leaderboard:
|
|
||||||
page_size: 10
|
|
||||||
|
|
||||||
permissions:
|
bounty_bossbar:
|
||||||
# soulsteal.admin grants every admin-only action below.
|
enabled: true
|
||||||
admin_node: "soulsteal.admin"
|
title: "Bounty on You"
|
||||||
reload_node: "soulsteal.admin.reload"
|
|
||||||
shop_node: "soulsteal.shop"
|
leaderboard:
|
||||||
bounty_node: "soulsteal.bounty"
|
page_size: 10
|
||||||
balance_others_node: "soulsteal.admin.balance.others"
|
|
||||||
set_node: "soulsteal.admin.balance.set"
|
permissions:
|
||||||
add_node: "soulsteal.admin.balance.add"
|
# soulsteal.admin grants every admin-only action below.
|
||||||
take_node: "soulsteal.admin.balance.take"
|
admin_node: "soulsteal.admin"
|
||||||
scoreboard_node: "soulsteal.scoreboard"
|
reload_node: "soulsteal.admin.reload"
|
||||||
leaderboard_node: "soulsteal.leaderboard"
|
shop_node: "soulsteal.shop"
|
||||||
""";
|
bounty_node: "soulsteal.bounty"
|
||||||
|
balance_others_node: "soulsteal.admin.balance.others"
|
||||||
|
set_node: "soulsteal.admin.balance.set"
|
||||||
|
add_node: "soulsteal.admin.balance.add"
|
||||||
|
take_node: "soulsteal.admin.balance.take"
|
||||||
|
scoreboard_node: "soulsteal.scoreboard"
|
||||||
|
leaderboard_node: "soulsteal.leaderboard"
|
||||||
|
""";
|
||||||
}
|
}
|
||||||
|
|
||||||
private static double clampPercent(double value) {
|
private static double clampPercent(double value) {
|
||||||
@@ -198,7 +200,7 @@ public record SoulStealConfig(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static int clampRows(int rows) {
|
private static int clampRows(int rows) {
|
||||||
return Math.max(2, Math.min(6, rows));
|
return Math.max(2, Math.min(6, rows));
|
||||||
}
|
}
|
||||||
|
|
||||||
public record EconomyConfig(long startingSouls, long maxSouls, long killReward, DeathPenaltyConfig deathPenalty, TransferConfig transfer) {
|
public record EconomyConfig(long startingSouls, long maxSouls, long killReward, DeathPenaltyConfig deathPenalty, TransferConfig transfer) {
|
||||||
|
|||||||
Reference in New Issue
Block a user