mirror of
https://gitgud.io/Stardust3D/rjw-plasticsurgeries.git
synced 2024-08-14 23:57:25 +00:00
done
This commit is contained in:
parent
ed7646a76f
commit
44a9d7eb78
22 changed files with 884 additions and 35 deletions
|
@ -7,7 +7,6 @@ namespace RJW_PlasticSurgeries
|
|||
{
|
||||
public abstract class Recipe_Plastic_Surgery : Recipe_Surgery
|
||||
{
|
||||
protected readonly bool HasDyspareunia = false; // ModLister.HasActiveModWithName("Dyspareunia");
|
||||
protected readonly bool HasLicentia = ModLister.HasActiveModWithName("RimJobWorld - Licentia Labs");
|
||||
|
||||
public override IEnumerable<BodyPartRecord> GetPartsToApplyOn(Pawn pawn, RecipeDef recipe)
|
||||
|
@ -35,18 +34,11 @@ namespace RJW_PlasticSurgeries
|
|||
|
||||
protected abstract void SurgeryResult(Pawn pawn);
|
||||
|
||||
|
||||
/// <Compatibility />
|
||||
private static void DamageHediff(Hediff hed)
|
||||
{
|
||||
}
|
||||
|
||||
protected void SurgeryX(Pawn pawn, float severity, bool damagePart = false)
|
||||
{
|
||||
GetHediffs(pawn).ForEach(hed =>
|
||||
{
|
||||
hed.Severity = severity;
|
||||
if (damagePart && HasDyspareunia) DamageHediff(hed);
|
||||
if (damagePart && HasLicentia)
|
||||
{
|
||||
var (type, damage) = GetLicentiaDamage();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue