Difference between revisions of "Rooms"

From RimWorld Wiki
Jump to navigation Jump to search
(Added value tables for impressiveness, wealth, beauty and cleanliness, and did some other minor editing for consistency)
Line 24: Line 24:
  
 
== Impressiveness ==
 
== Impressiveness ==
The value of the impressiveness stat is calculated by the following formula using the other four room stats:
+
The value for impressiveness is based off of the four other stats with a heavy weighting towards the weakest of the four. The actual formula for calculating impressiveness involves multiple steps using a piecewise continuous function, so it's best to start with the basics.
* w = Wealth/3500
 
* b = Beauty/6
 
* s = Space/125
 
* c = (1+Cleanliness)/2.5
 
  
Impressiveness=((w+b+s+c)/4 + min(w,b,s,c))/2 * 100
+
First, each of the four stats has a corresponding divisor that's used to calculate that stat's base contribution.
 +
 
 +
: Wealth: '''W'''b = Wealth/3500
 +
: Beauty: '''B'''b = Beauty/6
 +
: Space: '''S'''b = Spaciousness/125
 +
: Cleanliness: '''C'''b = 1 + (Cleanliness/2.5)
 +
 
 +
So, a room with a Wealth stat of 7000 gives a '''W'''b value of 2 and a room with a Cleanliness of 0 gives a '''C'''b of 1.
 +
 
 +
Now the fancier part starts. If these base contributions are between -1 and 1, the contribution does not get further modified. ''However'', if it's above 1 (Or below -1 in the case of cleanliness, though that exact equation will be different), the value is modified to slow down the rate the impressiveness changes. The modified values become as follows:
 +
 
 +
: modified = 1 + ln(base), when base is greater than 1.
 +
: modified = base, when base is greater than or equal to -1 and less than or equal to 1.
 +
: modified = -(1 + ln(-base)), when base is less than -1
 +
 
 +
These are natural logs here, and what this means in practice is that a stat's contribution to the impressiveness continues to grow more slowly as the base stat continues to increase. Here's an example with Wealth:
 +
 
 +
: Start with a room with a Wealth value of 7000.
 +
: '''W'''b = 7000/3500 = 2
 +
: '''W'''m = 1 + ln('''W'''b) = 1 + ln(2) =  1.69
 +
 
 +
Or, for a list going the other direction, he's the values for Wealth you need to get certain modified values:
 +
 
 +
: '''W'''m = 2 : Wealth of 9513 (2.718x divisor)
 +
: '''W'''m = 3 : Wealth of 25862 (7.389x divisor)
 +
: '''W'''m = 4 : Wealth of 70301 (20.086x divisor)
 +
: '''W'''m = 5 : Wealth of 519435 (148.41x divisor)
 +
 
 +
Once you have the modified values, you can calculate the impressiveness by:
 +
 
 +
Impressiveness = 100[('''W'''m + '''B'''m + '''S'''m + '''C'''m)/4 + min('''W'''m, '''B'''m, '''S'''m, '''C'''m)]/2
 +
 
 +
In English: You take the average of the four modified stats and then average ''that'' with the smallest of the four modified stats. After that, you multiply by 100 to get the room's impressiveness.
 +
 
 +
In practice: This all means that the smallest contribution is weighted ''five'' to one compared to the other stats (5/8 for the smallest, 1/8 for each of the other three).
 +
 
 +
So, when a room has base stats all equal to their corresponding divisors, the Impressiveness will be 100. But if Size gets dropped to 50, both Beauty and Wealth need to have a ''modified'' value of 2.5, which means an unmodified value of 4.48x their divisors. This isn't particularly difficult in practice, but growth beyond this point continues to slow down and so it's incredibly difficult for small rooms to build up impressiveness.
 +
 
 +
(Aside: If someone can subscript the b's and m's following the bold letters, do it, as I can't find a way to do so with this editor.)
  
 
{| class="wikitable"
 
{| class="wikitable"

Revision as of 19:48, 14 September 2016

Room stats are automatically calculated values of a room that passively affects thoughts about and events in the room. Room stats can be inspected with the Room inspection tool. Room roles, which also can be inspected with the Room inspection tool, may be effected by all, some or none of the room stats.

Room stats are:

  • Impressiveness (an aggregate of other stats)
  • Wealth
  • Space
  • Beauty
  • Cleanliness

Room stats affect things like:

  • Immunity Gain Speed
  • Medical treatment quality
  • Room stats create many variants on thoughts like:
    • Ate in impressive dining room
    • Own impressive bedroom
    • Own bed in impressive barracks
    • Did joy activity in impressive rec room

Related traits:

  • Greedy: Unhappy without sufficiently impressive room.
  • Jealous: Unhappy if anyone has a noticeably better room.
  • Ascetic: Unhappy if room is too impressive.

Impressiveness

The value for impressiveness is based off of the four other stats with a heavy weighting towards the weakest of the four. The actual formula for calculating impressiveness involves multiple steps using a piecewise continuous function, so it's best to start with the basics.

First, each of the four stats has a corresponding divisor that's used to calculate that stat's base contribution.

Wealth: Wb = Wealth/3500
Beauty: Bb = Beauty/6
Space: Sb = Spaciousness/125
Cleanliness: Cb = 1 + (Cleanliness/2.5)

So, a room with a Wealth stat of 7000 gives a Wb value of 2 and a room with a Cleanliness of 0 gives a Cb of 1.

Now the fancier part starts. If these base contributions are between -1 and 1, the contribution does not get further modified. However, if it's above 1 (Or below -1 in the case of cleanliness, though that exact equation will be different), the value is modified to slow down the rate the impressiveness changes. The modified values become as follows:

modified = 1 + ln(base), when base is greater than 1.
modified = base, when base is greater than or equal to -1 and less than or equal to 1.
modified = -(1 + ln(-base)), when base is less than -1

These are natural logs here, and what this means in practice is that a stat's contribution to the impressiveness continues to grow more slowly as the base stat continues to increase. Here's an example with Wealth:

Start with a room with a Wealth value of 7000.
Wb = 7000/3500 = 2
Wm = 1 + ln(Wb) = 1 + ln(2) = 1.69

Or, for a list going the other direction, he's the values for Wealth you need to get certain modified values:

Wm = 2 : Wealth of 9513 (2.718x divisor)
Wm = 3 : Wealth of 25862 (7.389x divisor)
Wm = 4 : Wealth of 70301 (20.086x divisor)
Wm = 5 : Wealth of 519435 (148.41x divisor)

Once you have the modified values, you can calculate the impressiveness by:

Impressiveness = 100[(Wm + Bm + Sm + Cm)/4 + min(Wm, Bm, Sm, Cm)]/2

In English: You take the average of the four modified stats and then average that with the smallest of the four modified stats. After that, you multiply by 100 to get the room's impressiveness.

In practice: This all means that the smallest contribution is weighted five to one compared to the other stats (5/8 for the smallest, 1/8 for each of the other three).

So, when a room has base stats all equal to their corresponding divisors, the Impressiveness will be 100. But if Size gets dropped to 50, both Beauty and Wealth need to have a modified value of 2.5, which means an unmodified value of 4.48x their divisors. This isn't particularly difficult in practice, but growth beyond this point continues to slow down and so it's incredibly difficult for small rooms to build up impressiveness.

(Aside: If someone can subscript the b's and m's following the bold letters, do it, as I can't find a way to do so with this editor.)

Value Description
< -150 awful
>= -150 and < -40 repulsive
>= -40 and < 30 dull
>= 30 and < 60 mediocre
>= 60 and < 80 interesting
>= 80 and < 95 little bit impressive
>= 95 and < 115 impressive
>= 115 and < 130 very impressive
>= 130 and < 160 extremely impressive
>= 160 and < 180 unbelievably impressive
>= 180 and < 215 miraculously wonderful
> 215 wonder of the World

Wealth

This is the sum of the market value of all items in the room and all walls (but not doors) surrounding the room.

Value Description
< 500 impoverished
>= 500 and < 700 somewhat poor
>= 700 and < 2000 mediocre
>= 2000 and < 4000 somewhat rich
>= 4000 and < 10000 rich
>= 10000 and < 40000 luxurious
>= 40000 and < 100000 very luxurious
>= 100000 and < 1000000 extremely luxurious
>= 1000000 unbelievably luxurious

Beauty

Value Description
< -3.5 hideous
>= -3.5 and < 0 ugly
>= 0 and < 2.4 neutral
>= 2.4 and < 5 rather nice
>= 5 and < 15 beautiful
>= 15 and < 50 very beautiful
>= 50 and < 100 extremely beautiful
>= 100 unbelievably beautiful

Space

Indicates how much free space is available in the room. Objects that prevent a pawn from entering a space will decrease the available space in the room. Thus, objects like beds, tables, workbenches, lamps, heaters, etc will reduce the space in the room. Stools and chairs do not reduce the space in the room.

Value Description
< 12.5 cramped
>= 12.5 and < 29 rather tight
>= 29 and < 55 average-sized
>= 55 and < 70 rather spacious
>= 70 and < 130 spacious
>= 130 and < 349.5 very spacious
>= 349.5 extremely spacious

Cleanliness

This stat affects medical outcomes. It is determined by factors such as whether a floor has been constructed, and whether there is dirt, blood, animal filth or vomit present.

Value Description
< -1.1 very dirty
>= -1.1 and < -0.4 dirty
>= -0.4 and < -0.05 a little bit dirty
>= -0.05 and < 0.4 clean
>= 0.4 sterile