Advertisement
Cnvmendoza

Price Test Fix

Nov 15th, 2021 (edited)
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.29 KB | None | 0 0
  1. CTRL+F: invToolsChi
  2. if (inv_Country >= 38 && inv_Country <= 50){
  3.                 price = toolsPrice[land] + randomnum;
  4.                 if (land == 6){
  5.                     if (price < 0){
  6.                         price *= -1;
  7.                     }
  8.                     price += 350;
  9.                 }
  10.             }
  11.             else if (inv_Country >= 26 && inv_Country <= 37){
  12.                 price = toolsPrice[land] * 1.25 + randomnum;
  13.                 if (land == 6){
  14.                     if (price < 0){
  15.                         price *= -1;
  16.                     }
  17.                     price += 350;
  18.                 }
  19.             }
  20.             else if (inv_Country >= 13 && inv_Country <= 25){
  21.                 price = toolsPrice[land] * 1.50 + randomnum;
  22.                 if (land == 6){
  23.                     if (price < 0){
  24.                         price *= -1;
  25.                     }
  26.                     price += 350;
  27.                 }
  28.             }
  29.             else if (inv_Country <= 12){
  30.                 price = toolsPrice[land] * 2 + randomnum;
  31.                 if (land == 6){
  32.                     if (price < 0){
  33.                         price *= -1;
  34.                     }
  35.                     price += 350;
  36.                 }
  37.             }
  38.             else if (inv_Country > 50){
  39.                 price = toolsPrice[land] * 0.75 + randomnum;
  40.                 if (land == 6){
  41.                     if (price < 0){
  42.                         price *= -1;
  43.                     }
  44.                     price += 350;
  45.                 }
  46.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement