|
|
@@ -11,6 +11,7 @@ public class ConductController : MonoBehaviour
|
|
|
private PlayerController playerController;
|
|
|
private ConductManager conductManager;
|
|
|
private GameManager gameManager;
|
|
|
+ private SoldierLevelRecord soldierLevelRecord;
|
|
|
|
|
|
[LabelText("品质")] public int[] rarity;
|
|
|
public int[] conversionRate;
|
|
|
@@ -18,21 +19,6 @@ public class ConductController : MonoBehaviour
|
|
|
public float[] cd;
|
|
|
[LabelText("融魂技")] public ConductSkills[] conductSkills;
|
|
|
|
|
|
- //扇形飞剑
|
|
|
- [Serializable]
|
|
|
- public struct FlyingSwords
|
|
|
- {
|
|
|
- public GameObject obj;
|
|
|
- [LabelText("角度范围")] public float angleRange;
|
|
|
- [LabelText("入射角")] public float arrivalAngle;
|
|
|
- [LabelText("数量基数")] public int nums;
|
|
|
- [LabelText("伤害")] public int damage;
|
|
|
- }
|
|
|
- private bool ShowFlyingSwords() => conductSkills.Contains(ConductSkills.FlyingSwords);
|
|
|
- [ShowIf("ShowFlyingSwords")]
|
|
|
- [LabelText("扇形飞剑参数")]
|
|
|
- public FlyingSwords flyingSwords;
|
|
|
-
|
|
|
[Serializable] public struct Giant
|
|
|
{
|
|
|
public GameObject bigGiant;
|
|
|
@@ -63,6 +49,7 @@ public class ConductController : MonoBehaviour
|
|
|
playerController = GetComponent<PlayerController>();
|
|
|
conductManager = ConductManager.instance;
|
|
|
gameManager = GameManager.instance;
|
|
|
+ soldierLevelRecord = gameManager.GetComponent<SoldierLevelRecord>();
|
|
|
}
|
|
|
|
|
|
void Start()
|
|
|
@@ -113,6 +100,11 @@ public class ConductController : MonoBehaviour
|
|
|
{
|
|
|
d.ChangeState(CharacterState.Die);
|
|
|
}
|
|
|
+ int attackDamage = playerController.demonicPrefabs[demonicId].GetComponent<Demonic>().attackController.attackMethod_summon[0].attackInfo.damage
|
|
|
+ + soldierLevelRecord.seb[demonicId].summonAttack
|
|
|
+ + gameManager.damage;
|
|
|
+ List<int> myTreasureTag = gameManager.myTreasuresTag;
|
|
|
+ float tagAdd = 1;
|
|
|
switch (conductSkills[demonicId])
|
|
|
{
|
|
|
case ConductSkills.NetherfireRebirth:
|
|
|
@@ -134,7 +126,7 @@ public class ConductController : MonoBehaviour
|
|
|
}
|
|
|
demonic.gameObject.transform.position = targetPos;
|
|
|
demonic.attackController.attackSummonId = 0;
|
|
|
- float tagAdd = 1 + netherfireRebirth.effectBonus * gameManager.myTreasuresTag[(int)netherfireRebirth.attributeTag - 1]/100;
|
|
|
+ tagAdd += netherfireRebirth.effectBonus * myTreasureTag [(int)netherfireRebirth.attributeTag - 1]/ 100;
|
|
|
int damage = demonic.attackController.attackMethod_summon[0].attackInfo.damage;
|
|
|
damage = (int)(damage * tagAdd);
|
|
|
demonic.attackController.attackMethod_summon[0].attackInfo.damage = damage;
|
|
|
@@ -142,15 +134,16 @@ public class ConductController : MonoBehaviour
|
|
|
playerController.lastSoldier = SoldierType.Conduct;
|
|
|
}
|
|
|
break;
|
|
|
- /*弓箭手*/
|
|
|
case ConductSkills.FlyingSwords:
|
|
|
+ ConductManager.FlyingSwords flyingSwords = conductManager.flyingSwords;
|
|
|
obj = PoolManager.Instantiate(flyingSwords.obj);
|
|
|
FanFlyingSwords FFS = obj.GetComponent<FanFlyingSwords>();
|
|
|
FFS.owner = playerController;
|
|
|
FFS.angleRange = flyingSwords.angleRange;
|
|
|
FFS.arrivalAngle = flyingSwords.arrivalAngle;
|
|
|
- FFS.swordsNum = boostNum * flyingSwords.nums;
|
|
|
- FFS.damage = flyingSwords.damage;
|
|
|
+ FFS.swordsNum = dienum * flyingSwords.power[rarity[demonicId]];
|
|
|
+ tagAdd += flyingSwords.effectBonus * myTreasureTag[(int)flyingSwords.attributeTag - 1] / 100;
|
|
|
+ FFS.damage = (int)(attackDamage * tagAdd);
|
|
|
FFS.Biu();
|
|
|
break;
|
|
|
/*胖子*/
|