Skip to content

Commit

Permalink
Fixed default value, and added use_per_server_settings to log message.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mthec committed Oct 3, 2019
1 parent 7714e72 commit 11372a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/locale/UpkeepCosts.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ drain_modifier_increment_not_set=Could not set drain modifier increment for some
# 0 - tile cost, 1 - tile upkeep, 2 - free tiles, 3 - perimeter cost, 4 - perimeter upkeep, 5 - free perimeter,
# 6 - guards cost, 7 - guards upkeep, 8 - minimum upkeep, 9 - into upkeep, 10 - name change
# 11 - min_drain, 12 - max_drain_modifier, 13 - drain_modifier_increment
all_values=Upkeep costs are as follows: Tile %s, %s, %s free tiles - Perimeter %s, %s, %s free tiles - Guards %s, %s, use Epic guard upkeep scaling %s, %s free guards - Minimum %s - Into Upkeep %s - Name change %s\n\
all_values=Using per server settings - %s.\n\
Upkeep costs are as follows: Tile %s, %s, %s free tiles - Perimeter %s, %s, %s free tiles - Guards %s, %s, use Epic guard upkeep scaling %s, %s free guards - Minimum %s - Into Upkeep %s - Name change %s\n\
Draining values are as follows: Minimum drain %s, Maximum drain modifier %s, Drain modifier increment %s

load_properties_error=An error occurred when loading properties:
Expand Down
1 change: 1 addition & 0 deletions src/mod/wurmonline/mods/upkeepcosts/UpkeepCosts.java
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ private void logValues() {


logger.info(String.format(messages.getString("all_values"),
use_per_server_settings,
Villages.TILE_COST_STRING,
Villages.TILE_UPKEEP_STRING,
free_tiles,
Expand Down
2 changes: 1 addition & 1 deletion src/upkeepcosts.properties
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ max_drain_modifier=5.0
#The amount the drain modifier increases with every successful drain. (decimal)
drain_modifier_increment=0.5

use_per_server_settings=false
use_per_server_settings=true

0 comments on commit 11372a7

Please sign in to comment.