Пример #1
0
        public BulletActionMine GetRateBullet(BulletActionMine srcInfo, float rate)
        {
            //IL_0094: Unknown result type (might be due to invalid IL or missing references)
            //IL_009a: Unknown result type (might be due to invalid IL or missing references)
            //IL_00a0: Unknown result type (might be due to invalid IL or missing references)
            //IL_00a5: Unknown result type (might be due to invalid IL or missing references)
            if (srcInfo == null)
            {
                return(this);
            }
            BulletActionMine bulletActionMine = new BulletActionMine();

            bulletActionMine.appearEffectName       = appearEffectName;
            bulletActionMine.unbrakableTime         = unbrakableTime;
            bulletActionMine.explodeBullet          = explodeBullet;
            bulletActionMine.actionType             = actionType;
            bulletActionMine.actionBullet           = actionBullet;
            bulletActionMine.isIgnoreHitEnemyMove   = AttackInfo.GetRateValue(isIgnoreHitEnemyMove, srcInfo.isIgnoreHitEnemyMove, rate);
            bulletActionMine.isIgnoreHitEnemyAttack = AttackInfo.GetRateValue(isIgnoreHitEnemyAttack, srcInfo.isIgnoreHitEnemyAttack, rate);
            bulletActionMine.actionEffectName1      = actionEffectName1;
            bulletActionMine.actionEffectName2      = actionEffectName2;
            bulletActionMine.actionEffectOffset     = AttackInfo.GetRateValue(actionEffectOffset, srcInfo.actionEffectOffset, rate);
            bulletActionMine.actionCoolTime         = actionCoolTime;
            bulletActionMine.targettingPlayerRate   = targettingPlayerRate;
            bulletActionMine.settingRadius          = AttackInfo.GetRateValue(settingRadius, srcInfo.settingRadius, rate);
            bulletActionMine.settingNum             = settingNum;
            bulletActionMine.centerConcentration    = centerConcentration;
            bulletActionMine.settingHeight          = AttackInfo.GetRateValue(settingHeight, srcInfo.settingHeight, rate);
            bulletActionMine.settingNearLimit       = AttackInfo.GetRateValue(settingNearLimit, srcInfo.settingNearLimit, rate);
            return(bulletActionMine);
        }
    public override AttackInfo GetRateAttackInfo(AttackInfo rate_info, float rate)
    {
        AttackHitInfo attackHitInfo = base.GetRateAttackInfo(rate_info, rate) as AttackHitInfo;

        if (attackHitInfo == this)
        {
            return(attackHitInfo);
        }
        AttackHitInfo attackHitInfo2 = rate_info as AttackHitInfo;

        if (attackHitInfo2 == null)
        {
            return(attackHitInfo);
        }
        attackHitInfo.atkRate                    = AttackInfo.GetRateValue(atkRate, attackHitInfo2.atkRate, rate);
        attackHitInfo.atk.normal                 = AttackInfo.GetRateValue(atk.normal, attackHitInfo2.atk.normal, rate);
        attackHitInfo.atk.fire                   = AttackInfo.GetRateValue(atk.fire, attackHitInfo2.atk.fire, rate);
        attackHitInfo.atk.water                  = AttackInfo.GetRateValue(atk.water, attackHitInfo2.atk.water, rate);
        attackHitInfo.atk.thunder                = AttackInfo.GetRateValue(atk.thunder, attackHitInfo2.atk.thunder, rate);
        attackHitInfo.atk.soil                   = AttackInfo.GetRateValue(atk.soil, attackHitInfo2.atk.soil, rate);
        attackHitInfo.atk.light                  = AttackInfo.GetRateValue(atk.light, attackHitInfo2.atk.light, rate);
        attackHitInfo.atk.dark                   = AttackInfo.GetRateValue(atk.dark, attackHitInfo2.atk.dark, rate);
        attackHitInfo.isAtkIgnore                = isAtkIgnore;
        attackHitInfo.down                       = AttackInfo.GetRateValue(down, attackHitInfo2.down, rate);
        attackHitInfo.badStatus.paralyze         = AttackInfo.GetRateValue(badStatus.paralyze, attackHitInfo2.badStatus.paralyze, rate);
        attackHitInfo.badStatus.poison           = AttackInfo.GetRateValue(badStatus.poison, attackHitInfo2.badStatus.poison, rate);
        attackHitInfo.badStatus.burning          = AttackInfo.GetRateValue(badStatus.burning, attackHitInfo2.badStatus.burning, rate);
        attackHitInfo.badStatus.speedDown        = AttackInfo.GetRateValue(badStatus.speedDown, attackHitInfo2.badStatus.speedDown, rate);
        attackHitInfo.badStatus.attackSpeedDown  = AttackInfo.GetRateValue(badStatus.attackSpeedDown, attackHitInfo2.badStatus.attackSpeedDown, rate);
        attackHitInfo.shakeCameraPercent         = AttackInfo.GetRateValue(shakeCameraPercent, attackHitInfo2.shakeCameraPercent, rate);
        attackHitInfo.shakeCycleTime             = AttackInfo.GetRateValue(shakeCycleTime, attackHitInfo2.shakeCycleTime, rate);
        attackHitInfo.enableIdentityCheck        = enableIdentityCheck;
        attackHitInfo.hitEffectName              = ((!(rate < 1f)) ? attackHitInfo2.hitEffectName : hitEffectName);
        attackHitInfo.playCommonHitSe            = ((!(rate < 1f)) ? attackHitInfo2.playCommonHitSe : playCommonHitSe);
        attackHitInfo.hitSEID                    = ((!(rate < 1f)) ? attackHitInfo2.hitSEID : hitSEID);
        attackHitInfo.playCommonHitEffect        = ((!(rate < 1f)) ? attackHitInfo2.playCommonHitEffect : playCommonHitEffect);
        attackHitInfo.remainEffectName           = ((!(rate < 1f)) ? attackHitInfo2.remainEffectName : remainEffectName);
        attackHitInfo.damageNumAddGroup          = damageNumAddGroup;
        attackHitInfo.dontIncreaseGauge          = dontIncreaseGauge;
        attackHitInfo.attackType                 = ((!(rate < 1f)) ? attackHitInfo2.attackType : attackType);
        attackHitInfo.spAttackType               = ((!(rate < 1f)) ? attackHitInfo2.spAttackType : spAttackType);
        attackHitInfo.toPlayer.reactionType      = ((!(rate < 1f)) ? attackHitInfo2.toPlayer.reactionType : toPlayer.reactionType);
        attackHitInfo.toPlayer.reactionLoopTime  = AttackInfo.GetRateValue(toPlayer.reactionLoopTime, attackHitInfo2.toPlayer.reactionLoopTime, rate);
        attackHitInfo.toPlayer.reactionBlowForce = AttackInfo.GetRateValue(toPlayer.reactionBlowForce, attackHitInfo2.toPlayer.reactionBlowForce, rate);
        attackHitInfo.toPlayer.reactionBlowAngle = AttackInfo.GetRateValue(toPlayer.reactionBlowAngle, attackHitInfo2.toPlayer.reactionBlowAngle, rate);
        attackHitInfo.toEnemy.reactionType       = ((!(rate < 1f)) ? attackHitInfo2.toEnemy.reactionType : toEnemy.reactionType);
        attackHitInfo.toEnemy.hitStopTime        = AttackInfo.GetRateValue(toEnemy.hitStopTime, attackHitInfo2.toEnemy.hitStopTime, rate);
        attackHitInfo.toEnemy.hitTypeName        = ((!(rate < 1f)) ? attackHitInfo2.toEnemy.hitTypeName : toEnemy.hitTypeName);
        attackHitInfo.toEnemy.isSpecialAttack    = ((!(rate < 1f)) ? attackHitInfo2.toEnemy.isSpecialAttack : toEnemy.isSpecialAttack);
        return(attackHitInfo);
    }
Пример #3
0
        public BulletTracking GetRateBullet(BulletTracking srcInfo, float rate)
        {
            if (srcInfo == null)
            {
                return(this);
            }
            BulletTracking bulletTracking = new BulletTracking();

            bulletTracking.moveThreshold  = AttackInfo.GetRateValue(moveThreshold, srcInfo.moveThreshold, rate);
            bulletTracking.attackInterval = AttackInfo.GetRateValue(attackInterval, srcInfo.attackInterval, rate);
            bulletTracking.emitInterval   = AttackInfo.GetRateValue(emitInterval, srcInfo.emitInterval, rate);
            bulletTracking.emissionNum    = AttackInfo.GetRateValue(emissionNum, srcInfo.emissionNum, rate);
            bulletTracking.emissionBullet = emissionBullet;
            return(bulletTracking);
        }
Пример #4
0
        public BulletDig GetRateBullet(BulletDig srcInfo, float rate)
        {
            if (srcInfo == null)
            {
                return(this);
            }
            BulletDig bulletDig = new BulletDig();

            bulletDig.floatingHeight = AttackInfo.GetRateValue(floatingHeight, srcInfo.floatingHeight, rate);
            bulletDig.attackDelay    = AttackInfo.GetRateValue(attackDelay, srcInfo.attackDelay, rate);
            bulletDig.attackRange    = AttackInfo.GetRateValue(attackRange, srcInfo.attackRange, rate);
            bulletDig.lookAtAngle    = AttackInfo.GetRateValue(lookAtAngle, srcInfo.lookAtAngle, rate);
            bulletDig.flyOutBullet   = flyOutBullet;
            return(bulletDig);
        }
Пример #5
0
        public BulletBase GetRateBullet(BulletBase rate_info, float rate)
        {
            //IL_0084: Unknown result type (might be due to invalid IL or missing references)
            //IL_008a: Unknown result type (might be due to invalid IL or missing references)
            //IL_0090: Unknown result type (might be due to invalid IL or missing references)
            //IL_0095: Unknown result type (might be due to invalid IL or missing references)
            //IL_009c: Unknown result type (might be due to invalid IL or missing references)
            //IL_00a2: Unknown result type (might be due to invalid IL or missing references)
            //IL_00a8: Unknown result type (might be due to invalid IL or missing references)
            //IL_00ad: Unknown result type (might be due to invalid IL or missing references)
            //IL_00b4: Unknown result type (might be due to invalid IL or missing references)
            //IL_00ba: Unknown result type (might be due to invalid IL or missing references)
            //IL_00c0: Unknown result type (might be due to invalid IL or missing references)
            //IL_00c5: Unknown result type (might be due to invalid IL or missing references)
            //IL_00e4: Unknown result type (might be due to invalid IL or missing references)
            //IL_00ea: Unknown result type (might be due to invalid IL or missing references)
            //IL_00f0: Unknown result type (might be due to invalid IL or missing references)
            //IL_00f5: Unknown result type (might be due to invalid IL or missing references)
            //IL_00fc: Unknown result type (might be due to invalid IL or missing references)
            //IL_0102: Unknown result type (might be due to invalid IL or missing references)
            //IL_0108: Unknown result type (might be due to invalid IL or missing references)
            //IL_010d: Unknown result type (might be due to invalid IL or missing references)
            if (rate_info == null)
            {
                return(this);
            }
            BulletBase bulletBase = new BulletBase();

            bulletBase.effectName             = ((!(rate < 1f)) ? rate_info.effectName : effectName);
            bulletBase.useWeaponElementEffect = ((!(rate < 1f)) ? rate_info.useWeaponElementEffect : useWeaponElementEffect);
            bulletBase.speed                  = AttackInfo.GetRateValue(speed, rate_info.speed, rate);
            bulletBase.radius                 = AttackInfo.GetRateValue(radius, rate_info.radius, rate);
            bulletBase.dispOffset             = AttackInfo.GetRateValue(dispOffset, rate_info.dispOffset, rate);
            bulletBase.dispRotation           = AttackInfo.GetRateValue(dispRotation, rate_info.dispRotation, rate);
            bulletBase.hitOffset              = AttackInfo.GetRateValue(hitOffset, rate_info.hitOffset, rate);
            bulletBase.appearTime             = AttackInfo.GetRateValue(appearTime, rate_info.appearTime, rate);
            bulletBase.timeStartScale         = AttackInfo.GetRateValue(timeStartScale, rate_info.timeStartScale, rate);
            bulletBase.timeEndScale           = AttackInfo.GetRateValue(timeEndScale, rate_info.timeEndScale, rate);
            bulletBase.isCharacterHitDelete   = AttackInfo.GetRateValue(isCharacterHitDelete, rate_info.isCharacterHitDelete, rate);
            bulletBase.isObjectHitDelete      = AttackInfo.GetRateValue(isObjectHitDelete, rate_info.isObjectHitDelete, rate);
            bulletBase.isLandHit              = AttackInfo.GetRateValue(isLandHit, rate_info.isLandHit, rate);
            bulletBase.landHiteffectName      = ((!(rate < 1f)) ? rate_info.landHiteffectName : landHiteffectName);
            bulletBase.isBulletTakeoverTarget = AttackInfo.GetRateValue(isBulletTakeoverTarget, rate_info.isBulletTakeoverTarget, rate);
            bulletBase.isEmitGround           = AttackInfo.GetRateValue(isEmitGround, rate_info.isEmitGround, rate);
            bulletBase.capsuleHeight          = AttackInfo.GetRateValue(capsuleHeight, rate_info.capsuleHeight, rate);
            bulletBase.capsuleAxis            = ((!(rate < 1f)) ? rate_info.capsuleAxis : capsuleAxis);
            return(bulletBase);
        }
Пример #6
0
        public BulletUndead GetRateBullet(BulletUndead srcInfo, float rate)
        {
            if (srcInfo == null)
            {
                return(this);
            }
            BulletUndead bulletUndead = new BulletUndead();

            bulletUndead.floatingHeight = AttackInfo.GetRateValue(floatingHeight, srcInfo.floatingHeight, rate);
            bulletUndead.floatingCoef   = AttackInfo.GetRateValue(floatingCoef, srcInfo.floatingCoef, rate);
            bulletUndead.attackInterval = AttackInfo.GetRateValue(attackInterval, srcInfo.attackInterval, rate);
            bulletUndead.attackRange    = AttackInfo.GetRateValue(attackRange, srcInfo.attackRange, rate);
            bulletUndead.lookAtAngle    = AttackInfo.GetRateValue(lookAtAngle, srcInfo.lookAtAngle, rate);
            bulletUndead.closeBullet    = closeBullet;
            return(bulletUndead);
        }
Пример #7
0
        public BulletMine GetRateBullet(BulletMine srcInfo, float rate)
        {
            if (srcInfo == null)
            {
                return(this);
            }
            BulletMine bulletMine = new BulletMine();

            bulletMine.floatingHeight         = AttackInfo.GetRateValue(floatingHeight, srcInfo.floatingHeight, rate);
            bulletMine.floatingRate           = AttackInfo.GetRateValue(floatingRate, srcInfo.floatingRate, rate);
            bulletMine.slowDownRate           = AttackInfo.GetRateValue(slowDownRate, srcInfo.slowDownRate, rate);
            bulletMine.explodeBullet          = explodeBullet;
            bulletMine.isIgnoreHitEnemyMove   = AttackInfo.GetRateValue(isIgnoreHitEnemyMove, srcInfo.isIgnoreHitEnemyMove, rate);
            bulletMine.isIgnoreHitEnemyAttack = AttackInfo.GetRateValue(isIgnoreHitEnemyAttack, srcInfo.isIgnoreHitEnemyAttack, rate);
            return(bulletMine);
        }
Пример #8
0
        public BulletHoming GetRateBullet(BulletHoming rate_info, float rate)
        {
            if (rate_info == null)
            {
                return(this);
            }
            BulletHoming bulletHoming = new BulletHoming();

            bulletHoming.limitAngel           = AttackInfo.GetRateValue(limitAngel, rate_info.limitAngel, rate);
            bulletHoming.limitChangeStartTime = AttackInfo.GetRateValue(limitChangeStartTime, rate_info.limitChangeStartTime, rate);
            bulletHoming.limitChangeAngel     = AttackInfo.GetRateValue(limitChangeAngel, rate_info.limitChangeAngel, rate);
            bulletHoming.hightLock            = AttackInfo.GetRateValue(hightLock, rate_info.hightLock, rate);
            bulletHoming.isTakeOverTarget     = AttackInfo.GetRateValue(isTakeOverTarget, rate_info.isTakeOverTarget, rate);
            bulletHoming.acceleration         = AttackInfo.GetRateValue(acceleration, rate_info.acceleration, rate);
            return(bulletHoming);
        }
Пример #9
0
        public BulletCurve GetRateBullet(BulletCurve rate_info, float rate)
        {
            //IL_004a: Unknown result type (might be due to invalid IL or missing references)
            //IL_0050: Unknown result type (might be due to invalid IL or missing references)
            //IL_0056: Unknown result type (might be due to invalid IL or missing references)
            //IL_005b: Unknown result type (might be due to invalid IL or missing references)
            if (rate_info == null)
            {
                return(this);
            }
            BulletCurve bulletCurve = new BulletCurve();

            bulletCurve.curveAngle = AttackInfo.GetRateValue(curveAngle, rate_info.curveAngle, rate);
            bulletCurve.curveAnim  = ((!(rate < 1f)) ? rate_info.curveAnim : curveAnim);
            bulletCurve.curveAxis  = AttackInfo.GetRateValue(curveAxis, rate_info.curveAxis, rate);
            bulletCurve.loopTime   = AttackInfo.GetRateValue(loopTime, rate_info.loopTime, rate);
            bulletCurve.timeAnim   = ((!(rate < 1f)) ? rate_info.timeAnim : timeAnim);
            return(bulletCurve);
        }
Пример #10
0
        public BulletFall GetRateBullet(BulletFall rate_info, float rate)
        {
            if (rate_info == null)
            {
                return(this);
            }
            BulletFall bulletFall = new BulletFall();

            if (gravityStartTime < 0f || rate_info.gravityStartTime < 0f)
            {
                bulletFall.gravityStartTime = ((!(rate < 1f)) ? rate_info.gravityStartTime : gravityStartTime);
            }
            else
            {
                bulletFall.gravityStartTime = AttackInfo.GetRateValue(gravityStartTime, rate_info.gravityStartTime, rate);
            }
            bulletFall.gravityRate = AttackInfo.GetRateValue(gravityRate, rate_info.gravityRate, rate);
            return(bulletFall);
        }
Пример #11
0
        public BulletLaser GetRateBullet(BulletLaser srcInfo, float rate)
        {
            //IL_0010: Unknown result type (might be due to invalid IL or missing references)
            //IL_0016: Unknown result type (might be due to invalid IL or missing references)
            //IL_001c: Unknown result type (might be due to invalid IL or missing references)
            //IL_0021: Unknown result type (might be due to invalid IL or missing references)
            if (srcInfo == null)
            {
                return(this);
            }
            BulletLaser bulletLaser = new BulletLaser();

            bulletLaser.offsetPosition     = AttackInfo.GetRateValue(offsetPosition, srcInfo.offsetPosition, rate);
            bulletLaser.capsuleHeight      = AttackInfo.GetRateValue(capsuleHeight, srcInfo.capsuleHeight, rate);
            bulletLaser.initAngleSpeed     = AttackInfo.GetRateValue(initAngleSpeed, srcInfo.initAngleSpeed, rate);
            bulletLaser.addAngleSpeed      = AttackInfo.GetRateValue(addAngleSpeed, srcInfo.addAngleSpeed, rate);
            bulletLaser.limitAngleSpeed    = AttackInfo.GetRateValue(limitAngleSpeed, srcInfo.limitAngleSpeed, rate);
            bulletLaser.isLinkPositionOnly = AttackInfo.GetRateValue(isLinkPositionOnly, srcInfo.isLinkPositionOnly, rate);
            return(bulletLaser);
        }
    public override AttackInfo GetRateAttackInfo(AttackInfo rate_info, float rate)
    {
        AttackContinuationInfo attackContinuationInfo = base.GetRateAttackInfo(rate_info, rate) as AttackContinuationInfo;

        if (attackContinuationInfo == this)
        {
            return(attackContinuationInfo);
        }
        AttackContinuationInfo attackContinuationInfo2 = rate_info as AttackContinuationInfo;

        if (attackContinuationInfo2 == null)
        {
            return(attackContinuationInfo);
        }
        attackContinuationInfo.type = type;
        if (attackContinuationInfo.type != attackContinuationInfo2.type)
        {
            return(attackContinuationInfo);
        }
        attackContinuationInfo.inhale.speed = AttackInfo.GetRateValue(inhale.speed, attackContinuationInfo2.inhale.speed, rate);
        return(attackContinuationInfo);
    }
Пример #13
0
        public BulletFunnel GetRateBullet(BulletFunnel srcInfo, float rate)
        {
            //IL_0010: Unknown result type (might be due to invalid IL or missing references)
            //IL_0016: Unknown result type (might be due to invalid IL or missing references)
            //IL_001c: Unknown result type (might be due to invalid IL or missing references)
            //IL_0021: Unknown result type (might be due to invalid IL or missing references)
            if (srcInfo == null)
            {
                return(this);
            }
            BulletFunnel bulletFunnel = new BulletFunnel();

            bulletFunnel.offsetPosition = AttackInfo.GetRateValue(offsetPosition, srcInfo.offsetPosition, rate);
            bulletFunnel.floatingHeight = AttackInfo.GetRateValue(floatingHeight, srcInfo.floatingHeight, rate);
            bulletFunnel.attackInterval = AttackInfo.GetRateValue(attackInterval, srcInfo.attackInterval, rate);
            bulletFunnel.attackRange    = AttackInfo.GetRateValue(attackRange, srcInfo.attackRange, rate);
            bulletFunnel.rotateAngle    = AttackInfo.GetRateValue(rotateAngle, srcInfo.rotateAngle, rate);
            bulletFunnel.lookAtAngle    = AttackInfo.GetRateValue(lookAtAngle, srcInfo.lookAtAngle, rate);
            bulletFunnel.bitBullet      = bitBullet;
            bulletFunnel.searchRange    = AttackInfo.GetRateValue(searchRange, srcInfo.searchRange, rate);
            return(bulletFunnel);
        }
Пример #14
0
        public BulletHealingHoming CreateParamMergedInstance(BulletHealingHoming _target, float _ratio)
        {
            if (_target == null)
            {
                return(this);
            }
            BulletHealingHoming bulletHealingHoming = new BulletHealingHoming();

            bulletHealingHoming.limitAngel                   = AttackInfo.GetRateValue(limitAngel, _target.limitAngel, _ratio);
            bulletHealingHoming.limitChangeStartTime         = AttackInfo.GetRateValue(limitChangeStartTime, _target.limitChangeStartTime, _ratio);
            bulletHealingHoming.limitChangeAngel             = AttackInfo.GetRateValue(limitChangeAngel, _target.limitChangeAngel, _ratio);
            bulletHealingHoming.hightLock                    = AttackInfo.GetRateValue(hightLock, _target.hightLock, _ratio);
            bulletHealingHoming.isTakeOverTarget             = AttackInfo.GetRateValue(isTakeOverTarget, _target.isTakeOverTarget, _ratio);
            bulletHealingHoming.acceleration                 = AttackInfo.GetRateValue(acceleration, _target.acceleration, _ratio);
            bulletHealingHoming.isIgnoreColliderExceptTarget = AttackInfo.GetRateValue(isIgnoreColliderExceptTarget, _target.isIgnoreColliderExceptTarget, _ratio);
            bulletHealingHoming.defaultGenerateLayer         = ((!(_ratio <= 0.5f)) ? _target.defaultGenerateLayer : defaultGenerateLayer);
            int i = 0;

            for (int count = buffIds.Count; i < count; i++)
            {
                bulletHealingHoming.buffIds.Add(AttackInfo.GetRateValue(buffIds[i], _target.buffIds[i], _ratio));
            }
            return(bulletHealingHoming);
        }