forked from Niwatori401/RimRound
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNotes.txt
92 lines (57 loc) · 2.74 KB
/
Notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
graphicPaths = alienProps.alienRace.graphicPaths.GetCurrentGraphicPath(alien.ageTracker.CurLifeStage);
CachedData.headGraphicPath(alien.story) = alienComp.crownType.NullOrEmpty() ?
apg.RandomAlienHead(graphicPaths.head, alien) :
AlienPartGenerator.GetAlienHead(graphicPaths.head, apg.useGenderedHeads ? alien.gender.ToString() : "", alienComp.crownType);
__instance.headGraphic = alien.health.hediffSet.HasHead && !alien.story.HeadGraphicPath.NullOrEmpty() ?
GraphicDatabase.Get<Graphic_Multi>(alien.story.HeadGraphicPath,
ContentFinder<Texture2D>.Get(alien.story.HeadGraphicPath + "_northm", reportFailure: false) == null ?
graphicPaths.skinShader?.Shader ?? ShaderDatabase.Cutout :
ShaderDatabase.CutoutComplex, Vector2.one, alien.story.SkinColor,
apg.SkinColor(alien, first: false)) :
null;
AlienPartGenerator.AlienComp alienComp = __0.GetComp<AlienPartGenerator.AlienComp>();
//alienComp.crownType = "";
Log.Message("Im a string");
//string eggy = CachedData.headGraphicPath.Invoke(__0.story);
//Log.Message($"My head path was: {eggy}");
if (alienComp.crownType == "Average_Innocent")
{
alienComp.crownType = "Average_Guilty";
}
else
{
alienComp.crownType = "Average_Innocent";
}
//Allows for the pawn to be rerendered after the body change
Values.RedrawPawn(__0);
//float value = 0;
//AlienPartGenerator.AlienComp alienComp = pawn.GetComp<AlienPartGenerator.AlienComp>();
//Transpiler format
public static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions, ILGenerator generator)
{
List<CodeInstruction> codeInstructions = new List<CodeInstruction>(instructions);
List<CodeInstruction> newInstructions = new List<CodeInstruction>();
int startJndex = -1;
int endJndex = -1;
if (startJndex != -1 && endJndex != -1)
{
codeInstructions.InsertRange(startJndex, newInstructions);
}
return codeInstructions;
}
DaysWorthOfFood
Caravan_NeedsTracker
if (Utilities.ModCompatibilityUtility.GetPropertyInfo("RimJobWorld - Milkable Colonists", "CompMilkableHuman", "ResourceAmount") is PropertyInfo propInfo)
{
new PatchCollection
propInfo.GetGetMethod(true);
}
ModPatchInfo
{
ModName
TypeName
MethodName
MethodType
}
TryPatch(Harmony harmonyinstance, ModPatchInfo, PatchCollection);