invasion: Telemarketer Mega-Invasion, stop mega invasions on a certain date to prevent having to push another update

This commit is contained in:
Joey Z 2014-08-17 00:49:20 -04:00
parent e7dfdd881c
commit edc9cd26a4
4 changed files with 14 additions and 10 deletions

View file

@ -75,3 +75,5 @@ force-player-understandable #t
# Holidays and Events
force-holiday-decorations 6
want-arg-manager #f
want-mega-invasions #t
mega-invasion-cog-type tm

View file

@ -9,6 +9,7 @@ audio-library-name p3openal_audio
sync-video #f
want-dev #f
preload-avatars #t
want-keep-alive #f
texture-anisotropic-degree 16
language LANGUAGE_HERE
@ -61,14 +62,13 @@ want-gardening #f
want-gifting #f
# This is a temporary 'fix' for DistributedSmoothNodes... probably not the permanent solution to our problem, but it works for now.
smooth-lag 0.4
want-keep-alive #f
# Chat Settings
force-avatar-understandable #t
force-player-understandable #t
# Holidays and Events
force-holiday-decorations 6
want-arg-manager #f
# Chat
force-avatar-understandable #t
force-player-understandable #t

View file

@ -5,6 +5,7 @@
# Server settings
want-dev #f
want-cheesy-expirations #t
cogsuit-hack-prevent #t
# Shared secret for CSMUD
@ -24,12 +25,12 @@ want-gifting #f
want-keep-alive #f
# Chat stuff
# Chat Settings
blacklist-sequence-url https://s3.amazonaws.com/cdn.toontownrewritten.com/misc/tsequence.dat
want-whitelist #t
want-blacklist-sequence #t
# Holidays and Events
cogsuit-hack-prevent #t
want-mega-invasions #t
mega-invasion-cog-type tm

View file

@ -3,6 +3,7 @@ from otp.ai.MagicWordGlobal import *
from direct.task import Task
from toontown.toonbase import ToontownGlobals
from random import random, randint, choice
import datetime
from direct.directnotify import DirectNotifyGlobal
# TODO: NewsManagerAI to properly announce invasions starting, invasions
@ -27,7 +28,7 @@ class SuitInvasionManagerAI:
self.numSuits = 0
self.spawnedSuits = 0
if config.GetBool('want-mega-invasions', False):
if config.GetBool('want-mega-invasions', False) and datetime.date.today() <= datetime.date(2014, 8, 18): # TODO - config for this
# Mega invasion configuration.
self.randomInvasionProbability = config.GetFloat('mega-invasion-probability', 0.65)
self.megaInvasionCog = config.GetString('mega-invasion-cog-type', '')