first working version
a little late since i didn't expect this to be big enough to require source control 😵💫
35 lines
1.7 KiB
C#
35 lines
1.7 KiB
C#
/*
|
|
Copyright 2025 Maciej Pawłowski
|
|
|
|
This file is part of "Maciek's Big and Small unofficial addon - Anomaly".
|
|
|
|
"Maciek's Big and Small unofficial addon - Anomaly" is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
|
|
|
"Maciek's Big and Small unofficial addon - Anomaly" is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License along with "Maciek's Big and Small unofficial addon - Anomaly". If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
using System.Collections.Generic;
|
|
using Verse;
|
|
using Verse.AI.Group;
|
|
|
|
namespace RimWorld;
|
|
|
|
public class PsychicRitualDef_Megaphagy : PsychicRitualDef_InvocationCircle
|
|
{
|
|
public FloatRange sizeTransferredFromQualityRange;
|
|
|
|
public override List<PsychicRitualToil> CreateToils(PsychicRitual psychicRitual, PsychicRitualGraph parent)
|
|
{
|
|
List<PsychicRitualToil> list = base.CreateToils(psychicRitual, parent);
|
|
list.Add(new PsychicRitualToil_Megaphagy(InvokerRole, TargetRole, sizeTransferredFromQualityRange));
|
|
list.Add(new PsychicRitualToil_TargetCleanup(InvokerRole, TargetRole));
|
|
return list;
|
|
}
|
|
|
|
public override TaggedString OutcomeDescription(FloatRange qualityRange, string qualityNumber, PsychicRitualRoleAssignments assignments)
|
|
{
|
|
return outcomeDescription.Formatted(sizeTransferredFromQualityRange.ToString());
|
|
}
|
|
}
|