Example #1
0
        private void LightArrow()
        {
            GameStats.LitArrow.Invoke();
            this._lightingArrow = false;
            this.SetActiveArrowBonus(WeaponStatUpgrade.Types.BurningAmmo);
            this._activeFireArrowGO                    = UnityEngine.Object.Instantiate <MasterFireSpread>(this._fireArrowPrefab);
            this._activeFireArrowGO.enabled            = false;
            this._activeFireArrowGO.transform.parent   = this._ammoAnimated.transform;
            this._activeFireArrowGO.transform.position = this._ammoAnimationRenderer.transform.position;
            this._activeFireArrowGO.transform.rotation = this._ammoAnimationRenderer.transform.rotation;
            this._activeFireArrowGO.owner              = LocalPlayer.Transform;
            WeaponBonus componentInChildren = this._activeFireArrowGO.GetComponentInChildren <WeaponBonus>();

            if (componentInChildren)
            {
                componentInChildren._owner  = LocalPlayer.Transform;
                componentInChildren.enabled = true;
            }
            LocalPlayer.Inventory.IsWeaponBurning        = true;
            LocalPlayer.ScriptSetup.targetInfo.arrowFire = true;
            LighterControler.HasLightableItem            = (this.CurrentArrowItemView.ActiveBonus == WeaponStatUpgrade.Types.BurningAmmo);
        }
Example #2
0
 public string DisplayString()
 {
     return string.Format("Divine Bond (Weapon {0}, {1}/day)", WeaponBonus.ToModifierString(), UsesPerDay);
 }