import { SeasonalEventService } from "https://deno.land/x/sptaki@1.2.0/services/SeasonalEventService.d.ts";
Constructors
Properties
All events active at this point in time
Methods
Read in data from seasonalEvents.json and add found equipment items to bots
Add santa to maps
Add lootble items from backpack into patrol.ITEMS_TO_DROP difficulty property
Change trader icons to be more event themed (Halloween only so far)
Set Khorovod(dancing tree) chance to 100% on all maps that support it
Get a dictionary of gear changes to apply to bots for a specific event e.g. Christmas/Halloween
Send gift to player if they'e not already received it
Make adjusted to server code based on the name of the event passed in
Is christmas event active
Handle seasonal events
Get the underlying bot type for an event bot e.g. peacefullZryachiyEvent
will return bossZryachiy
Get an array of christmas items found in bots inventories as loot
Get the dates each seasonal event starts and ends at
Get an array of halloween items found in bots inventories as loot
Get an array of seasonal items that should not appear e.g. if halloween is active, only return christmas items or, if halloween and christmas are inactive, return both sets of items
is halloween event active
Is detection of seasonal events enabled (halloween / christmas)
Look up quest in configs/quest.json
Check if item id exists in christmas or halloween event arrays
Iterate through bots inventory and loot to find and remove christmas items (as defined in SeasonalEventService)
Is a seasonal event currently active