diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2023-07-29 21:51:11 -0700 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2023-07-29 21:51:11 -0700 |
commit | d5ff76b91bcd83bbd7157622b68b317b0ddb39f1 (patch) | |
tree | 288dcb3a77f280fad7bb88aab7a02be52bd338e3 /src-11_fix-tacoma-farmfield.patch | |
parent | Updated to 2023-07-14-0912 (diff) | |
download | cataclysm-bn-d5ff76b91bcd83bbd7157622b68b317b0ddb39f1.tar.xz |
Add patch fixing the cash detection used by the tacoma crop overseer.
Diffstat (limited to 'src-11_fix-tacoma-farmfield.patch')
-rw-r--r-- | src-11_fix-tacoma-farmfield.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src-11_fix-tacoma-farmfield.patch b/src-11_fix-tacoma-farmfield.patch new file mode 100644 index 0000000..3a3e0ac --- /dev/null +++ b/src-11_fix-tacoma-farmfield.patch @@ -0,0 +1,32 @@ +--- a/src/mission_companion.cpp ++++ b/src/mission_companion.cpp +@@ -940,12 +940,12 @@ + void talk_function::field_build_1( npc &p ) + { + Character &player_character = get_player_character(); +- if( player_character.cash < 100000 ) { ++ if( g->u.cash < 100000 ) { + popup( _( "I'm sorry, you don't have enough money." ) ); + return; + } + p.set_mutation( trait_NPC_CONSTRUCTION_LEV_1 ); +- player_character.cash += -100000; ++ g->u.cash += -100000; + const tripoint_abs_omt site = + overmap_buffer.find_closest( player_character.global_omt_location(), "ranch_camp_63", 20, + false ); +@@ -966,12 +966,12 @@ + void talk_function::field_build_2( npc &p ) + { + Character &player_character = get_player_character(); +- if( player_character.cash < 550000 ) { ++ if( g->u.cash < 550000 ) { + popup( _( "I'm sorry, you don't have enough money." ) ); + return; + } + p.set_mutation( trait_NPC_CONSTRUCTION_LEV_2 ); +- player_character.cash += -550000; ++ g->u.cash += -550000; + const tripoint_abs_omt site = + overmap_buffer.find_closest( player_character.global_omt_location(), "ranch_camp_63", 20, + false ); |