Example #1
0
        public override void OnEnable()
        {
            if (!Config.GetBool("efe_enable", true))             // Enable config
            {
                return;
            }

            // We make our own dictionary stuff because the .GetStringDictionary of 'config' me and joker don't know how it works lol.
            string[] drops = Config.GetString("efe_setup", "Scp173:1,Scp0492:1").Split(',');

            EFEs cDrops = new EFEs();

            foreach (string drop in drops)
            {
                string[] d = drop.Split(':');                 // d[0] = item, d[1] = amount
                cDrops.AddToList(d[0], int.Parse(d[1]));
            }

            EventHandlers            = new EventHandlers(cDrops);
            Events.PlayerDeathEvent += EventHandlers.OnPlayerDeath;
        }
Example #2
0
 public EventHandlers(EFEs drops)
 {
     allowedItems = drops;
 }