Home » MODDING HQ 1.13 » Flugente's Magika Workshop » New feature: individual militia
Re: New feature: individual militia[message #352617 is a reply to message #352295] Sun, 04 March 2018 23:16 Go to previous messageGo to previous message
Flugente

 
Messages:3507
Registered:April 2009
Location: Germany
As of r8537 & GameDir r2409, we can do more things with individual militia. First things first, all militia-related assignments are now in their own sub-menu:

https://i.imgur.com/sAQjTGd.png

  • The first option does what militia training does: train new militia (or promote existing ones if no more room or volunteers).
  • The second option is new: drill militia trains existing green or regular militia until they are promoted, but does not train new ones. We basically increase their internal promotion points (made up from kills and assists in battle). Once we reach INDIVIDUAL_MILITIA_PROMOTIONPOINTS_TO_REGULAR or INDIVIDUAL_MILITIA_PROMOTIONPOINTS_TO_ELITE, we promote the militia (if we play with militia resources, we put the promotion on hold until we have enough resources. This is as effective as promotions via training new militia is:

    • a normal militia training session requires 10000 points (when training, you see a merc's training points / 10 /maximum training points / 10 on their face).
    • a training session would allow promoting NUM_MILITIA_TRAINED_PER_SESSION militia
    • a green militia requires INDIVIDUAL_MILITIA_PROMOTIONPOINTS_TO_REGULAR to promote
    • it thus follows that one point of militia experience is worth 10000 / (NUM_MILITIA_TRAINED_PER_SESSION * INDIVIDUAL_MILITIA_PROMOTIONPOINTS_TO_REGULAR) training points, so we apply that to our training points

    Similar, it follows that

    • a normal training session costs $ MILITIA_BASE_TRAINING_COST * MILITIA_COST_MULTIPLIER_REGULAR
    • it promotes NUM_MILITIA_TRAINED_PER_SESSION militia with INDIVIDUAL_MILITIA_PROMOTIONPOINTS_TO_REGULAR points each
    • thus a point costs $ MILITIA_BASE_TRAINING_COST * MILITIA_COST_MULTIPLIER_REGULAR / (NUM_MILITIA_TRAINED_PER_SESSION * INDIVIDUAL_MILITIA_PROMOTIONPOINTS_TO_REGULAR)

    , so we always deduct that money. Can't have one assignment be free while the other costs something, no?

    Experience is awarded in similar manner for training provided (trainig empty air does not award experience).
    https://i.imgur.com/UzXg8vu.png

    One important part: This works in any sector, regardless of whether training new militia is possible there, as long as militia that can be trained are present.

    This only works with individual militia.
  • The third option is new: doctor militia allows restoring militia HP similar to how the regular doctor assingment works. This obviously requires INDIVIDUAL_MILITIA_MANAGE_HEALTH to be TRUE.

    As you may or may not be aware, individual militia data doesn't directly store militia health points (that would be useless, as militia stats depend on class, game progress and sector). We store their health ratio instead. They already heal INDIVIDUAL_MILITIA_HOURLYHEALTHPERCENTAGEGAIN % each hour, now you can speed that up by doctoring.
    Of course, given the huge number of militia and their... tactics, that would be a lot of wounds to treat... a daunting task for your doctors. For that reason, you can increase the effectivity of a doctor on that task: INDIVIDUAL_MILITIA_DOCTORHEALMODIFIER determines how many percent one doctoring point heals (for example, stock Spider has 362 points, each normally heals 1/100 of a merc's HP). I set it to 0.2 in stock. To achieve near parity with merc healing (and likely keep all the doctors on the roster busy )use 0.01. Values from 0.01 to 1.0. That value is already applied to a merc's image on that assignment - in the above picture, Spider can heal 72.4% of a militia's HP.

    This also works in any sector as long as militia in somewhat ruffled condition are present.
I hope that this will be quite helpful in making individual militia more useful. One could, say, pack a platoon of FNGs, a few trainers and medics to represent military advisors and LTs, and go to battle with that.

This is savegame compatible.

[Updated on: Sun, 04 March 2018 23:21]




I know now that it could never work between us, as much as we wanted to, it could never be! Not because you're a rabbit, but because you're black.

If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.

Report message to a moderator

Captain

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message light45.png
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message thumbs26.png
Read Message
Read Message
Read Message
Read Message bug6.png
Read Message
Read Message bug6.png
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New feature: advanced repair/dirt system
Next Topic: New (unofficial) mercs: The Ryder twins (Mass Effect: Andromeda)
Goto Forum:
  


Current Time: Sat Nov 30 09:26:06 GMT+2 2024

Total time taken to generate the page: 0.03043 seconds