public override void CompTickRare() { // Log.Message("CompTick"); if (!this.randomCategoryResolved) { if (SProps.Category == SoulItemCategories.Random) { this.itemCategory = (SoulItemCategories)Rand.RangeInclusive(0, 2); } this.randomCategoryResolved = true; } this.CheckForOwner(); }
public float amount(SoulItemCategories cat, float res) { if (cprops.Category == SoulItemCategories.Corruption) { return(-cprops.GainRate / 1333 / res); } else if (cprops.Category == SoulItemCategories.Redemption) { return(cprops.GainRate / 1333 * res); } else { return(0); } }