mirror of
https://gitgud.io/leboeuf/lewd-biotech.git
synced 2024-08-14 23:57:27 +00:00
1.0 initial commit
This commit is contained in:
commit
1761f03048
34 changed files with 1448 additions and 0 deletions
35
Source/Helpers/LBTLogger.cs
Normal file
35
Source/Helpers/LBTLogger.cs
Normal file
|
@ -0,0 +1,35 @@
|
|||
using Verse;
|
||||
|
||||
namespace LewdBiotech.Helpers
|
||||
{
|
||||
public static class LBTLogger
|
||||
{
|
||||
public static void Message(string message)
|
||||
{
|
||||
Log.Message("[INFO][LewdBT] - " + message);
|
||||
}
|
||||
|
||||
public static void Warning(string message)
|
||||
{
|
||||
Log.Message("[WARN][LewdBT] - " + message);
|
||||
}
|
||||
|
||||
public static void Error(string message)
|
||||
{
|
||||
Log.Message("[ ERR][LewdBT] - " + message);
|
||||
}
|
||||
|
||||
public static void MessageGroupHead(string message)
|
||||
{
|
||||
Log.Message("[INFO][LewdBT]╦═ " + message);
|
||||
}
|
||||
public static void MessageGroupBody(string message)
|
||||
{
|
||||
Log.Message("[INFO][LewdBT]╠═══ " + message);
|
||||
}
|
||||
public static void MessageGroupFoot(string message)
|
||||
{
|
||||
Log.Message("[INFO][LewdBT]╚═══ " + message);
|
||||
}
|
||||
}
|
||||
}
|
28
Source/Helpers/LaborState.cs
Normal file
28
Source/Helpers/LaborState.cs
Normal file
|
@ -0,0 +1,28 @@
|
|||
using System;
|
||||
using RimWorld;
|
||||
using Verse;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LewdBiotech
|
||||
{
|
||||
class LaborState
|
||||
{
|
||||
public Pawn pawn;
|
||||
public int birthTotal = 0;
|
||||
public int birthCount = 1;
|
||||
public bool hasOvaryAgitator = false;
|
||||
public bool hasBioscaffold = false;
|
||||
|
||||
public LaborState(Pawn pawn, int birthTotal)
|
||||
{
|
||||
this.pawn = pawn;
|
||||
this.birthTotal = birthTotal;
|
||||
this.birthCount = 0;
|
||||
this.hasOvaryAgitator = pawn.health.hediffSet.HasHediff(HediffDef.Named("OvaryAgitator"));
|
||||
this.hasBioscaffold = pawn.health.hediffSet.HasHediff(HediffDef.Named("OvaryAgitator"));
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue