Property repairs

Real Estate Renovation Model #

The game uses a strict mathematical model that determines the nominal cost of repairing buildings depending on their level. The nominal cost of repairs is a reference price calculated based on fixed (nominal) prices of resources, without taking into account stock market fluctuations.

Nominal cost of repairs by house levels

Mathematical formula #

The nominal cost of building repairs is calculated using the formula:

\( \text{RepairCost}(x) = -0.000289 \cdot x^2 + 0.04433 \cdot x + 0.00314 \)

Where:

\( x \in \mathbb{N}, \quad 1 \leq x \leq 50 \)
  • Building level.
  • The result is expressed in gold coins.

Justification and properties #

The formula is constructed so that:

  • The rise in repair costs started slowly and gradually accelerated.
  • At high levels, economies of scale were maintained (repairing one high-level building was cheaper than renovating many low-level buildings).
  • A balance was maintained between the cost of renovation and the potential income of the building.

Resource Allocation Algorithm #

  1. The nominal cost of repairs is calculated using the formula:
\( \text{gold\_cost} = \text{RepairCost}(x) \)
  1. The amount of water is determined:
\( \text{water\_qty} = x \)
  1. It is calculated how much gold goes into water:
\( \text{gold\_on\_water} = \text{water\_qty} \cdot \text{WaterPrice} \)
  1. Remaining gold:
\( \text{gold\_remaining} = \text{gold\_cost} - \text{gold\_on\_water} \)
  1. The remainder is distributed evenly among other resources (baseline).

  2. Each resource quantity value:

  • Rounded up to 4 decimal places.
  • Cannot be less than 0.003.

Result #

This approach ensures:

  • Scalability and ease of calculation.
  • Transparency of mechanics for players.
  • Maintaining a balance between costs and progress.
  • A sustainable economic model that is easy to balance.

Nominal cost of repairs by property levels #

The “Cost by Resources” column shows the reference price for repairing a house of this level, calculated in gold coins at the nominal value of resources.

House levelCost by resources
10,0472
20,0906
30.1335
40.1759
50.2176
60.2587
70.2993
80.3393
90.3787
100.4175
110.4558
120.4935
130.5306
140.5671
150.6031
160.6384
170.6732
180.7075
190.7411
200.7742
210.8066
220.8385
230.8699
240.9006
250.9308
260.9604
270.9894
281,0178
291,0457
301,0730
311,0997
321,1258
331,1513
341,1763
351,2007
361,2245
371,2477
381,2704
391,2925
401,3140
411,3349
421,3552
431,3750
441,3942
451,4128
461,4308
471,4483
481,4651
491,4814
501,4972

Basic proportions of resources for repair #

Levels 1-3 #

ResourceQuantity per level
Water1,0000
Endurance Coupon6,4141
Wood0.7697
Stone0.7697

Levels 4–50 #

ResourceQuantity per level
Water4,0000
Endurance Coupon5,5076
Wood beam0.8813
Edged board1,7625
Mounting rail3,4785
Wood lining6,9570
Foundation block0.8813
Overlap block1,7625
Facing plate3,4785
Brick6,9570
Channel0.0882
Girders0,1763
Corner0.3525
Fittings0.7031

Repair cost coefficients by levels #

This list contains scaling factors for calculating repair costs for buildings of different levels.

To calculate the amount of resource required for repairs:

  • For any resource except water:

    \( \text{Quantity} = \text{Baseline} \times \text{Level Factor} \)
  • For water:

    \( \text{Amount of water} = \text{House level} \)

Each baseline value specifies the amount of resource required for 1 level of the building. Using coefficients, you can quickly scale values to any level from 1 to 50.

LevelCoefficient
11,000000
21,921197
32,830143
41,000000
51,237318
61,471348
71,702092
81,929548
92,153717
102,374599
112,592194
122,806502
133,017522
143,225255
153,429702
163,630861
173,828732
184,023317
194,214615
204,402625
214,587348
224,768785
234,946934
245,121795
255,293370
265,461657
275,626658
285,788371
295,946797
306,101936
316,253788
326,402352
336,547630
346,689620
356,828323
366,963739
377,095868
387,224709
397,350264
407,472531
417,591511
427,707204
437,819610
447,928729
458,034561
468,137105
478,236362
488,332332
498,425015
508,514411