RimWorld

RimWorld

Ikke nok vurderinger
World Faster Aging
   
Pris
Føj til foretrukne
Gjort til foretrukken
Fjern som foretrukken
Mod, 1.1
Filstørrelse:
Offentliggjort:
Opdateret:
236.259 KB
3. mar. 2020 kl. 6:48
7. mar. 2020 kl. 22:30
5 ændringsbemærkninger ( vis )

Abonner for at downloade
World Faster Aging

I 1 samling af YAYO
Lost Technology
20 genstande
Beskrivelse
This mode has been modified to adjust the age of the world pawns.



-original description-

This mod allows you to control the rate at which pawns age. Use the config menu to set the desired rate.

Requires Hugslib, loaded before this mod.

Mod made and tested for Rimworld version 1.1.

You are free to redistribute this mod and use its code for non-commercial purposes, just give credit to Verdiss in descriptions and in source code.




It is not calculated directly, but implemented to check every 5 day to reduce the cpu operation.

--- added code ---

public class worldPawnAging : MapComponent
{
public int Today { get; private set; }

public override void MapComponentTick()
{
base.MapComponentTick();
int checkTick = 60000 * 5;
bool flag = Find.TickManager.TicksGame % checkTick == 0;
if (flag)
{

RimWorld.Planet.WorldPawns worldPawns = Find.WorldPawns;
Pawn[] ar_pawn = worldPawns.AllPawnsAlive.ToArray();

foreach (Pawn pawn in ar_pawn)
{
/Log.Message(pawn.Name.ToStringFull);
//Log.Message(pawn.ageTracker.AgeBiologicalYears.ToString());

int multiplier = 0;

if (pawn.ageTracker.AgeBiologicalYears < FasterAging.pawnCutoffAge)
{
multiplier = FasterAging.pawnSpeedMultBeforeCutoff;
}
else
{
multiplier = FasterAging.pawnSpeedMultAfterCutoff;
}

if (multiplier == 0) return;

int totalTick = checkTick * multiplier;

pawn.ageTracker.AgeTickMothballed(totalTick);

//Log.Message(pawn.ageTracker.AgeBiologicalYears.ToString());

}

}
}

public worldPawnAging(Map map) : base(map)
{
}
}

---




original mod by Verdiss
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1850802618

13 kommentarer
Lama man 30. juli 2023 kl. 7:43 
1.4 when?
Mairaine Playz Games 19. feb. 2022 kl. 4:36 
can this mod make pawns immortal? atleast with aging, if they got shot dead, they dead.
JessieFeathers 21. aug. 2020 kl. 10:32 
1.2?
Nolabritt 10. juni 2020 kl. 14:48 
is there any way to increase chance of terminal illness with age, or is there a mod that does it? I am using the immortal mod and I'd love to have generations of normal pawns living and dying throughout the story with 4(ish) year life cycles. Like that I can build spaceships with the grandchildren of my starting pawns. Cheers!
YAYO  [ophavsmand] 3. juni 2020 kl. 17:48 
Hollsnoop 3. juni 2020 kl. 7:34 
Is the default of 10 aging just the game's default? I'm just not sure what to set it to to increase the rate of aging?
YAYO  [ophavsmand] 3. maj 2020 kl. 19:09 
@RavingLegend
thank you
Ravinglegend 3. maj 2020 kl. 14:39 
You might want to change "It is not calculated correctly" to "it is not calculated directly". As using 'correctly' makes it sound like there's something wrong with the mod.
Guy 9. apr. 2020 kl. 2:25 
So slow that you actually age backwards.
Saint Mattis 6. mar. 2020 kl. 12:33 
I think we can make make aging slower but I haven't figured out how yet, I think human age speed needs to be negative