Beispiel #1
0
 public override void OnTimeout(BuffManager bm, BuffInstance bi, Buff.OnTimeoutReasons reason)
 {
     if (bm.Actor != null)
     {
         DrunkInteractions.DoDrunkInteraction(bm.Actor);
     }
 }
Beispiel #2
0
        protected static ListenerAction OrderedBarFood(Event e)
        {
            //Push the drunk interaction on the Sim
            Sim sim = e.Actor as Sim;

            if (sim != null)
            {
                DrunkInteractions.PayAndConsequencs(sim, BarFoodPrice, false, false);
            }
            return(ListenerAction.Keep);
        }
Beispiel #3
0
        protected static ListenerAction HadNectar(Event e)
        {
            //Push the drunk interaction on the Sim
            Sim sim = e.Actor as Sim;

            if (sim != null)
            {
                DrunkInteractions.PayAndConsequencs(sim, DrinkPrice, true, true);
            }

            return(ListenerAction.Keep);
        }