From e5b7d871b0888743e93e915073949a047dcc8133 Mon Sep 17 00:00:00 2001 From: Flugente Date: Thu, 7 Mar 2013 02:21:03 +0000 Subject: [PATCH] dirt system: added an option that controls wether a gun also gets cleaned on fully repairing it git-svn-id: https://ja2svn.mooo.com/source/ja2_v1.13_data@1616 4f8fa57e-7814-0410-bad4-adc449f26b7c --- gamedir/Data-1.13/Ja2_Options.INI | 3 +++ gamedir/Data-UB/Ja2_Options.ini | 10 ++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gamedir/Data-1.13/Ja2_Options.INI b/gamedir/Data-1.13/Ja2_Options.INI index ecaf6131f..f8a748892 100644 --- a/gamedir/Data-1.13/Ja2_Options.INI +++ b/gamedir/Data-1.13/Ja2_Options.INI @@ -2418,6 +2418,9 @@ ONLY_REPAIR_GUNS_AND_ARMOUR = FALSE ; allows a gun to get dirty when used, thereby increasing the chance of weapon jamming DIRT_SYSTEM = TRUE +; repairing a gun to its currently possible maximum value also cleans the gun (always so on repair shopkeepers) +FULL_REPAIR_CLEANS_GUN = FALSE; + ; every turn, a gun suffers a dirt increase equal to a singleshot dirt increase divided by this number SECTOR_DIRT_DIVIDER = 1000 diff --git a/gamedir/Data-UB/Ja2_Options.ini b/gamedir/Data-UB/Ja2_Options.ini index 9014b69ba..cd921b28b 100644 --- a/gamedir/Data-UB/Ja2_Options.ini +++ b/gamedir/Data-UB/Ja2_Options.ini @@ -2360,13 +2360,19 @@ ADDITIONAL_REPAIR_MODE = TRUE ; advanced repair/dirt system ;------------------------------------------------------------------------------------------------------------------------------ -; determines wether a gun can suffer permanent damage that cannot be repaired other by local smiths. +; determines wether a gun can suffer permanent damage that cannot be repaired by anyone other than local smiths. ADVANCED_REPAIR = TRUE +; the only items we can repair are guns and armour +ONLY_REPAIR_GUNS_AND_ARMOUR = FALSE + ; allows a gun to get dirty when used, thereby increasing the chance of weapon jamming DIRT_SYSTEM = TRUE -; every trun, a gun suffers a dirt increase equal to a singleshot dirt increase divided by this number +; repairing a gun to its currently possible maximum value also cleans the gun (always so on repair shopkeepers) +FULL_REPAIR_CLEANS_GUN = FALSE; + +; every turn, a gun suffers a dirt increase equal to a singleshot dirt increase divided by this number SECTOR_DIRT_DIVIDER = 1000