예제 #1
0
파일: Plugin.cs 프로젝트: babyboucher/PFE
        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;
        }
예제 #2
0
파일: Plugin.cs 프로젝트: babyboucher/PFE
 public EventHandlers(EFEs drops)
 {
     allowedItems = drops;
 }