Make ammo cheaper across the board
This commit is contained in:
parent
071b921188
commit
562a74abb4
17
config.jsonc
17
config.jsonc
@ -29,10 +29,25 @@
|
||||
// You can manually add flea prices to items, set a multiplier to their existing price or blacklist them entirely.
|
||||
"customItemConfigs": [
|
||||
{
|
||||
// .338 AP round, the best round in the game so it's quite expensive. This also demonstrates the use of the priceMultiplier property. You can lower this if you think it's too expensive, 12k a round.",
|
||||
// .338 AP round, the best round in the game so it's quite expensive. This also demonstrates the use of the priceMultiplier property. You can lower this if you think it's too expensive.",
|
||||
"itemId": "5fc382a9d724d907e2077dab",
|
||||
"priceMultiplier": 1.2
|
||||
},
|
||||
{
|
||||
// .338 FMJ round",
|
||||
"itemId": "5fc275cf85fd526b824a571a",
|
||||
"priceMultiplier": 1.3
|
||||
},
|
||||
{
|
||||
// 6.8x51mm FMJ, a bit expensive at 5k a round because of the novelty
|
||||
"itemId": "6529302b8c26af6326029fb7",
|
||||
"fleaPriceOverride": 2000
|
||||
},
|
||||
{
|
||||
// 6.8x51mm Hybrid, it's around 2k using my ammo price balancing but we'll make it a bit more expensive due to it's novelty.
|
||||
"itemId": "6529243824cbe3c74a05e5c1",
|
||||
"fleaPriceOverride": 2800
|
||||
},
|
||||
{
|
||||
// Regular Weapon Case, I think it's too expensive at the 5 mil mark by default",
|
||||
"itemId": "59fb023c86f7746d0d4b423c",
|
||||
|
@ -236,11 +236,13 @@ class TheBlacklistMod implements IPostDBLoadModAsync {
|
||||
const baseDamageMultiplier = item._props.Damage / baselineDamage;
|
||||
|
||||
let penetrationMultiplier: number;
|
||||
if (basePenetrationMultiplier > 1) {
|
||||
|
||||
// We are checking for > 0.99 because we want the baseline bullet (mult of 1) to be close to its baseline price.
|
||||
if (basePenetrationMultiplier > 0.99) {
|
||||
// A good gradient to make higher power rounds more expensive
|
||||
penetrationMultiplier = 7 * basePenetrationMultiplier - 6;
|
||||
penetrationMultiplier = 3 * basePenetrationMultiplier - 2;
|
||||
} else {
|
||||
// Due to maths above, its really easy to go < 1. The baseline ammo is mid tier with a reasonable 1000 rouble each. Ammo weaker than this tend to be pretty crap so we'll make it much cheaper
|
||||
// The baseline ammo is mid tier with a reasonable 1000 rouble each. Ammo weaker than this tend to be pretty crap so we'll make it much cheaper
|
||||
const newMultiplier = basePenetrationMultiplier * 0.7;
|
||||
penetrationMultiplier = newMultiplier < 0.1 ? 0.1 : newMultiplier;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user