New feature: militia resources requires the player to convert items to resources to be able to train and promote militia

git-svn-id: https://ja2svn.mooo.com/source/ja2_v1.13_data@2330 4f8fa57e-7814-0410-bad4-adc449f26b7c
This commit is contained in:
Flugente
2016-07-15 19:28:14 +00:00
parent 1b8b47206e
commit 8f682bd6ee
+70
View File
@@ -4237,6 +4237,76 @@ MILITIA_USE_SECTOR_EQUIPMENT_CLASS_SPECIFIC_TABOOS = FALSE
;******************************************************************************************************************************
;******************************************************************************************************************************
[Militia Resource Settings]
;******************************************************************************************************************************
; These settings control whether we require resources to train and upgrade militia
;******************************************************************************************************************************
;------------------------------------------------------------------------------------------------------------------------------
; If this feature is used, the player can convert items to get 3 resources:
; Guns: obtained from weapons, ammo
; Armour: obtained from helmets, vests, pants, LBE and face items
; Miscellaneous: obtained from melee weapons, launchers, grenades and bombs
;
; Whenever we train or promote militia, we spend these resources:
; - A green militia requires 1 Gun.
; - A promotion from green to regular militia requires 1 Gun + 1 Armour.
; - A promotion from regular to elite militia requires 1 Gun + 1 Armour + 1 Misc..
;
; If we don't have enough resources, the training/promotion won't happen.
;
; Resources will be spent when we obtain militia by interrogation, but not if we recruit them from a PMC.
;
; Items can be converted into resources in the sector inventory by pressing [Alt] + [Shift] + [LMB], similar to how
; SELL_ITEMS_WITH_ALT_LMB works.
; Resources will be shown in the strategic map while the Militia view is active.
;
; Every time the maximum game progress increases, the resource pool is multiplied by the fraction of new and old progress.
;
; This feature requires MILITIA_USE_SECTOR_EQUIPMENT to be FALSE.
;------------------------------------------------------------------------------------------------------------------------------
; if set to true, militia will take parts of its equipment from a sector's inventory.
MILITIA_REQUIRE_RESOURCES = FALSE
; The resource value of an item is determined by its status, coolness, class specific modifiers, and the highest game progress reached so far.
; progress modifier is MILITIA_RESOURCES_PROGRESSFACTOR / highest progress so far
; values between 1.0 and 100.0, 10.0 recommended default
MILITIA_RESOURCES_PROGRESSFACTOR = 10.0
; class specific modifiers, values between 0.0 and 1.0
; ammo modifier PER SINGLE BULLET. Note that coolness is not derived from the item's coolness, but the coolness of the crate item corresponding to this ammotype and caliber
MILITIA_RESOURCES_ITEMCLASSMOD_AMMO_BULLET = 0.01
; the gun modifier covers all guns and launchers
MILITIA_RESOURCES_ITEMCLASSMOD_GUN = 1.0
MILITIA_RESOURCES_ITEMCLASSMOD_ARMOUR = 1.0
MILITIA_RESOURCES_ITEMCLASSMOD_MELEE = 0.25
MILITIA_RESOURCES_ITEMCLASSMOD_BOMB = 0.25
MILITIA_RESOURCES_ITEMCLASSMOD_GRENADE = 0.17
MILITIA_RESOURCES_ITEMCLASSMOD_FACE = 0.2
MILITIA_RESOURCES_ITEMCLASSMOD_LBE = 0.17
; Different attachments have multiple modifiers. They also attribute to different resources
MILITIA_RESOURCES_ITEMCLASSMOD_ATTACHMENT_LOW = 0.05
MILITIA_RESOURCES_ITEMCLASSMOD_ATTACHMENT_MEDIUM = 0.1
MILITIA_RESOURCES_ITEMCLASSMOD_ATTACHMENT_HIGH = 0.2
; guns are further modified by a weapon class specific modifier
MILITIA_RESOURCES_WEAPONMOD_PISTOL = 0.6
MILITIA_RESOURCES_WEAPONMOD_M_PISTOL = 0.7
MILITIA_RESOURCES_WEAPONMOD_SMG = 0.8
MILITIA_RESOURCES_WEAPONMOD_RIFLE = 0.9
MILITIA_RESOURCES_WEAPONMOD_SN_RIFLE = 1.0
MILITIA_RESOURCES_WEAPONMOD_AS_RIFLE = 1.0
MILITIA_RESOURCES_WEAPONMOD_LMG = 1.0
MILITIA_RESOURCES_WEAPONMOD_SHOTGUN = 1.0
;******************************************************************************************************************************
;******************************************************************************************************************************
[Shopkeeper Inventory Settings]
;******************************************************************************************************************************