2022-03-06 08:45:26 +00:00
using RimWorld ;
2021-09-24 15:14:02 +00:00
using Verse ;
namespace RJWSexperience
{
2022-04-03 17:20:14 +00:00
public class CumOutcomeDoers : IngestionOutcomeDoer
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Minor Code Smell", "S1104:Fields should not have public accessibility", Justification = "Field value loaded from XML")]
public float unitAmount = 1.0f ;
2021-09-24 15:14:02 +00:00
2022-04-03 17:20:14 +00:00
protected override void DoIngestionOutcomeSpecial ( Pawn pawn , Thing ingested )
{
2022-04-27 05:36:34 +00:00
int amount = ingested . stackCount * ( int ) unitAmount ;
Logs . LogManager . GetLogger < CumOutcomeDoers , Logs . DebugLogProvider > ( ) . Message ( $"Record {pawn.NameShortColored} eating {amount} ml of cum" ) ;
pawn . records . Increment ( VariousDefOf . NumofEatenCum ) ;
pawn . records . AddTo ( VariousDefOf . AmountofEatenCum , amount ) ;
2022-04-03 17:20:14 +00:00
}
}
2021-09-24 15:14:02 +00:00
}