File:Terraria housing distance.png
Original file (1,920 × 1,016 pixels, file size: 943 KB, MIME type: image/png)
A test to determine the distance measurement method for NPC happiness. As shown, neither the Clothier nor the Goblin Tinkerer are close enough when using taxicab distance, and both are close enough when using Chebyshev distance, but only the clothier is close enough when using Euclidean distance. If both influence the Engineer's happiness (multiplier of x0.99), then Chebyshev distance is used. If only the Clothier does (multiplier of x1.13), then Euclidean distance is used. If neither influence the Engineer's happiness (multiplier of x1.01), then taxicab distance is used. Since Engineer's multiplier as shown by the Engineering Helmet (base price of 1 gold, given price of 1 gold 13 silver) is x1.13, we can deduce that the Clothier is the only NPC influencing happiness, and therefore Euclidean distance is used to calculate whether other NPCs are close enough to be considered for NPC happiness.
Licensing
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 21:29, 28 September 2023 | 1,920 × 1,016 (943 KB) | JKPwnage (talk | contribs) |
You cannot overwrite this file.
File usage
The following page uses this file: