Add events to allow mods to control created characters
Client-Side Events
beforeCreateCharacter
Fired before the client tells the server to create a character
{
name: '(string) The character name',
class: '(string) The spirit name',
skinId: '(string) The skin id',
prophecies: '(array of strings) An array of selected prophecies'
}
Server-Side Event
beforeSaveCharacter
Fires before the server saves the new character to the DB
{
obj: '(object) the character object to save',
config: '(object) the original config that the client sent through to the createCharacter method'
}
Also done in this task
- Fixed a circular reference warning caused by the threadManager