- Added waifu price decay functionality

- Waifu prices changed to long, supporting much higher prices than before
- Fixed .yml comment indentation in some cases
- Updated changelog
This commit is contained in:
Kwoth
2022-02-02 11:25:22 +01:00
parent 41653a317b
commit 15ee3dd638
12 changed files with 287 additions and 139 deletions

View File

@@ -1,5 +1,5 @@
# DO NOT CHANGE
version: 4
version: 5
# Currency settings
currency:
# What is the emoji/character which represents the currency
@@ -34,28 +34,28 @@ generation:
# in order to get it
hasPassword: true
# Every message sent has a certain % chance to generate the currency
# specify the percentage here (1 being 100%, 0 being 0% - for example
# default is 0.02, which is 2%
# specify the percentage here (1 being 100%, 0 being 0% - for example
# default is 0.02, which is 2%
chance: 0.02
# How many seconds have to pass for the next message to have a chance to spawn currency
genCooldown: 10
# Minimum amount of currency that can spawn
minAmount: 1
# Maximum amount of currency that can spawn.
# Set to the same value as MinAmount to always spawn the same amount
# Set to the same value as MinAmount to always spawn the same amount
maxAmount: 1
# Settings for timely command
# Settings for timely command
# (letting people claim X amount of currency every Y hours)
timely:
# How much currency will the users get every time they run .timely command
# setting to 0 or less will disable this feature
amount: 0
# How often (in hours) can users claim currency with .timely command
# setting to 0 or less will disable this feature
# setting to 0 or less will disable this feature
cooldown: 24
# How much will each user's owned currency decay over time.
decay:
# Percentage of user's current currency which will be deducted every 24h.
# Percentage of user's current currency which will be deducted every 24h.
# 0 - 1 (1 is 100%, 0.5 50%, 0 disabled)
percent: 0
# Maximum amount of user's currency that can decay at each interval. 0 for unlimited.
@@ -82,37 +82,49 @@ waifu:
minPrice: 50
multipliers:
# Multiplier for waifureset. Default 150.
# Formula (at the time of writing this):
# price = (waifu_price * 1.25f) + ((number_of_divorces + changes_of_heart + 2) * WaifuReset) rounded up
# Formula (at the time of writing this):
# price = (waifu_price * 1.25f) + ((number_of_divorces + changes_of_heart + 2) * WaifuReset) rounded up
waifuReset: 150
# The minimum amount of currency that you have to pay
# in order to buy a waifu who doesn't have a crush on you.
# Default is 1.1
# Example: If a waifu is worth 100, you will have to pay at least 100 * NormalClaim currency to claim her.
# (100 * 1.1 = 110)
# The minimum amount of currency that you have to pay
# in order to buy a waifu who doesn't have a crush on you.
# Default is 1.1
# Example: If a waifu is worth 100, you will have to pay at least 100 * NormalClaim currency to claim her.
# (100 * 1.1 = 110)
normalClaim: 1.1
# The minimum amount of currency that you have to pay
# in order to buy a waifu that has a crush on you.
# Default is 0.88
# Example: If a waifu is worth 100, you will have to pay at least 100 * CrushClaim currency to claim her.
# (100 * 0.88 = 88)
# The minimum amount of currency that you have to pay
# in order to buy a waifu that has a crush on you.
# Default is 0.88
# Example: If a waifu is worth 100, you will have to pay at least 100 * CrushClaim currency to claim her.
# (100 * 0.88 = 88)
crushClaim: 0.88
# When divorcing a waifu, her new value will be her current value multiplied by this number.
# Default 0.75 (meaning will lose 25% of her value)
# Default 0.75 (meaning will lose 25% of her value)
divorceNewValue: 0.75
# All gift prices will be multiplied by this number.
# Default 1 (meaning no effect)
# Default 1 (meaning no effect)
allGiftPrices: 1.0
# What percentage of the value of the gift will a waifu gain when she's gifted.
# Default 0.95 (meaning 95%)
# Example: If a waifu is worth 1000, and she receives a gift worth 100, her new value will be 1095)
# Default 0.95 (meaning 95%)
# Example: If a waifu is worth 1000, and she receives a gift worth 100, her new value will be 1095)
giftEffect: 0.95
# What percentage of the value of the gift will a waifu lose when she's gifted a gift marked as 'negative'.
# Default 0.5 (meaning 50%)
# Example: If a waifu is worth 1000, and she receives a negative gift worth 100, her new value will be 950)
# Default 0.5 (meaning 50%)
# Example: If a waifu is worth 1000, and she receives a negative gift worth 100, her new value will be 950)
negativeGiftEffect: 0.50
# Settings for periodic waifu price decay.
# Waifu price decays only if the waifu has no claimer.
decay:
# Percentage (0 - 100) of the waifu value to reduce.
# Set 0 to disable
# For example if a waifu has a price of 500$, setting this value to 10 would reduce the waifu value by 10% (50$)
percent: 0
# How often to decay waifu values, in hours
hourInterval: 24
# Minimum waifu price required for the decay to be applied.
# For example if this value is set to 300, any waifu with the price 300 or less will not experience decay.
minPrice: 300
# List of items available for gifting.
# If negative is true, gift will instead reduce waifu value.
# If negative is true, gift will instead reduce waifu value.
items:
- itemEmoji: "🥔"
price: 5