Esempio n. 1
0
        public override void Entry(IModHelper helper)
        {
            instance = this;
            _helper  = helper;
            _monitor = Monitor;
            ModId    = _helper.ModRegistry.ModID;

            _helper.Events.GameLoop.UpdateTicked += LoadCritters;
            BugApi.init(_helper);

            new TileAction("disturbBug", DisturbBug).register();
            ButtonClick.UseToolButton.onClick(onDigBug);

            _helper.Events.GameLoop.DayStarted += createCritterLocationList;
            //_helper.Events.World.LocationListChanged += updateCritterLocationsList;
            _helper.Events.Player.Warped           += onLocationChanged;
            _helper.Events.World.DebrisListChanged += catchBugDebris;
            DataInjector = new DataInjector(_helper);
            Game1.ResetToolSpriteSheet();
            Skills.RegisterSkill(skill = new BugCatchingSkill());
        }
Esempio n. 2
0
 public GenericProfession(BugCatchingSkill skill, string itsId)
     : base(skill, itsId)
 {
 }