@wayward/types 2.14.0-beta.dev.20240121.1 → 2.14.0-beta.dev.20240122.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,3 +21,26 @@ export declare enum ShipperNPCInteractType {
21
21
  export declare const MERCHANT_MAX_TRADES = 6;
22
22
  export declare const MERCHANT_SELL_PRICE_MULTIPLIER = 1.5;
23
23
  export declare const MERCHANT_ALREADY_TRADED_MULTIPLIER = 1.1;
24
+ export declare const NPC_SPAWN_CHANCE_MERCHANT_CIV_SCORE_MULTIPLIER = 0.0001;
25
+ export declare const NPC_SPAWN_CHANCE_SHIPPER_CIV_SCORE_MULTIPLIER = 0.00005;
26
+ export declare const NPC_SPAWN_CHANCE_MERCHANT_DISTANCE_PENALTY_MULTIPLIER = 0.1;
27
+ export declare const NPC_SPAWN_CHANCE_SHIPPER_DISTANCE_BONUS_MULTIPLIER = 0.05;
28
+ export declare const NPC_SPAWN_CHANCE_SHIPPER_PORTS_MULTIPLIER = 0.1;
29
+ export declare const NPC_SPAWN_CHANCE_SHIPPER_PORTS_BONUS_MAX = 0.5;
30
+ /**
31
+ * The minimum chance of spawning an NPC (out of NPC_SPAWN_CHANCE_DENOMINATOR, subject to NPC_SPAWN_CHANCE_LOG_COUNT_MULTIPLIER)
32
+ */
33
+ export declare const NPC_SPAWN_CHANCE_MIN = 0.1;
34
+ /**
35
+ * A multiplier for how likely this NPC is to spawn in this interval if there's already an NPC of this type.
36
+ * Raised to the power of the number of NPCs, making the entire algorithm logarithmic
37
+ */
38
+ export declare const NPC_SPAWN_CHANCE_LOG_COUNT_MULTIPLIER = 0.95;
39
+ /**
40
+ * The value at which the chance caps out
41
+ */
42
+ export declare const NPC_SPAWN_CHANCE_DENOMINATOR = 5;
43
+ /**
44
+ * The absolute maximum chance of spawning an NPC type in an interval
45
+ */
46
+ export declare const NPC_SPAWN_CHANCE_MAX = 0.4;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wayward/types",
3
3
  "description": "TypeScript declarations for Wayward, used for modding.",
4
- "version": "2.14.0-beta.dev.20240121.1",
4
+ "version": "2.14.0-beta.dev.20240122.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",