[A14] [MODLIST] Marvin's Misc Small Mods - More Planning (22/08/2016)

Started by RemingtonRyder, March 06, 2015, 02:02:12 PM

Previous topic - Next topic

Twinkieishere17

Hey I really love the mod list, but I was wondering if the More Planning tool could be expanded to be able to choose from like 5 or 6 colors to really get into some nitty-gritty planning.

Kaballah

Quote from: MarvinKosh on March 06, 2015, 02:02:12 PM
HLCAH -Dropbox - Humans have a lower chance of getting age-related health problems. Does not apply to existing pawns, just newly-generated. N.B. This modifies the human race def and will not be compatible with other mods which do the same.


You might consider doing another mod of this type for animals, it's annoying to start with tamed animals that are demented/blind etc.

RemingtonRyder


CovertJaguar


RemingtonRyder

All righty then, I'll look into it, thanks.

Also, welcome to the forums if nobody has said so already. :)

e: Edited the OP, new compatibility patch for EPOE. Tis just one line that needs changing.

RemingtonRyder

New mod! Sort of.

Apparel Insulation Nerf -Dropbox -Workshop
  • Reduces the amount of insulation provided by apparel across the board.
  • Only modifies a StatDef so should be compatible with apparel-adding mods.
  • Warning! Not recommended for general use, may cause visitors and raiders to die frequently from hypothermia/heaststroke.

It's basically like the animal hide and wool nerfs that I did before.

Something that you should note is that even in vanilla, textiles and leathers will appear to cap at 1.00 on insulation. The actual value is calculated correctly for the colonist's comfort temperatures, but is otherwise not displayed correctly. My bad, I didn't look closely enough. It seems there's been some rebalancing of leather insulation in A14. :)

alareth1976


RemingtonRyder

It shouldn't be too much of a problem to update More Planning for A14. I kind of want to do something with the new textures that Vas kindly made for it though.

General announcement: Check the top post, I have a little surprise!

Fluffe

If someone where to make a room connected to like 50 coolers could the pawns theoretically survive the increasing temperatures for atleast another 10 years by staying in said room lol

RemingtonRyder



RemingtonRyder

Here's the source for the bit in Apparel Insulation Nerf which nerfs wool and camelhair without needing to override the entire def in XML:

using RimWorld;
using Verse;
using CommunityCoreLibrary;
using System.Collections.Generic;

namespace ApparelInsulationNerf
{
public class NerfInjector : SpecialInjector
{
public override bool Inject()
{
bool Success;
ThingDef awool = ThingDef.Named("AlpacaWool");
ThingDef mufwool = ThingDef.Named("MuffaloWool");
ThingDef camelhair = ThingDef.Named("CamelHair");
ThingDef megawool = ThingDef.Named("MegatheriumWool");

Success = NerfInsulation(awool, 1.7f, 1.45f);
Success &= NerfInsulation(mufwool, 1.5f, 1.5f);
Success &= NerfInsulation(camelhair, 1.8f, 1.4f);
Success &= NerfInsulation(megawool, 1.55f, 1.55f);
return Success;
}

private bool NerfInsulation(ThingDef thing, float nerfHeatTo, float nerfColdTo)
{
List<StatModifier> factorsList = thing.stuffProps.statFactors;
for (int i = 0; i < factorsList.Count; i++)
{

if (factorsList[i].stat == StatDef.Named("Insulation_Cold"))
{
factorsList[i].value = nerfColdTo;
}
else if (factorsList[i].stat == StatDef.Named("Insulation_Heat"))
{
factorsList[i].value = nerfHeatTo;
}

}
return true;

}
}
}


Not all stats in defs can be modified this way.

Also, yes, I know, the code is a bit crap. There's not much point returning a bool if I'm not checking that the operation is successful, for example.

RemingtonRyder

Hi guys!

I had a slight mishap today and deleted Solar Apocalypse from Workshop. :P

I've updated the link to it in the top post.

RemingtonRyder

I added a new map condition Rogue Planet. Check the top post! :)

Edit: You might have got a download with no assembly file. If so, please re-download.

Tekuromoto

Any word on updating More Planning for A14/A15? I took a break with A12 and am just getting back into it through Steam and omg I can hardly imagine playing without more planning.  :D