diff --git a/src/constants.cairo b/src/constants.cairo index b7856e9b1..0ba496e49 100644 --- a/src/constants.cairo +++ b/src/constants.cairo @@ -22,6 +22,6 @@ const PRICE_VAR_MIN: u8 = 1; // 1% const PRICE_VAR_MAX: u8 = 5; // 5% // market price events -const MARKET_EVENT_CHANCE: u8 = 2; // 2% = 1% up / 1% down +const MARKET_EVENT_CHANCE: u8 = 1; // 2% = 1% up / 1% down const MARKET_EVENT_MIN: u8 = 50; // 50% const MARKET_EVENT_MAX: u8 = 100; // 100% diff --git a/src/systems/travel.cairo b/src/systems/travel.cairo index 2209ad48b..37e80cbd8 100644 --- a/src/systems/travel.cairo +++ b/src/systems/travel.cairo @@ -125,7 +125,7 @@ fn market_variations(ctx: Context, game_id: u32) { price_variation_with_cash( ctx, game_id, *location_id, *drug_id, ref seed, false ); - } else if rand > 50 && rand < 50 + MARKET_EVENT_CHANCE.into() { + } else if rand > 50 && rand <= 50 + MARKET_EVENT_CHANCE.into() { // big move up price_variation_with_drug( ctx, game_id, *location_id, *drug_id, ref seed, true @@ -139,7 +139,7 @@ fn market_variations(ctx: Context, game_id: u32) { increase: true } ); - } else if rand < 50 && rand > 50 - MARKET_EVENT_CHANCE.into() { + } else if rand < 50 && rand >= 50 - MARKET_EVENT_CHANCE.into() { // big move down price_variation_with_drug( ctx, game_id, *location_id, *drug_id, ref seed, false