From 42209cb39a6d278e0c3ad9dafd13bba47d3f9adb Mon Sep 17 00:00:00 2001 From: jc_gargma Date: Mon, 18 Jan 2021 05:01:02 -0800 Subject: Revert the npc sleep on tables patch Add patch to prevent non-faction NPCs becoming sleep deprived --- jc_ammo-loudness-ap-times-2.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 jc_ammo-loudness-ap-times-2.patch (limited to 'jc_ammo-loudness-ap-times-2.patch') diff --git a/jc_ammo-loudness-ap-times-2.patch b/jc_ammo-loudness-ap-times-2.patch new file mode 100644 index 0000000..3def080 --- /dev/null +++ b/jc_ammo-loudness-ap-times-2.patch @@ -0,0 +1,11 @@ +--- a/src/item_factory.cpp ++++ b/src/item_factory.cpp +@@ -221,7 +221,7 @@ + if( obj.ammo->loudness < 0 ) { + obj.ammo->loudness = obj.ammo->range * 2; + for( const damage_unit &du : obj.ammo->damage ) { +- obj.ammo->loudness += ( du.amount + du.res_pen ) * 2; ++ obj.ammo->loudness += ( du.amount * 2 ) + ( du.res_pen * 2 / 3 ); + } + } + -- cgit v1.2.1