예제 #1
0
 private static void Player_AddFood(On.Player.orig_AddFood orig, Player self, int add)
 {
     orig.Invoke(self, add);
     CheckPipsOverMax(self);
     KarmaAppetite.FoodToStats(self.slugcatStats, self.playerState.foodInStomach, self.Karma >= 9);
     KarmaAppetite.RefreshLight(self);
 }
 public static void RefreshAllPlayers(StoryGameSession session)
 {
     foreach (AbstractCreature ac in session.Players)
     {
         if (ac.realizedCreature != null && ac.realizedCreature is Player)
         {
             Player player = ac.realizedCreature as Player;
             KarmaToFood(player.slugcatStats, player.Karma); //does not refresh the FoodMeter
             FoodToStats(player.slugcatStats, player.CurrentFood, player.Karma >= 9);
             KarmaAppetite.RefreshLight(player);
         }
     }
 }
예제 #3
0
    //NO LIGHT FROM NEURONS

    private static void OracleSwarmer_BitByPlayer(On.OracleSwarmer.orig_BitByPlayer orig, OracleSwarmer self, Creature.Grasp grasp, bool eu)
    {
        orig.Invoke(self, grasp, eu);
        KarmaAppetite.RefreshLight(grasp.grabber as Player);
    }