diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2025-01-18 21:46:00 -0800 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2025-01-18 21:46:00 -0800 |
commit | 7e224c97ae2728472180322f625dafa545f21f7f (patch) | |
tree | 61a296000b3a05d36cde4de0d8bd5e5179ee21ab /src-03_allow-bio-firestarter-on-smoker.patch | |
parent | Add plastic scrap is stackable patch. (diff) | |
download | cataclysm-bn-7e224c97ae2728472180322f625dafa545f21f7f.tar.xz |
Diffstat (limited to 'src-03_allow-bio-firestarter-on-smoker.patch')
-rw-r--r-- | src-03_allow-bio-firestarter-on-smoker.patch | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src-03_allow-bio-firestarter-on-smoker.patch b/src-03_allow-bio-firestarter-on-smoker.patch deleted file mode 100644 index 5210727..0000000 --- a/src-03_allow-bio-firestarter-on-smoker.patch +++ /dev/null @@ -1,40 +0,0 @@ ---- a/src/iexamine.cpp -+++ b/src/iexamine.cpp -@@ -2476,7 +2476,10 @@ - return; - } - -- if( !p.has_charges( itype_fire, 1 ) ) { -+ const bool has_bionic_firestarter = p.has_bionic( bio_lighter ) && -+ p.enough_power_for( bio_lighter ); -+ -+ if( !has_bionic_firestarter && !p.has_charges( itype_fire, 1 ) ) { - add_msg( _( "This kiln is ready to be fired, but you have no fire source." ) ); - return; - } else { -@@ -4950,10 +4953,21 @@ - return; - } - -- p.use_charges( itype_fire, 1 ); -- for( auto &it : here.i_at( examp ) ) { -- if( it->has_flag( flag_SMOKABLE ) ) { -- it->set_flag( flag_PROCESSING ); -+ const bool has_bionic_firestarter = p.has_bionic( bio_lighter ) && -+ p.enough_power_for( bio_lighter ); -+ -+ if( has_bionic_firestarter ) { -+ for( auto &it : here.i_at( examp ) ) { -+ if( it->has_flag( flag_SMOKABLE ) ) { -+ it->set_flag( flag_PROCESSING ); -+ } -+ } -+ } else { -+ p.use_charges( itype_fire, 1 ); -+ for( auto &it : here.i_at( examp ) ) { -+ if( it->has_flag( flag_SMOKABLE ) ) { -+ it->set_flag( flag_PROCESSING ); -+ } - } - } - here.furn_set( examp, next_smoker_type ); |