Ejemplo n.º 1
0
        ////////////////

        /*public override void SetStats(
         *                      ref float damageMult,
         *                      ref float knockbackMult,
         *                      ref float useTimeMult,
         *                      ref float scaleMult,
         *                      ref float projectileSpeed,
         *                      ref float manaMult,
         *                      ref int critBonus ) {
         *      var config = RuinedItemsConfig.Instance;
         *      if( config.Get<bool>( nameof(config.RuinedItemsLockedOnly) ) ) {
         *              return;
         *      }
         *
         *      damageMult *= config.Get<float>( nameof(config.RuinedDamageScale) );
         *      knockbackMult *= config.Get<float>( nameof(config.RuinedKnockbackScale) );
         *      useTimeMult *= config.Get<float>( nameof(config.RuinedUseTimeScale) );
         *      scaleMult *= config.Get<float>( nameof(config.RuinedSizeScale) );
         *      projectileSpeed *= config.Get<float>( nameof(config.RuinedProjectileVelocityScale) );
         *      manaMult *= config.Get<float>( nameof(config.RuinedManaUseScale) );
         *      critBonus = (int)((float)critBonus * config.Get<float>( nameof(config.RuinedCritBonus) ) );
         * }*/

        public override void Apply(Item item)
        {
            RuinedPrefix.AddRuinedStats(item);
        }
Ejemplo n.º 2
0
 public override bool CanRoll(Item item)
 {
     return(RuinedPrefix.IsItemRuinable(item));
 }