public static void ExpOrbPickup(int Value) { PickupMessage(Value.ToString() + " experience"); if (Randomizer.ZeroXP) { return; } Characters.Sein.Level.GainExperience(RandomizerBonus.ExpWithBonuses(Value, true)); }
// Token: 0x06003325 RID: 13093 public void OnCollectExpOrbPickup(ExpOrbPickup expOrbPickup) { int num = RandomizerBonus.ExpWithBonuses(expOrbPickup.Amount, false); if (expOrbPickup.MessageType == ExpOrbPickup.ExpOrbMessageType.None) { expOrbPickup.Collected(); if (Randomizer.IgnoreEnemyExp) { return; } RandomizerBonus.ExpWithBonuses(expOrbPickup.Amount, true); this.Sein.Level.GainExperience(num); if (this.m_expText && this.m_expText.gameObject.activeInHierarchy) { this.m_expText.Amount += num; } else { this.m_expText = Orbs.OrbDisplayText.Create(Characters.Sein.Transform, Vector3.up, num); } UI.SeinUI.ShakeExperienceBar(); if (GameWorld.Instance.CurrentArea != null) { GameWorld.Instance.CurrentArea.DirtyCompletionAmount(); } return; } else { int repeatable = Randomizer.RepeatableCheck(expOrbPickup.Bounds.center); if (repeatable != 1) { Randomizer.getPickup(expOrbPickup.Bounds.center); } if (repeatable > 0) { return; } if (GameWorld.Instance.CurrentArea != null) { GameWorld.Instance.CurrentArea.DirtyCompletionAmount(); } expOrbPickup.Collected(); return; } }