边缘世界 RimWorld

边缘世界 RimWorld

评价数不足
World Faster Aging
   
奖励
收藏
已收藏
取消收藏
Mod, 1.1
文件大小
发表于
更新日期
236.259 KB
2020 年 3 月 3 日 上午 6:48
2020 年 3 月 7 日 下午 10:30
5 项改动说明 ( 查看 )

订阅以下载
World Faster Aging

在 YAYO 的 1 个合集中
Lost Technology
20 件物品
描述
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 条留言
Lama man 2023 年 7 月 30 日 上午 7:43 
1.4 when?
Mairaine Playz Games 2022 年 2 月 19 日 上午 4:36 
can this mod make pawns immortal? atleast with aging, if they got shot dead, they dead.
JessieFeathers 2020 年 8 月 21 日 上午 10:32 
1.2?
Nolabritt 2020 年 6 月 10 日 下午 2: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  [作者] 2020 年 6 月 3 日 下午 5:48 
Hollsnoop 2020 年 6 月 3 日 上午 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  [作者] 2020 年 5 月 3 日 下午 7:09 
@RavingLegend
thank you
Ravinglegend 2020 年 5 月 3 日 下午 2: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 2020 年 4 月 9 日 上午 2:25 
So slow that you actually age backwards.
Saint Mattis 2020 年 3 月 6 日 下午 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