mirror of
https://gitgud.io/Stardust3D/rjw-plasticsurgeries.git
synced 2024-08-14 23:57:25 +00:00
49 lines
1.4 KiB
C#
49 lines
1.4 KiB
C#
|
using System;
|
|||
|
using RimWorld;
|
|||
|
using rjw;
|
|||
|
using System.Collections.Generic;
|
|||
|
using Dyspareunia;
|
|||
|
using Verse;
|
|||
|
|
|||
|
namespace RJW_PlasticSurgeries
|
|||
|
{
|
|||
|
public abstract class Recipe_Surgery_Beautify : Recipe_Surgery
|
|||
|
{
|
|||
|
public override IEnumerable<BodyPartRecord> GetPartsToApplyOn(Pawn pawn, RecipeDef recipe)
|
|||
|
{
|
|||
|
var part = Genital_Helper.get_genitalsBPR(pawn);
|
|||
|
if (part != null)
|
|||
|
{
|
|||
|
var hediffs = Genital_Helper.get_PartsHediffList(pawn, part);
|
|||
|
if (Genital_Helper.has_vagina(pawn, hediffs)) yield return part;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
/// <inheritdoc />
|
|||
|
public override void ApplyOnPawn(Pawn pawn, BodyPartRecord part, Pawn billDoer, List<Thing> ingredients,
|
|||
|
Bill bill)
|
|||
|
{
|
|||
|
if (billDoer != null)
|
|||
|
{
|
|||
|
TaleRecorder.RecordTale(TaleDefOf.DidSurgery, billDoer, pawn);
|
|||
|
SurgeryResult(pawn);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public abstract void SurgeryResult(Pawn pawn);
|
|||
|
|
|||
|
protected void SurgeryX(Pawn pawn, float severity)
|
|||
|
{
|
|||
|
// pawn.story.traits.HasTrait(Beautiful)
|
|||
|
// pawn.random_pick_a_trait()
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public class Recipe_Surgery_Beautify_Base : Recipe_Surgery_Beautify
|
|||
|
{
|
|||
|
public override void SurgeryResult(Pawn pawn)
|
|||
|
{
|
|||
|
this.SurgeryX(pawn, 0.1f);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|