Skip to content

Commit 0037900

Browse files
committed
more clarifications
1 parent 5464f50 commit 0037900

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

src/ch05-03-reputation.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,12 @@ The `handle_crime_social_reputation_impact` function at `0x004F8F10` reduces the
142142
|0xe|-6.0|
143143
|0xf|-8.0|
144144

145+
### Bath House Bribes
146+
A successful bribe increases the social reputation by `min(amount * 0.000099999997, 3.0)`.
147+
Consequently, successfully bribing with 30000 or more gives the maximum social reputation gain.
148+
149+
A failed bribe decreases the social reputation by `2.0`.
150+
145151
### Degradation
146152

147153
## Trading
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
# Bath House Bribe Success
22
The `handle_operation_bath_house_bribe_success` function at `0x0053AC50` applies the effects of a successful bribe.
3+
Money is subtracted as expected, and the expenses are added to the monthly expenditure statistic under *"miscellaneous"*.
4+
5+
The merchant's social reputation in the corresponding town is increased as explained in the reputation section.
6+
7+
**There is a check which probably should prevent a merchant from bribing more than 2 councillors in one town. However, this check is bugged, as discussed in the Known Bugs chapter.**
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Bath House Bribe Failure
22
The `handle_operation_bath_house_bribe_failure` function at `0x0053AD10` applies the effects of a failed bribe.
33

4-
The merchant's social reputation in the corresponding town is decreased by `2.0`.
4+
The merchant's social reputation in the corresponding town is decreased as explained in the reputation section.
55

66
**If the councillor was already successfully bribed by the merchant or not bribed by any merchant, he will now be bribed by the merchant with the index 1.
77
This is wrong, as discussed in the Known Bugs chapter.**

src/towns/bath-house.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ It defines the following *bribe base factors* for each rank:
4040

4141
The bribe result is calculated as follows:
4242
```python
43+
BRIBE_BASE_FACTORS = [0, 1, 2, 3, 5, 7, 10, 15]
44+
4345
def calculate_expected_bribe(rank: int, rand: int, already_bribed: bool):
4446
price = 500 * (rand % 11 + 4 * BRIBE_BASE_FACTORS[rank] + 16)
4547
if already_bribed:

0 commit comments

Comments
 (0)