diff --git a/dist/index.d.ts b/dist/index.d.ts index bd2f784..6bf4456 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -3425,7 +3425,7 @@ interface Market { * The formula: * * ``` - * Math.ceil( amount * (Math.log(0.1*linearDistanceBetweenRooms + 0.9) + 0.1) ) + * Math.ceil(amount * (1 - Math.exp(-linearDistanceBetweenRooms / 30))) * ``` * * @param amount Amount of resources to be sent. diff --git a/src/market.ts b/src/market.ts index 5dd7de2..7b0eab9 100644 --- a/src/market.ts +++ b/src/market.ts @@ -29,7 +29,7 @@ interface Market { * The formula: * * ``` - * Math.ceil( amount * (Math.log(0.1*linearDistanceBetweenRooms + 0.9) + 0.1) ) + * Math.ceil(amount * (1 - Math.exp(-linearDistanceBetweenRooms / 30))) * ``` * * @param amount Amount of resources to be sent.