コード例 #1
0
ファイル: AddMenuItem.cs プロジェクト: yakoder/NRaas
        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);
        }
コード例 #2
0
ファイル: AddMenuItem.cs プロジェクト: yakoder/NRaas
        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);
        }