技能读表

This commit is contained in:
GL 2025-01-08 14:55:48 +08:00
parent 597a4ca9cd
commit ea0db7ec8b
4 changed files with 90 additions and 18 deletions

View File

@ -21,9 +21,7 @@
}, },
"M_H_001_S_2": { "M_H_001_S_2": {
"1": { "1": {
"SkillList": [ "numberOfBullets":3,
"skill_1"
],
"DamageBuff": -0.5 "DamageBuff": -0.5
}, },
"2": { "2": {
@ -43,5 +41,50 @@
"AttackContinues": 0.5 "AttackContinues": 0.5
} }
} }
},
"M_S_002": {
"S_1": {
"1": {
"Range":2
},
"2": {
"DamageBuff": 0.15
},
"3": {
"SkillList": ["skill_0"],
"Range": -1
},
"4": {
"DamageBuff": 0.35
},
"5": {
"AttackCooldown": -0.5,
"AttackContinues":-0.5
}
},
"S_2": {
"1": {
"SkillList": [
"skill_1"
],
"DamageBuff": -0.5
},
"2": {
"DamageBuff": 0.15
},
"3": {
"SkillList": [
],
"AttackCooldown": 0.05
},
"4": {
"DamageBuff": 0.35
},
"5": {
"AttackCooldown": 0.3,
"AttackContinues": 0.5
}
}
} }
} }

View File

@ -379,9 +379,17 @@ MonoBehaviour:
AttackStayTime: 0 AttackStayTime: 0
Target: {fileID: 0} Target: {fileID: 0}
characterClick: {fileID: 8274433498955506092} characterClick: {fileID: 8274433498955506092}
Angle: 30
splitNum: 2
SplitAttack: 10
RunRange: 3
haveAddDamage: 0
AdddamageType: 1
BoomRange: 1
isAttack: 1 isAttack: 1
flag: 0 flag: 0
timer: 0 timer: 0
bulletLengthAdd: 0
--- !u!58 &1338343970434073545 --- !u!58 &1338343970434073545
CircleCollider2D: CircleCollider2D:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -411,7 +419,7 @@ GameObject:
- component: {fileID: 8433650274028726420} - component: {fileID: 8433650274028726420}
- component: {fileID: -3836672401185760439} - component: {fileID: -3836672401185760439}
- component: {fileID: 1608620729910401442} - component: {fileID: 1608620729910401442}
- component: {fileID: 240639004111058784} - component: {fileID: 9193493729303509905}
m_Layer: 0 m_Layer: 0
m_Name: cs m_Name: cs
m_TagString: Player m_TagString: Player
@ -462,8 +470,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 1d85d2602d10e0b45820f1be35eda782, type: 3} m_Script: {fileID: 11500000, guid: 1d85d2602d10e0b45820f1be35eda782, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
retbutton: {fileID: 0} description:
ClosureObj: {fileID: 0}
id: M_T_002 id: M_T_002
Name: "\u571F\u840C\u5996-02" Name: "\u571F\u840C\u5996-02"
camp: 0 camp: 0
@ -487,6 +494,7 @@ MonoBehaviour:
CritRate: 0.05 CritRate: 0.05
CriticalHitRateBonus: 0 CriticalHitRateBonus: 0
killNum: 0 killNum: 0
isMoFa: 0
gold: 10 gold: 10
MaxAttack: 8 MaxAttack: 8
MinAttack: 6 MinAttack: 6
@ -506,22 +514,25 @@ MonoBehaviour:
normalIndex: 0 normalIndex: 0
isHit: 0 isHit: 0
myTags: 0 myTags: 0
mySkillUp: {fileID: 240639004111058784} mySkillUp: {fileID: 9193493729303509905}
IsDead: 0 IsDead: 0
HaveDieTime: 0 HaveDieTime: 0
enemyId: enemyId:
bulletAttackType: 0
moveSpeed: 0 moveSpeed: 0
MengyaoSprite: {fileID: 21300000, guid: 602511914339bfa4896fd45f36054865, type: 3} MengyaoSprite: {fileID: 21300000, guid: 602511914339bfa4896fd45f36054865, type: 3}
SkillSprites: SkillSprites:
- {fileID: 21300000, guid: 0adb087419dd674498495bad0175fc85, type: 3} - {fileID: 21300000, guid: 0adb087419dd674498495bad0175fc85, type: 3}
- {fileID: 21300000, guid: d899198e4c5678843aa5f2143bbc226f, type: 3} - {fileID: 21300000, guid: d899198e4c5678843aa5f2143bbc226f, type: 3}
harmNumber: 0 harmNumber: 0
isSlowed: 0
Defense: 0 Defense: 0
DamageToPlayer: 0 DamageToPlayer: 0
HealthPerLevel: 0 HealthPerLevel: 0
DefensePerLevel: 0 DefensePerLevel: 0
elementType: 4 elementType: 4
defenseType: 0 defenseType: 0
index: 0
--- !u!61 &-3836672401185760439 --- !u!61 &-3836672401185760439
BoxCollider2D: BoxCollider2D:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -562,7 +573,7 @@ MonoBehaviour:
m_EditorClassIdentifier: m_EditorClassIdentifier:
tower: {fileID: 0} tower: {fileID: 0}
Tag: tower Tag: tower
--- !u!114 &240639004111058784 --- !u!114 &9193493729303509905
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
@ -571,11 +582,10 @@ MonoBehaviour:
m_GameObject: {fileID: 8433650275485930554} m_GameObject: {fileID: 8433650275485930554}
m_Enabled: 1 m_Enabled: 1
m_EditorHideFlags: 0 m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 95b03e0e868ee84449f3fbfa7423a3a5, type: 3} m_Script: {fileID: 11500000, guid: 8264f0a4afc0aa347bf9dad42df2617a, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
retbutton: {fileID: 0} description: "\u66F4\u65B0\u540E\u7684\u840C\u8000\uFF0C\uFF1A\u4F7F\u7528\u65B9\u6CD5xxxxxxxx"
ClosureObj: {fileID: 0}
role: {fileID: 8433650274028726420} role: {fileID: 8433650274028726420}
attack: {fileID: 7276635428522831207} attack: {fileID: 7276635428522831207}
attackRange: 0 attackRange: 0
@ -590,3 +600,4 @@ MonoBehaviour:
DamageOfland: 0 DamageOfland: 0
DamageOfBig: 0 DamageOfBig: 0
DamageOfMin: 0 DamageOfMin: 0
DamageOfSlow: 0

View File

@ -33906,27 +33906,27 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 3011360593699687250, guid: a8cc81ed2c5736a46a14628d8d489ac4, type: 3} - target: {fileID: 3011360593699687250, guid: a8cc81ed2c5736a46a14628d8d489ac4, type: 3}
propertyPath: m_AnchorMax.y propertyPath: m_AnchorMax.y
value: 1 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 3011360593699687250, guid: a8cc81ed2c5736a46a14628d8d489ac4, type: 3} - target: {fileID: 3011360593699687250, guid: a8cc81ed2c5736a46a14628d8d489ac4, type: 3}
propertyPath: m_AnchorMin.y propertyPath: m_AnchorMin.y
value: 1 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 3011360593699687250, guid: a8cc81ed2c5736a46a14628d8d489ac4, type: 3} - target: {fileID: 3011360593699687250, guid: a8cc81ed2c5736a46a14628d8d489ac4, type: 3}
propertyPath: m_SizeDelta.x propertyPath: m_SizeDelta.x
value: 600 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 3011360593699687250, guid: a8cc81ed2c5736a46a14628d8d489ac4, type: 3} - target: {fileID: 3011360593699687250, guid: a8cc81ed2c5736a46a14628d8d489ac4, type: 3}
propertyPath: m_SizeDelta.y propertyPath: m_SizeDelta.y
value: 733 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 3011360593699687250, guid: a8cc81ed2c5736a46a14628d8d489ac4, type: 3} - target: {fileID: 3011360593699687250, guid: a8cc81ed2c5736a46a14628d8d489ac4, type: 3}
propertyPath: m_AnchoredPosition.x propertyPath: m_AnchoredPosition.x
value: 300 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 3011360593699687250, guid: a8cc81ed2c5736a46a14628d8d489ac4, type: 3} - target: {fileID: 3011360593699687250, guid: a8cc81ed2c5736a46a14628d8d489ac4, type: 3}
propertyPath: m_AnchoredPosition.y propertyPath: m_AnchoredPosition.y
value: -366.5 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 3011360593729086421, guid: a8cc81ed2c5736a46a14628d8d489ac4, type: 3} - target: {fileID: 3011360593729086421, guid: a8cc81ed2c5736a46a14628d8d489ac4, type: 3}
propertyPath: m_Sprite propertyPath: m_Sprite

View File

@ -88,6 +88,8 @@ public class SkillUp : Fun
// 存储技能加成效果 // 存储技能加成效果
private Dictionary<string, Dictionary<int, System.Action>> skillUpgrades = new Dictionary<string, Dictionary<int, System.Action>>(); private Dictionary<string, Dictionary<int, System.Action>> skillUpgrades = new Dictionary<string, Dictionary<int, System.Action>>();
//Action<Role> decelerationBuff;
private void Awake() private void Awake()
{ {
description = "更新后的萌耀使用方法xxxxxxxx"; description = "更新后的萌耀使用方法xxxxxxxx";
@ -143,6 +145,22 @@ public class SkillUp : Fun
role.AddBuff(role.storageBuff, decelerationBuff); role.AddBuff(role.storageBuff, decelerationBuff);
//Debug.LogError("使用技能1-3"); //Debug.LogError("使用技能1-3");
} }
if (SkillId == "skill_1")
{
NumberOfBullets += 2;
DamageUp += -0.5f;
}
if (SkillId == "skill_2")
{
Action<Role> decelerationBuff = CreateSlowDownBuff(0.2f, 3f);
// ½« Buff Ìí¼Óµ½Íæ¼ÒµÄ storageBuff ÁбíÖÐ
role.AddBuff(role.storageBuff, decelerationBuff);
}
if (SkillId == "skill_3")
{
}
} }
} }
} }
@ -155,6 +173,6 @@ public class SkillUp : Fun
/// <param name="level">等级</param> /// <param name="level">等级</param>
public void UseSkill(int index, int level) public void UseSkill(int index, int level)
{ {
Up(role.id, role.id + "_S_" + index.ToString(), level.ToString()); Up(role.id,"S_" + index.ToString(), level.ToString());
} }
} }