RimWorld

RimWorld

Crowju Race
PlasmaChargeJob spam in log for non-AMW units
When playing with Crowju Race and [RWY] Advanced Mechanoid Warfare (Continued), the game log gets spammed with the following message:

PlasmaChargeJob: Attacker is not AMW_Mech_Thrumbo. Aborting.

This occurs every time a Crowju pawn in combat tries to evaluate the JobGiver_TryUsePlasmaCharge job, even though they are not AMW_Mech_Thrumbo.

Steps to reproduce:

Load Crowju Race + [RWY] Advanced Mechanoid Warfare (Continued).

Spawn any Crowju combat pawn (not AMW_Mech_Thrumbo).

Engage in combat.

Observe the log spam in dev mode.

Expected:
Only AMW_Mech_Thrumbo should use the JobGiver_TryUsePlasmaCharge job. Other pawns should not attempt it.

Possible fix suggestion:

Add a pawn kind check before adding the JobGiver, e.g. if (pawn.kindDef == AMW_Mech_Thrumbo).

Or remove JobGiver_TryUsePlasmaCharge from Crowju Race think-trees entirely for non-AMW pawns.

Example log snippet:

PlasmaChargeJob: Attacker is not AMW_Mech_Thrumbo. Aborting.
[Crowju Race, Assembly-CSharp.dll] Verse.AI.ThinkNode_JobGiver.TryIssueJobPackage(...)
[[RWY]Advanced Mechanoid Warfare(Continued), Erwei.Fra.dll] Erwei.Fra.AdvanceMech.JobGiver_TryUsePlasmaCharge.PlasmaChargeJob(...)

Thanks for your work on Crowju Race – hopefully this is just a quick think-tree cleanup.