//1. FIXING "MORE THAN LIKE YET NO LOVE BUG" public static void FixInfluenceCap(SLOrcacleState self) { //TURNS OUT LERPMAP FOR THE OPINION-ENUMS IS WRONG //Lets cap it at the last enum (which is 3, not 4) if ((int)self.GetOpinion == 4) { self.likesPlayer = 0.95f; //self.GetOpinion = 3 } }
private void SLOrcacleState_FromString(On.SLOrcacleState.orig_FromString orig, SLOrcacleState self, string s) { orig.Invoke(self, s); FixInfluenceCap(self); }
private static void SLOrcacleState_InfluenceLike(On.SLOrcacleState.orig_InfluenceLike orig, SLOrcacleState self, float influence) { orig.Invoke(self, influence); FixInfluenceCap(self); }