From 7e224c97ae2728472180322f625dafa545f21f7f Mon Sep 17 00:00:00 2001 From: jc_gargma Date: Sat, 18 Jan 2025 21:46:00 -0800 Subject: Convert the PKGBUILD to my own fork of cataclysm-bn. --- revert-19_Fix-Repair-Nanobots-3308.patch | 36 -------------------------------- 1 file changed, 36 deletions(-) delete mode 100644 revert-19_Fix-Repair-Nanobots-3308.patch (limited to 'revert-19_Fix-Repair-Nanobots-3308.patch') diff --git a/revert-19_Fix-Repair-Nanobots-3308.patch b/revert-19_Fix-Repair-Nanobots-3308.patch deleted file mode 100644 index 040af83..0000000 --- a/revert-19_Fix-Repair-Nanobots-3308.patch +++ /dev/null @@ -1,36 +0,0 @@ -From 88924caafa4534a8c6a3d0f4bf84913a85ef3361 Mon Sep 17 00:00:00 2001 -From: KheirFerrum <102964889+KheirFerrum@users.noreply.github.com> -Date: Fri, 29 Sep 2023 15:02:13 +0100 -Subject: [PATCH] Fix Repair Nanobots (#3308) - -* Add back code that marks limbs for healing. - -* style(autofix.ci): automated formatting - ---------- - -Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> ---- - src/bionics.cpp | 6 ++++++ - 1 file changed, 6 insertions(+) - -diff --git a/src/bionics.cpp b/src/bionics.cpp -index 6c7586bbfc1..1884f75e6f8 100644 ---- a/src/bionics.cpp -+++ b/src/bionics.cpp -@@ -1673,6 +1673,12 @@ void Character::process_bionic( bionic &bio ) - } - if( calendar::once_every( 2_minutes ) ) { - std::vector damaged_hp_parts; -+ for( const bodypart_id &bp : get_all_body_parts( true ) ) { -+ const int hp_cur = get_part_hp_cur( bp ); -+ if( !is_limb_broken( bp ) && hp_cur < get_part_hp_max( bp ) ) { -+ damaged_hp_parts.push_back( bp ); -+ } -+ } - if( !damaged_hp_parts.empty() ) { - // Essential parts are considered 10 HP lower than non-essential parts for the purpose of determining priority. - // I'd use the essential_value, but it's tied up in the heal_actor class of iuse_actor. --- -2.42.0 - -- cgit v1.2.1