def rejectInteraction(self): DistributedHolidayObject.rejectInteraction(self) holiday = None if base.cr.newsManager.getHoliday(HolidayGlobals.FOUNDERSFEAST): holiday = HolidayGlobals.FOUNDERSFEAST elif base.cr.newsManager.getHoliday(HolidayGlobals.MARDIGRAS): holiday = HolidayGlobals.MARDIGRAS holidayMsgs = PLocalizer.holidayMessages.get(holiday) if holidayMsgs: localAvatar.guiMgr.createWarning(holidayMsgs.get(HolidayGlobals.MSG_BONFIRE_STARTED))
def rejectInteraction(self): DistributedHolidayObject.rejectInteraction(self) holiday = None if base.cr.newsManager.getHoliday(HolidayGlobals.FOUNDERSFEAST): holiday = HolidayGlobals.FOUNDERSFEAST elif base.cr.newsManager.getHoliday(HolidayGlobals.MARDIGRAS): holiday = HolidayGlobals.MARDIGRAS holidayMsgs = PLocalizer.holidayMessages.get(holiday) if holidayMsgs: localAvatar.guiMgr.createWarning( holidayMsgs.get(HolidayGlobals.MSG_BONFIRE_STARTED))
def rejectInteraction(self): DistributedHolidayObject.rejectInteraction(self) localAvatar.guiMgr.createWarning(PLocalizer.NoPigRoasting)