mirror of
https://gitgud.io/amevarashi/rjw-sexperience-ideology.git
synced 2026-06-18 19:25:59 +00:00
75 lines
1.6 KiB
C#
75 lines
1.6 KiB
C#
using System.Collections.Generic;
|
|
using System.Text;
|
|
using RimWorld;
|
|
using rjw;
|
|
using Verse;
|
|
|
|
namespace RJWSexperience.Ideology.Precepts
|
|
{
|
|
public class DefExtension : DefModExtension, IPreceptTipPostfix
|
|
{
|
|
public float bestialityMtbMult = 1f;
|
|
public float fapMtbMult = 1f;
|
|
public float necroMtbMult = 1f;
|
|
public float rapeCpMtbMult = 1f;
|
|
public List<MemeDef> requiredAllMemes;
|
|
|
|
public bool AppendTip(StringBuilder tipBuilder)
|
|
{
|
|
bool modified = false;
|
|
|
|
if (bestialityMtbMult != 1f)
|
|
{
|
|
tipBuilder.AppendInNewLine(" - ");
|
|
tipBuilder.Append("RSI_PreceptTipModifyBestialityMtb".Translate(bestialityMtbMult.ToString()));
|
|
modified = true;
|
|
}
|
|
|
|
if (fapMtbMult != 1f)
|
|
{
|
|
tipBuilder.AppendInNewLine(" - ");
|
|
tipBuilder.Append("RSI_PreceptTipModifyFappinMtb".Translate(fapMtbMult.ToString()));
|
|
modified = true;
|
|
}
|
|
|
|
if (necroMtbMult != 1f)
|
|
{
|
|
tipBuilder.AppendInNewLine(" - ");
|
|
tipBuilder.Append("RSI_PreceptTipModifyNecroMtb".Translate(necroMtbMult.ToString()));
|
|
modified = true;
|
|
}
|
|
|
|
if (rapeCpMtbMult != 1f)
|
|
{
|
|
tipBuilder.AppendInNewLine(" - ");
|
|
tipBuilder.Append("RSI_PreceptTipModifyRapeCPMtb".Translate(rapeCpMtbMult.ToString()));
|
|
modified = true;
|
|
}
|
|
|
|
return modified;
|
|
}
|
|
|
|
public override IEnumerable<string> ConfigErrors()
|
|
{
|
|
if (bestialityMtbMult <= 0f)
|
|
{
|
|
yield return "<bestialityMtbMult> must be > 0";
|
|
}
|
|
|
|
if (fapMtbMult <= 0f)
|
|
{
|
|
yield return "<fapMtbMult> must be > 0";
|
|
}
|
|
|
|
if (necroMtbMult <= 0f)
|
|
{
|
|
yield return "<necroMtbMult> must be > 0";
|
|
}
|
|
|
|
if (rapeCpMtbMult <= 0f)
|
|
{
|
|
yield return "<rapeCpMtbMult> must be > 0";
|
|
}
|
|
}
|
|
}
|
|
}
|