装备炼制系统逻辑编写

This commit is contained in:
Zhou 2024-12-02 18:00:58 +08:00
parent 87978940ad
commit 11ca1a2b93
22 changed files with 3606 additions and 220 deletions

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 9c965a1b017be4a429bc221054b9b639
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -33,7 +33,7 @@ RectTransform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 5287165215851210573} m_Father: {fileID: 5287165215851210573}
m_RootOrder: 13 m_RootOrder: 15
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5}
@ -144,7 +144,7 @@ RectTransform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 5287165215851210573} m_Father: {fileID: 5287165215851210573}
m_RootOrder: 15 m_RootOrder: 17
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5}
@ -429,6 +429,117 @@ MonoBehaviour:
m_EffectColor: {r: 0.2, g: 0.6313726, b: 0.32941177, a: 0.5} m_EffectColor: {r: 0.2, g: 0.6313726, b: 0.32941177, a: 0.5}
m_EffectDistance: {x: 0.5, y: -0.5} m_EffectDistance: {x: 0.5, y: -0.5}
m_UseGraphicAlpha: 1 m_UseGraphicAlpha: 1
--- !u!1 &443529085838302260
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 263890069007052243}
- component: {fileID: 2678982345065108242}
- component: {fileID: 8283508802548318566}
- component: {fileID: 9012542603960375692}
- component: {fileID: 2736577555481235169}
m_Layer: 0
m_Name: txtStone
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &263890069007052243
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 443529085838302260}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 5287165215851210573}
m_RootOrder: 13
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: -222}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2678982345065108242
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 443529085838302260}
m_CullTransparentMesh: 1
--- !u!114 &8283508802548318566
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 443529085838302260}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.3647059, g: 0.28627452, b: 0.23529413, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 12800000, guid: d33a6853c6fa1394e84d986a286b6f79, type: 3}
m_FontSize: 25
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 0
m_MaxSize: 60
m_Alignment: 0
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: "\u5206\u89E3\u83B7\u5F97\u6E90\u77F3\uFF1A500"
--- !u!114 &9012542603960375692
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 443529085838302260}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3}
m_Name:
m_EditorClassIdentifier:
m_HorizontalFit: 2
m_VerticalFit: 2
--- !u!114 &2736577555481235169
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 443529085838302260}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e19747de3f5aca642ab2be37e372fb86, type: 3}
m_Name:
m_EditorClassIdentifier:
m_EffectColor: {r: 0.3647059, g: 0.28627452, b: 0.23529412, a: 0.5}
m_EffectDistance: {x: 0.5, y: -0.5}
m_UseGraphicAlpha: 1
--- !u!1 &719446347472251360 --- !u!1 &719446347472251360
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -957,7 +1068,7 @@ RectTransform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 5287165215851210573} m_Father: {fileID: 5287165215851210573}
m_RootOrder: 14 m_RootOrder: 16
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5}
@ -1309,6 +1420,117 @@ MonoBehaviour:
m_FillOrigin: 0 m_FillOrigin: 0
m_UseSpriteMesh: 0 m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1 m_PixelsPerUnitMultiplier: 1
--- !u!1 &5503916089344695100
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5028638032312201979}
- component: {fileID: 138417515195175301}
- component: {fileID: 2908558703526543969}
- component: {fileID: 6028593827794650988}
- component: {fileID: 178729270630670967}
m_Layer: 0
m_Name: txtChong
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &5028638032312201979
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5503916089344695100}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 5287165215851210573}
m_RootOrder: 14
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 294.36, y: -222}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &138417515195175301
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5503916089344695100}
m_CullTransparentMesh: 1
--- !u!114 &2908558703526543969
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5503916089344695100}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.3647059, g: 0.28627452, b: 0.23529413, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 12800000, guid: d33a6853c6fa1394e84d986a286b6f79, type: 3}
m_FontSize: 25
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 0
m_MaxSize: 60
m_Alignment: 0
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: "\u91CD\u94F8\u77F3\uFF1A10"
--- !u!114 &6028593827794650988
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5503916089344695100}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3}
m_Name:
m_EditorClassIdentifier:
m_HorizontalFit: 2
m_VerticalFit: 2
--- !u!114 &178729270630670967
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5503916089344695100}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e19747de3f5aca642ab2be37e372fb86, type: 3}
m_Name:
m_EditorClassIdentifier:
m_EffectColor: {r: 0.3647059, g: 0.28627452, b: 0.23529412, a: 0.5}
m_EffectDistance: {x: 0.5, y: -0.5}
m_UseGraphicAlpha: 1
--- !u!1 &5533483037103408762 --- !u!1 &5533483037103408762
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -1625,7 +1847,7 @@ RectTransform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 5287165215851210573} m_Father: {fileID: 5287165215851210573}
m_RootOrder: 16 m_RootOrder: 18
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5}
@ -1869,6 +2091,8 @@ RectTransform:
- {fileID: 2483930325550193713} - {fileID: 2483930325550193713}
- {fileID: 4639181800119433001} - {fileID: 4639181800119433001}
- {fileID: 3356521652887400322} - {fileID: 3356521652887400322}
- {fileID: 263890069007052243}
- {fileID: 5028638032312201979}
- {fileID: 8304839433121259576} - {fileID: 8304839433121259576}
- {fileID: 6484562972075311654} - {fileID: 6484562972075311654}
- {fileID: 7451541515586139057} - {fileID: 7451541515586139057}
@ -2329,7 +2553,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: -188} m_AnchoredPosition: {x: 0, y: -150}
m_SizeDelta: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &3769833519733827615 --- !u!114 &3769833519733827615

View File

@ -149,7 +149,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: -75} m_AnchoredPosition: {x: 0, y: -75}
m_SizeDelta: {x: 300, y: 0} m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 1} m_Pivot: {x: 0, y: 1}
--- !u!222 &7374574055375681904 --- !u!222 &7374574055375681904
CanvasRenderer: CanvasRenderer:
@ -888,7 +888,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 307, y: -75} m_AnchoredPosition: {x: 307, y: -75}
m_SizeDelta: {x: 300, y: 0} m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 1} m_Pivot: {x: 0, y: 1}
--- !u!222 &1694541141718410899 --- !u!222 &1694541141718410899
CanvasRenderer: CanvasRenderer:
@ -1236,7 +1236,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 307, y: -150} m_AnchoredPosition: {x: 307, y: -150}
m_SizeDelta: {x: 300, y: 0} m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 1} m_Pivot: {x: 0, y: 1}
--- !u!222 &4343683395333129986 --- !u!222 &4343683395333129986
CanvasRenderer: CanvasRenderer:
@ -1347,7 +1347,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 300, y: 0} m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 1} m_Pivot: {x: 0, y: 1}
--- !u!222 &7990361250744924110 --- !u!222 &7990361250744924110
CanvasRenderer: CanvasRenderer:
@ -1994,7 +1994,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 307, y: -75} m_AnchoredPosition: {x: 307, y: -75}
m_SizeDelta: {x: 300, y: 0} m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 1} m_Pivot: {x: 0, y: 1}
--- !u!222 &8201839111075640599 --- !u!222 &8201839111075640599
CanvasRenderer: CanvasRenderer:
@ -2327,7 +2327,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: -150} m_AnchoredPosition: {x: 0, y: -150}
m_SizeDelta: {x: 300, y: 0} m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 1} m_Pivot: {x: 0, y: 1}
--- !u!222 &6887313989554397937 --- !u!222 &6887313989554397937
CanvasRenderer: CanvasRenderer:
@ -2742,7 +2742,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 307, y: 0} m_AnchoredPosition: {x: 307, y: 0}
m_SizeDelta: {x: 300, y: 0} m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 1} m_Pivot: {x: 0, y: 1}
--- !u!222 &3866980963232993410 --- !u!222 &3866980963232993410
CanvasRenderer: CanvasRenderer:

View File

@ -12,10 +12,18 @@ public enum E_EventType
/// </summary> /// </summary>
E_Monster_DamageNum, E_Monster_DamageNum,
/// <summary> /// <summary>
/// 怪物被暴击
/// </summary>
E_Monster_CritDamageNum,
/// <summary>
/// 鯤소<E9AFA4>벧鑒俚 /// 鯤소<E9AFA4>벧鑒俚
/// </summary> /// </summary>
E_Player_DamageNum, E_Player_DamageNum,
/// <summary> /// <summary>
/// 玩家被暴击伤害数字
/// </summary>
E_Player_CritDamageNum,
/// <summary>
/// 鯤소놓迦뺏 /// 鯤소놓迦뺏
/// </summary> /// </summary>
E_Player_Init, E_Player_Init,

View File

@ -24,6 +24,6 @@ public class BtnEquip : MonoBehaviour
{ {
nowEquipData= equip; nowEquipData= equip;
txtName.text = equip.name; txtName.text = equip.name;
txtName.color = GameMgr.Instance.HexToColor(equip.color); txtName.color = GameMgr.Instance.HexToColor(equip.equipColor);
} }
} }

View File

@ -58,6 +58,7 @@ public class DamageNum : MonoBehaviour
{ {
can.alpha = 0; can.alpha = 0;
rec.position = Vector3.zero; rec.position = Vector3.zero;
rec.localScale = Vector3.one;
PoolMgr.Instance.PushObj(this.gameObject); PoolMgr.Instance.PushObj(this.gameObject);
} }
} }

View File

@ -58,15 +58,33 @@ public class MonsterObject : MonoBehaviour
} }
//キタモ<EFBE80>ヨマ鉑ヒコヲ //キタモ<EFBE80>ヨマ鉑ヒコヲ
//シ<>ルムェチソ //シ<>ルムェチソ
int damageHP = player.atk - monster.def; int damageHP;
//防止没有破防产生负数的情况 //是否触发暴击
if (damageHP<0) if (GameMgr.Instance.ProbaReturn(player.crit))
{ {
damageHP = 0; //触发暴击
damageHP = (int)((player.atk - monster.def) * (1 + player.critDamage / 100));
//防止没有破防产生负数的情况
if (damageHP < 0)
{
damageHP = 0;
}
hp -= damageHP;
//弹出减血量数字
EventCenter.Instance.EventTrigger<int>(E_EventType.E_Monster_CritDamageNum, damageHP);
}
else
{
damageHP = player.atk - monster.def;
//防止没有破防产生负数的情况
if (damageHP < 0)
{
damageHP = 0;
}
hp -= damageHP;
//弹出减血量数字
EventCenter.Instance.EventTrigger<int>(E_EventType.E_Monster_DamageNum, damageHP);
} }
hp -=damageHP;
//弹出减血量数字
EventCenter.Instance.EventTrigger<int>(E_EventType.E_Monster_DamageNum,damageHP);
if (hp <= 0) if (hp <= 0)
{ {

View File

@ -36,8 +36,9 @@ public class PlayerObject : MonoBehaviour
if (GameMgr.Instance.isStartAtk) if (GameMgr.Instance.isStartAtk)
{ {
//检测和目标点达到移动条件时 就攻击 //检测和目标点达到移动条件时 就攻击
if (Time.time - frontTime >= player.atkTime) if (Time.time - frontTime >= player.atkTime-(player.atkTime*player.atkSpeed/100))
{ {
Debug.Log(Application.persistentDataPath);
//记录这次攻击时的时间 //记录这次攻击时的时间
frontTime = Time.time; frontTime = Time.time;
//创建飞剑攻击敌人 //创建飞剑攻击敌人
@ -57,15 +58,32 @@ public class PlayerObject : MonoBehaviour
} }
//防御抵消伤害 //防御抵消伤害
//减少血量 //减少血量
int damageHP = monster.atk - player.def; int damageHP;
//防止没有破防产生负数的情况 if (GameMgr.Instance.ProbaReturn(monster.crit))
if (damageHP < 0)
{ {
damageHP = 0; //触发暴击
damageHP =(int)((monster.atk - player.def) * (1 + monster.critDamage / 100));
//防止没有破防产生负数的情况
if (damageHP < 0)
{
damageHP = 0;
}
hp -= damageHP;
//弹出减血量数字
EventCenter.Instance.EventTrigger<int>(E_EventType.E_Player_CritDamageNum, damageHP);
}
else
{
damageHP = monster.atk - player.def;
//防止没有破防产生负数的情况
if (damageHP < 0)
{
damageHP = 0;
}
hp -= damageHP;
//弹出减血量数字
EventCenter.Instance.EventTrigger<int>(E_EventType.E_Player_DamageNum, damageHP);
} }
hp -= damageHP;
//弹出减血量数字
EventCenter.Instance.EventTrigger<int>(E_EventType.E_Player_DamageNum, damageHP);
if (hp <= 0) if (hp <= 0)
{ {
@ -73,14 +91,11 @@ public class PlayerObject : MonoBehaviour
isDead = true; isDead = true;
//飞剑回收仓库 //飞剑回收仓库
GameMgr.Instance.isFeijianClose = true; GameMgr.Instance.isFeijianClose = true;
UpdateHp(0); UpdateHp(0);
//弹出失败框 //弹出失败框
EventCenter.Instance.EventTrigger<string>(E_EventType.E_Pool_Register1, "战斗失败"); EventCenter.Instance.EventTrigger<string>(E_EventType.E_Pool_Register1, "战斗失败");
//开启生成新一轮游戏 //开启生成新一轮游戏
GameMgr.Instance.StartInit(); GameMgr.Instance.StartInit();
this.gameObject.SetActive(false); this.gameObject.SetActive(false);
return; return;
} }

View File

@ -6,10 +6,40 @@ using UnityEngine.UI;
public class TxtEntry : MonoBehaviour public class TxtEntry : MonoBehaviour
{ {
public Text txtEntry; public Text txtEntry;
public void UpdatePanel(string entry) public void UpdatePanel(EquipEntry entry,string color= "362211")
{ {
txtEntry.text = entry; switch (entry.entryType)
{
case 1:
txtEntry.text = "血量+"+entry.num;
break;
case 2:
txtEntry.text = "攻击力+" + entry.num;
break;
case 3:
txtEntry.text = "防御力+" + entry.num;
break;
case 4:
txtEntry.text = "暴击率+" + entry.num + "%";
break;
case 5:
txtEntry.text = "暴击伤害+" + entry.num + "%";
break;
case 6:
txtEntry.text = "攻击速度+" + entry.num + "%";
break;
case 7:
txtEntry.text = "灵石加成+" + entry.num + "%";
break;
case 8:
txtEntry.text = "抗爆率+" + entry.num + "%";
break;
case 9:
txtEntry.text = "灵气加成+" + entry.num + "%";
break;
}
txtEntry.color = GameMgr.Instance.HexToColor(color);
txtEntry.GetComponent<Outline>().effectColor = GameMgr.Instance.HexToColorAlaph(color);
} }
} }

View File

@ -4,19 +4,33 @@ using UnityEngine;
public class EquipData public class EquipData
{ {
//装备名字
public string name; public string name;
public int hp; //装备类型
public int atk;
public int def;
public float crit;
public float critDamage;
public float kangCrit;
public float atkSpeed;
public float gasAdd;
public float yuAdd;
public float stoneAdd;
public int equipType; public int equipType;
public int equipQuality; /// <summary>
public string colorName; /// 装备的品阶 1--炼气 2--筑基 3--金丹 4--化神 5--渡劫 6--合体 7--大乘 8--飞升
public string color; /// </summary>
public int equipGrade=1;
/// <summary>
/// 装备颜色 绿色--33A154 蓝色--0030FF 紫色--8800FF 黄色--FFD104 红色--FF5F04
/// </summary>
public string equipColor;
//基础属性词条
public List<EquipEntry> equipBasicAtt=new List<EquipEntry>();
//装备附加属性词条
public List<EquipEntry> equipAddAtt = new List<EquipEntry>();
} }
//装备词条
public class EquipEntry
{
//词条数值
public int num;
/// <summary>
/// 词条类型 1--hp 2--攻击力 3--防御力 4--暴击率 5--暴击伤害 6--攻击速度 7--灵石加成 8--抗爆率 9--灵气加成
/// </summary>
public int entryType;
}

View File

@ -16,6 +16,10 @@ public class MonsterData
public int def; public int def;
//攻击时间 //攻击时间
public float atkTime; public float atkTime;
//╧жнО╠╘╩В╪╦бй
public float crit;
//╧жнО╠╘╩Вик╨╕
public float critDamage;
//灵石奖励 //灵石奖励
public int stone; public int stone;
//源石奖励 //源石奖励

View File

@ -24,19 +24,19 @@ public class PlayerData
//防御力 //防御力
public int def=5; public int def=5;
//攻速加成 //攻速加成
public float atkSpeed=0f; public int atkSpeed=0;
//暴击加成 //暴击加成
public float crit=0f; public int crit=0;
//暴击伤害 //暴击伤害
public float critDamage=0f; public int critDamage = 0;
//每分钟灵气 //每分钟灵气
public int minuteGas=60; public int minuteGas=60;
//灵气加成 //灵气加成
public float gasAdd = 0f; public int gasAdd = 0;
//抗暴率加成 //抗暴率加成
public float kangCrit = 0f; public int kangCrit = 0;
//灵石加成 //灵石加成
public float stoneAdd = 0f; public int stoneAdd = 0;
//人物境界 //人物境界
public string state = "炼气境一重"; public string state = "炼气境一重";
//境界ID对应升级属性的Id //境界ID对应升级属性的Id

View File

@ -125,4 +125,20 @@ public class GameMgr:SingletonAutoMono<GameMgr>
yield return new WaitForSeconds(0.5f); yield return new WaitForSeconds(0.5f);
EventCenter.Instance.EventTrigger<string>(E_EventType.E_Pool_Register2, "你获得了源石+" + yuan); EventCenter.Instance.EventTrigger<string>(E_EventType.E_Pool_Register2, "你获得了源石+" + yuan);
} }
/// <summary>
/// 概率反馈
/// </summary>
/// <param name="probability">传递过来的概率</param>
/// <returns></returns>
public bool ProbaReturn(float probability)
{
//获得0-1中间的浮点数
float f = Random.value;
if (f <= (probability/100))
{
return true;
}
return false;
}
} }

View File

@ -45,7 +45,9 @@ public class BattlePanel : BasePanel
//注册伤害数字弹出事件 //注册伤害数字弹出事件
EventCenter.Instance.AddEventListener<int>(E_EventType.E_Player_DamageNum, DamageUserNum); EventCenter.Instance.AddEventListener<int>(E_EventType.E_Player_DamageNum, DamageUserNum);
EventCenter.Instance.AddEventListener<int>(E_EventType.E_Player_CritDamageNum, DamageUserCritNum);
EventCenter.Instance.AddEventListener<int>(E_EventType.E_Monster_DamageNum, DamageMonsterNum); EventCenter.Instance.AddEventListener<int>(E_EventType.E_Monster_DamageNum, DamageMonsterNum);
EventCenter.Instance.AddEventListener<int>(E_EventType.E_Monster_CritDamageNum, DamageMonsterCritNum);
//注册重置玩家和怪物数据 //注册重置玩家和怪物数据
EventCenter.Instance.AddEventListener(E_EventType.E_Player_Init,InitPlayerPanel); EventCenter.Instance.AddEventListener(E_EventType.E_Player_Init,InitPlayerPanel);
EventCenter.Instance.AddEventListener(E_EventType.E_Monster_Init,InitMonsterPanel); EventCenter.Instance.AddEventListener(E_EventType.E_Monster_Init,InitMonsterPanel);
@ -233,7 +235,7 @@ public class BattlePanel : BasePanel
} }
/// <summary> /// <summary>
/// 伤害数字弹窗1 /// 玩家被伤害数字弹窗
/// </summary> /// </summary>
private void DamageUserNum(int damageHp) private void DamageUserNum(int damageHp)
{ {
@ -246,7 +248,20 @@ public class BattlePanel : BasePanel
} }
/// <summary> /// <summary>
/// 伤害数字弹窗2 /// 玩家被暴击伤害数字弹窗
/// </summary>
private void DamageUserCritNum(int damageHp)
{
//弹出减血量数字
GameObject go = PoolMgr.Instance.GetObj("Object/DamageNum");
go.transform.SetParent(damageUser, false);
go.transform.localPosition = Vector3.zero;
go.transform.localScale = new Vector3(1.5f, 1.5f, 1.5f);
go.GetComponent<DamageNum>().UpdateTxtInfo("-" + damageHp);
}
/// <summary>
/// 怪物被伤害数字弹窗
/// </summary> /// </summary>
private void DamageMonsterNum(int damageHp) private void DamageMonsterNum(int damageHp)
{ {
@ -258,6 +273,19 @@ public class BattlePanel : BasePanel
go.GetComponent<DamageNum>().UpdateTxtInfo("-" + damageHp); go.GetComponent<DamageNum>().UpdateTxtInfo("-" + damageHp);
} }
/// <summary>
/// 怪物被暴击伤害数字弹窗
/// </summary>
private void DamageMonsterCritNum(int damageHp)
{
//弹出减血量数字
GameObject go = PoolMgr.Instance.GetObj("Object/DamageNum");
go.transform.SetParent(damageMonster, false);
go.transform.localPosition = Vector3.zero;
go.transform.localScale = new Vector3(1.5f, 1.5f, 1.5f);
go.GetComponent<DamageNum>().UpdateTxtInfo("-" + damageHp);
}
/// <summary> /// <summary>
/// 公用的弹窗点1事件添加进事件中心 /// 公用的弹窗点1事件添加进事件中心
/// </summary> /// </summary>

View File

@ -0,0 +1,246 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class EquipDressPanel : BasePanel
{
public Button btnClose;
public Button btnDis;
public Button btnFenjie;
public Button btnChong;
public Text txtName;
public Text txtJingjie;
public Text txtQuality;
public Transform basicAtt;
public Transform addAtt;
public GameObject txtEntry;
//本装备属性
private EquipData equipData;
private PlayerData player;
//词条颜色--红色
private string entryColor = "FF4E00";
//装备颜色--绿色
private string equipColorLv = "33A154";
//装备颜色--蓝色
private string equipColorLan = "0030FF";
//装备颜色--紫色
private string equipColorZi = "8800FF";
//装备颜色--黄色
private string equipColorHuang = "FFD104";
//装备颜色--红色
private string equipColorHong = "FF5F04";
public override void Init()
{
player = GameDataMgr.Instance.player;
btnClose.onClick.AddListener(() =>
{
UIManager.Instance.HidePanel<EquipDressPanel>();
});
btnDis.onClick.AddListener(() =>
{
DisEquip();
UIManager.Instance.HidePanel<EquipDressPanel>();
});
btnFenjie.onClick.AddListener(() =>
{
});
btnChong.onClick.AddListener(() =>
{
});
}
//给外界更新面板的方法
public void UpdatePanel(EquipData equip)
{
equipData = equip;
txtName.text = equip.name;
txtJingjie.text = equip.name.Substring(0, 2);
switch (equip.equipAddAtt.Count)
{
case 0:
UpdateColor(equipColorLv, "绿色");
break;
case 1:
UpdateColor(equipColorLan, "蓝色");
break;
case 2:
UpdateColor(equipColorZi, "紫色");
break;
case 3:
UpdateColor(equipColorHuang, "黄色");
break;
case 4:
UpdateColor(equipColorHong, "红色");
break;
}
CreateTxtEntry(equip);
}
private void UpdateColor(string color, string colorName)
{
txtName.color = GameMgr.Instance.HexToColor(color);
txtName.gameObject.GetComponent<Outline>().effectColor = GameMgr.Instance.HexToColorAlaph(color);
txtJingjie.color = GameMgr.Instance.HexToColor(color);
txtJingjie.gameObject.GetComponent<Outline>().effectColor = GameMgr.Instance.HexToColorAlaph(color);
txtQuality.text = "colorName";
txtQuality.color = GameMgr.Instance.HexToColor(color);
txtQuality.gameObject.GetComponent<Outline>().effectColor = GameMgr.Instance.HexToColorAlaph(color);
}
//更新装备属性条
private void CreateTxtEntry(EquipData equip)
{
GameObject go;
//装备基础属性词条
if (equip.equipBasicAtt.Count > 0)
{
for (int i = 0; i < equip.equipBasicAtt.Count; i++)
{
go = Instantiate(txtEntry);
go.transform.SetParent(basicAtt, false);
go.GetComponent<TxtEntry>().UpdatePanel(equip.equipBasicAtt[i]);
}
}
//装备附加属性词条
if (equip.equipAddAtt.Count > 0)
{
for (int i = 0; i < equip.equipAddAtt.Count; i++)
{
go = Instantiate(txtEntry);
go.transform.SetParent(addAtt, false);
go.GetComponent<TxtEntry>().UpdatePanel(equip.equipBasicAtt[i], entryColor);
}
}
}
//玩家点击卸下
private void DisEquip()
{
switch (equipData.equipType)
{
case 1:
DischargeEquip("tou");
break;
case 2:
DischargeEquip("yi");
break;
case 3:
DischargeEquip("shou");
break;
case 4:
DischargeEquip("yao");
break;
case 5:
DischargeEquip("tui");
break;
case 6:
DischargeEquip("xie");
break;
}
//更新装备面板
UIManager.Instance.GetPanel<EquipPanel>().UpdatePanel();
//更新玩家属性面板
UIManager.Instance.GetPanel<UserPanel>().UpdatePanel();
//保存数据
GameDataMgr.Instance.EquipDataSave();
GameDataMgr.Instance.PlayerDataSave();
}
//卸下装备
private void DischargeEquip(string name)
{
//装备部位变为空
GameDataMgr.Instance.userEquip.dressEquip[name] = null;
//装备列表添加装备
GameDataMgr.Instance.userEquip.itemEquip.Add(equipData);
//玩家属性减少
PlayerDataDis();
}
/// <summary>
/// 属性增加
/// </summary>
/// <param name="equip">装备信息</param>
/// <param name="num">是增加还是减少 1表示增加-1表示减少</param>
private void PlayerDataDis()
{
//基础属性减少
for (int i = 0; i < equipData.equipBasicAtt.Count; i++)
{
switch (equipData.equipBasicAtt[i].entryType)
{
case 1:
player.hp -= equipData.equipBasicAtt[i].num;
break;
case 2:
player.atk -=equipData.equipBasicAtt[i].num;
break;
case 3:
player.def -= equipData.equipBasicAtt[i].num;
break;
case 4:
player.crit -= equipData.equipBasicAtt[i].num;
break;
case 5:
player.critDamage -= equipData.equipBasicAtt[i].num;
break;
case 6:
player.atkSpeed -= equipData.equipBasicAtt[i].num;
break;
case 7:
player.stoneAdd -= equipData.equipBasicAtt[i].num;
break;
case 8:
player.kangCrit -= equipData.equipBasicAtt[i].num;
break;
case 9:
player.gasAdd -= equipData.equipBasicAtt[i].num;
break;
}
}
//附加属性减少
for (int i = 0; i < equipData.equipAddAtt.Count; i++)
{
switch (equipData.equipBasicAtt[i].entryType)
{
case 1:
player.hp -= equipData.equipBasicAtt[i].num;
break;
case 2:
player.atk -= equipData.equipBasicAtt[i].num;
break;
case 3:
player.def -= equipData.equipBasicAtt[i].num;
break;
case 4:
player.crit -= equipData.equipBasicAtt[i].num;
break;
case 5:
player.critDamage -= equipData.equipBasicAtt[i].num;
break;
case 6:
player.atkSpeed -= equipData.equipBasicAtt[i].num;
break;
case 7:
player.stoneAdd -= equipData.equipBasicAtt[i].num;
break;
case 8:
player.kangCrit -= equipData.equipBasicAtt[i].num;
break;
case 9:
player.gasAdd -= equipData.equipBasicAtt[i].num;
break;
}
}
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 83e948ab5395dfd4fa915a05583a9164
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -2,6 +2,7 @@ using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;
using UnityEngine.UI; using UnityEngine.UI;
using static UnityEngine.EventSystems.EventTrigger;
public class EquipInfoPanel : BasePanel public class EquipInfoPanel : BasePanel
{ {
@ -13,6 +14,12 @@ public class EquipInfoPanel : BasePanel
public Text txtName; public Text txtName;
public Text txtJingjie; public Text txtJingjie;
public Text txtQuality; public Text txtQuality;
//分解获得灵石
public Text txtStone;
//分解获得的源石数量
private int fenjieEquip;
//重铸
public Text txtChong;
public Transform basicAtt; public Transform basicAtt;
public Transform addAtt; public Transform addAtt;
@ -21,6 +28,20 @@ public class EquipInfoPanel : BasePanel
//本装备属性 //本装备属性
private EquipData equipData; private EquipData equipData;
private PlayerData player; private PlayerData player;
//词条颜色--红色
private string entryColor= "FF4E00";
//装备颜色--绿色
private string equipColorLv= "33A154";
//装备颜色--蓝色
private string equipColorLan= "0030FF";
//装备颜色--紫色
private string equipColorZi= "8800FF";
//装备颜色--黄色
private string equipColorHuang= "FFD104";
//装备颜色--红色
private string equipColorHong= "FF5F04";
public override void Init() public override void Init()
{ {
@ -45,90 +66,120 @@ public class EquipInfoPanel : BasePanel
}); });
} }
private void FenJieEquip()
{
//装备品阶分解的数量
switch (equipData.equipGrade)
{
case 1:
fenjieEquip += 100;
break;
case 2:
fenjieEquip += 200;
break;
case 3:
fenjieEquip += 350;
break;
case 4:
fenjieEquip += 750;
break;
case 5:
fenjieEquip += 1000;
break;
case 6:
fenjieEquip += 1500;
break;
case 7:
fenjieEquip += 3000;
break;
case 8:
fenjieEquip += 5000;
break;
}
//附加属性增加装备的分解的源石数量
switch (equipData.equipAddAtt.Count)
{
case 1:
fenjieEquip += 50;
break;
case 2:
fenjieEquip += 100;
break;
case 3:
fenjieEquip += 150;
break;
case 4:
fenjieEquip += 200;
break;
}
}
//给外界更新面板的方法 //给外界更新面板的方法
public void UpdatePanel(EquipData equip) public void UpdatePanel(EquipData equip)
{ {
equipData = equip; equipData = equip;
txtName.text=equip.name; txtName.text=equip.name;
txtName.color = GameMgr.Instance.HexToColor(equip.color); txtJingjie.text = equip.name.Substring(0, 2);
txtName.gameObject.GetComponent<Outline>().effectColor = GameMgr.Instance.HexToColorAlaph(equip.color); switch (equip.equipAddAtt.Count)
{
txtJingjie.text=equip.name.Substring(0,2); case 0:
txtJingjie.color = GameMgr.Instance.HexToColor(equip.color); UpdateColor(equipColorLv, "绿色");
txtJingjie.gameObject.GetComponent<Outline>().effectColor = GameMgr.Instance.HexToColorAlaph(equip.color); break;
case 1:
txtQuality.text = equip.colorName; UpdateColor(equipColorLan, "蓝色");
txtQuality.color = GameMgr.Instance.HexToColor(equip.color); break;
txtQuality.gameObject.GetComponent<Outline>().effectColor = GameMgr.Instance.HexToColorAlaph(equip.color); case 2:
UpdateColor(equipColorZi, "紫色");
break;
case 3:
UpdateColor(equipColorHuang, "黄色");
break;
case 4:
UpdateColor(equipColorHong, "红色");
break;
}
CreateTxtEntry(equip); CreateTxtEntry(equip);
} }
private void UpdateColor(string color,string colorName)
{
txtName.color = GameMgr.Instance.HexToColor(color);
txtName.gameObject.GetComponent<Outline>().effectColor = GameMgr.Instance.HexToColorAlaph(color);
txtJingjie.color = GameMgr.Instance.HexToColor(color);
txtJingjie.gameObject.GetComponent<Outline>().effectColor = GameMgr.Instance.HexToColorAlaph(color);
txtQuality.text = "colorName";
txtQuality.color = GameMgr.Instance.HexToColor(color);
txtQuality.gameObject.GetComponent<Outline>().effectColor = GameMgr.Instance.HexToColorAlaph(color);
}
//更新装备属性条 //更新装备属性条
private void CreateTxtEntry(EquipData equip) private void CreateTxtEntry(EquipData equip)
{ {
GameObject go; GameObject go;
if (equip.hp!=0) //装备基础属性词条
if (equip.equipBasicAtt.Count > 0)
{ {
go = Instantiate(txtEntry); for (int i = 0; i < equip.equipBasicAtt.Count; i++)
go.transform.SetParent(basicAtt, false); {
go.GetComponent<TxtEntry>().UpdatePanel("血量+"+equip.hp); go = Instantiate(txtEntry);
go.transform.SetParent(basicAtt, false);
go.GetComponent<TxtEntry>().UpdatePanel(equip.equipBasicAtt[i]);
}
} }
if (equip.atk != 0)
//装备附加属性词条
if (equip.equipAddAtt.Count > 0)
{ {
go = Instantiate(txtEntry); for (int i = 0; i < equip.equipAddAtt.Count; i++)
go.transform.SetParent(basicAtt, false); {
go.GetComponent<TxtEntry>().UpdatePanel("攻击力+" + equip.atk); go = Instantiate(txtEntry);
} go.transform.SetParent(addAtt, false);
if (equip.def != 0) go.GetComponent<TxtEntry>().UpdatePanel(equip.equipBasicAtt[i], entryColor);
{ }
go = Instantiate(txtEntry);
go.transform.SetParent(basicAtt, false);
go.GetComponent<TxtEntry>().UpdatePanel("防御力+" + equip.def);
}
if (equip.crit != 0f)
{
go = Instantiate(txtEntry);
go.transform.SetParent(basicAtt, false);
go.GetComponent<TxtEntry>().UpdatePanel("暴击率+" + equip.crit+"%");
}
if (equip.critDamage != 0f)
{
go = Instantiate(txtEntry);
go.transform.SetParent(basicAtt, false);
go.GetComponent<TxtEntry>().UpdatePanel("暴击伤害+" + equip.critDamage + "%");
}
if (equip.atkSpeed != 0f)
{
go = Instantiate(txtEntry);
go.transform.SetParent(addAtt, false);
go.GetComponent<TxtEntry>().UpdatePanel("攻击速度+" + equip.atkSpeed + "%");
}
if (equip.kangCrit != 0f)
{
go = Instantiate(txtEntry);
go.transform.SetParent(addAtt, false);
go.GetComponent<TxtEntry>().UpdatePanel("抗爆率+" + equip.kangCrit + "%");
}
if (equip.gasAdd != 0f)
{
go = Instantiate(txtEntry);
go.transform.SetParent(addAtt, false);
go.GetComponent<TxtEntry>().UpdatePanel("灵气加成+" + equip.gasAdd + "%");
}
if (equip.yuAdd != 0f)
{
go = Instantiate(txtEntry);
go.transform.SetParent(addAtt, false);
go.GetComponent<TxtEntry>().UpdatePanel("仙玉加成+" + equip.yuAdd + "%");
}
if (equip.stoneAdd != 0f)
{
go = Instantiate(txtEntry);
go.transform.SetParent(addAtt, false);
go.GetComponent<TxtEntry>().UpdatePanel("灵石加成+" + equip.stoneAdd + "%");
} }
} }
//玩家点击穿戴 //玩家点击穿戴
@ -156,8 +207,6 @@ public class EquipInfoPanel : BasePanel
AddEquip("xie"); AddEquip("xie");
break; break;
} }
//玩家属性增加
PlayerDataAdd();
//更新装备面板 //更新装备面板
UIManager.Instance.GetPanel<EquipPanel>().UpdatePanel(); UIManager.Instance.GetPanel<EquipPanel>().UpdatePanel();
//更新玩家属性面板 //更新玩家属性面板
@ -167,6 +216,7 @@ public class EquipInfoPanel : BasePanel
GameDataMgr.Instance.PlayerDataSave(); GameDataMgr.Instance.PlayerDataSave();
} }
//玩家穿戴装备--替换,或者穿戴
private void AddEquip(string name) private void AddEquip(string name)
{ {
if (GameDataMgr.Instance.userEquip.dressEquip.ContainsKey(name)) if (GameDataMgr.Instance.userEquip.dressEquip.ContainsKey(name))
@ -176,28 +226,101 @@ public class EquipInfoPanel : BasePanel
EquipData equip = GameDataMgr.Instance.userEquip.dressEquip[name]; EquipData equip = GameDataMgr.Instance.userEquip.dressEquip[name];
GameDataMgr.Instance.userEquip.dressEquip[name] = equipData; GameDataMgr.Instance.userEquip.dressEquip[name] = equipData;
GameDataMgr.Instance.userEquip.itemEquip.Add(equip); GameDataMgr.Instance.userEquip.itemEquip.Add(equip);
//换上去的属性增加
PlayerDataAdd(equipData, 1);
//换下来的装备,减少属性
PlayerDataAdd(equip, -1);
} }
else else
{ {
GameDataMgr.Instance.userEquip.dressEquip[name] = equipData; GameDataMgr.Instance.userEquip.dressEquip[name] = equipData;
//玩家属性增加
PlayerDataAdd(equipData,1);
} }
} }
else else
{ {
GameDataMgr.Instance.userEquip.dressEquip.Add(name, equipData); GameDataMgr.Instance.userEquip.dressEquip.Add(name, equipData);
//玩家属性增加
PlayerDataAdd(equipData,1);
} }
} }
private void PlayerDataAdd() /// <summary>
/// 属性增加
/// </summary>
/// <param name="equip">装备信息</param>
/// <param name="num">是增加还是减少 1表示增加-1表示减少</param>
private void PlayerDataAdd(EquipData equip,int num)
{ {
player.hp += equipData.hp; //基础属性增加
player.atk += equipData.atk; for (int i = 0; i < equip.equipBasicAtt.Count; i++)
player.def += equipData.def; {
player.crit += equipData.crit; switch (equip.equipBasicAtt[i].entryType)
player.critDamage += equipData.critDamage; {
player.atkSpeed += equipData.atkSpeed; case 1:
player.kangCrit += equipData.kangCrit; player.hp += num*equip.equipBasicAtt[i].num;
player.gasAdd += equipData.gasAdd; break;
player.stoneAdd += equipData.stoneAdd; case 2:
player.atk += num * equip.equipBasicAtt[i].num;
break;
case 3:
player.def += num * equip.equipBasicAtt[i].num;
break;
case 4:
player.crit += num * equip.equipBasicAtt[i].num;
break;
case 5:
player.critDamage += num * equip.equipBasicAtt[i].num;
break;
case 6:
player.atkSpeed += num * equip.equipBasicAtt[i].num;
break;
case 7:
player.stoneAdd += num * equip.equipBasicAtt[i].num;
break;
case 8:
player.kangCrit += num * equip.equipBasicAtt[i].num;
break;
case 9:
player.gasAdd += num * equip.equipBasicAtt[i].num;
break;
}
}
//附加属性增加
for (int i = 0; i < equip.equipAddAtt.Count; i++)
{
switch (equip.equipBasicAtt[i].entryType)
{
case 1:
player.hp += num * equip.equipBasicAtt[i].num;
break;
case 2:
player.atk += num * equip.equipBasicAtt[i].num;
break;
case 3:
player.def += num * equip.equipBasicAtt[i].num;
break;
case 4:
player.crit += num * equip.equipBasicAtt[i].num;
break;
case 5:
player.critDamage += num * equip.equipBasicAtt[i].num;
break;
case 6:
player.atkSpeed += num * equip.equipBasicAtt[i].num;
break;
case 7:
player.stoneAdd += num * equip.equipBasicAtt[i].num;
break;
case 8:
player.kangCrit += num * equip.equipBasicAtt[i].num;
break;
case 9:
player.gasAdd += num * equip.equipBasicAtt[i].num;
break;
}
}
} }
} }

View File

@ -169,6 +169,51 @@ public class EquipPanel : BasePanel
} }
}); });
//已装备头部按钮
btnTou.onClick.AddListener(() =>
{
DressEquipBtn("tou");
});
//已装备战袍按钮
btnYi.onClick.AddListener(() =>
{
DressEquipBtn("yi");
});
//已装备护手按钮
btnShou.onClick.AddListener(() =>
{
DressEquipBtn("shou");
});
//已装备护腰按钮
btnYao.onClick.AddListener(() =>
{
DressEquipBtn("yao");
});
//已装备护腿按钮
btnTui.onClick.AddListener(() =>
{
DressEquipBtn("tui");
});
//已装备战靴按钮
btnXie.onClick.AddListener(() =>
{
DressEquipBtn("xie");
});
}
/// <summary>
/// 已穿戴装备按钮点击事件
/// </summary>
private void DressEquipBtn(string name)
{
if (GameDataMgr.Instance.userEquip.dressEquip.ContainsKey(name))
{
if (GameDataMgr.Instance.userEquip.dressEquip[name] != null)
{
EquipDressPanel dress = UIManager.Instance.ShowPanel<EquipDressPanel>(E_UILayer.System);
dress.UpdatePanel(GameDataMgr.Instance.userEquip.dressEquip[name]);
}
}
} }
/// <summary> /// <summary>
@ -206,32 +251,32 @@ public class EquipPanel : BasePanel
if (userEquip.dressEquip.ContainsKey("tou")) if (userEquip.dressEquip.ContainsKey("tou"))
{ {
txtTou.text = userEquip.dressEquip["tou"].name; txtTou.text = userEquip.dressEquip["tou"].name;
txtTou.color = GameMgr.Instance.HexToColor(userEquip.dressEquip["tou"].color); txtTou.color = GameMgr.Instance.HexToColor(userEquip.dressEquip["tou"].equipColor);
} }
if (userEquip.dressEquip.ContainsKey("yi")) if (userEquip.dressEquip.ContainsKey("yi"))
{ {
txtYi.text = userEquip.dressEquip["yi"].name; txtYi.text = userEquip.dressEquip["yi"].name;
txtYi.color = GameMgr.Instance.HexToColor(userEquip.dressEquip["yi"].color); txtYi.color = GameMgr.Instance.HexToColor(userEquip.dressEquip["yi"].equipColor);
} }
if (userEquip.dressEquip.ContainsKey("shou")) if (userEquip.dressEquip.ContainsKey("shou"))
{ {
txtShou.text = userEquip.dressEquip["shou"].name; txtShou.text = userEquip.dressEquip["shou"].name;
txtShou.color = GameMgr.Instance.HexToColor(userEquip.dressEquip["shou"].color); txtShou.color = GameMgr.Instance.HexToColor(userEquip.dressEquip["shou"].equipColor);
} }
if (userEquip.dressEquip.ContainsKey("yao")) if (userEquip.dressEquip.ContainsKey("yao"))
{ {
txtYao.text = userEquip.dressEquip["yao"].name; txtYao.text = userEquip.dressEquip["yao"].name;
txtYao.color = GameMgr.Instance.HexToColor(userEquip.dressEquip["yao"].color); txtYao.color = GameMgr.Instance.HexToColor(userEquip.dressEquip["yao"].equipColor);
} }
if (userEquip.dressEquip.ContainsKey("tui")) if (userEquip.dressEquip.ContainsKey("tui"))
{ {
txtTui.text = userEquip.dressEquip["tui"].name; txtTui.text = userEquip.dressEquip["tui"].name;
txtTui.color = GameMgr.Instance.HexToColor(userEquip.dressEquip["tui"].color); txtTui.color = GameMgr.Instance.HexToColor(userEquip.dressEquip["tui"].equipColor);
} }
if (userEquip.dressEquip.ContainsKey("xie")) if (userEquip.dressEquip.ContainsKey("xie"))
{ {
txtXie.text = userEquip.dressEquip["xie"].name; txtXie.text = userEquip.dressEquip["xie"].name;
txtXie.color = GameMgr.Instance.HexToColor(userEquip.dressEquip["xie"].color); txtXie.color = GameMgr.Instance.HexToColor(userEquip.dressEquip["xie"].equipColor);
} }
} }

View File

@ -1,82 +1,82 @@
[ [
{"id":1,"name":"天众一重","hp":100,"atk":10,"def":5,"atkTime":2,"stone":100,"yuan":1,"color":"FFFFFF","state":"炼气境一重"}, {"id":1,"name":"天众一重","hp":100,"atk":10,"def":5,"crit":5,"critDamage":20,"atkTime":2,"stone":11,"yuan":1,"color":"FFFFFF","state":"炼气境一重"},
{"id":2,"name":"天众二重","hp":200,"atk":20,"def":10,"atkTime":2,"stone":200,"yuan":1,"color":"FFFFFF","state":"炼气境二重"}, {"id":2,"name":"天众二重","hp":200,"atk":20,"def":10,"crit":5,"critDamage":20,"atkTime":2,"stone":12,"yuan":1,"color":"FFFFFF","state":"炼气境二重"},
{"id":3,"name":"天众三重","hp":300,"atk":30,"def":15,"atkTime":2,"stone":300,"yuan":1,"color":"FFFFFF","state":"炼气境三重"}, {"id":3,"name":"天众三重","hp":300,"atk":30,"def":15,"crit":5,"critDamage":20,"atkTime":2,"stone":13,"yuan":1,"color":"FFFFFF","state":"炼气境三重"},
{"id":4,"name":"天众四重","hp":400,"atk":40,"def":20,"atkTime":2,"stone":400,"yuan":1,"color":"FFFFFF","state":"炼气境四重"}, {"id":4,"name":"天众四重","hp":400,"atk":40,"def":20,"crit":5,"critDamage":20,"atkTime":2,"stone":14,"yuan":1,"color":"FFFFFF","state":"炼气境四重"},
{"id":5,"name":"天众五重","hp":500,"atk":50,"def":25,"atkTime":2,"stone":500,"yuan":1,"color":"FFFFFF","state":"炼气境五重"}, {"id":5,"name":"天众五重","hp":500,"atk":50,"def":25,"crit":5,"critDamage":20,"atkTime":2,"stone":15,"yuan":1,"color":"FFFFFF","state":"炼气境五重"},
{"id":6,"name":"天众六重","hp":600,"atk":60,"def":30,"atkTime":2,"stone":600,"yuan":1,"color":"FFFFFF","state":"炼气境六重"}, {"id":6,"name":"天众六重","hp":600,"atk":60,"def":30,"crit":5,"critDamage":20,"atkTime":2,"stone":16,"yuan":1,"color":"FFFFFF","state":"炼气境六重"},
{"id":7,"name":"天众七重","hp":700,"atk":70,"def":35,"atkTime":2,"stone":700,"yuan":1,"color":"FFFFFF","state":"炼气境七重"}, {"id":7,"name":"天众七重","hp":700,"atk":70,"def":35,"crit":5,"critDamage":20,"atkTime":2,"stone":17,"yuan":1,"color":"FFFFFF","state":"炼气境七重"},
{"id":8,"name":"天众八重","hp":800,"atk":80,"def":40,"atkTime":2,"stone":800,"yuan":1,"color":"FFFFFF","state":"炼气境八重"}, {"id":8,"name":"天众八重","hp":800,"atk":80,"def":40,"crit":5,"critDamage":20,"atkTime":2,"stone":18,"yuan":1,"color":"FFFFFF","state":"炼气境八重"},
{"id":9,"name":"天众九重","hp":900,"atk":90,"def":45,"atkTime":2,"stone":900,"yuan":1,"color":"FFFFFF","state":"炼气境九重"}, {"id":9,"name":"天众九重","hp":900,"atk":90,"def":45,"crit":5,"critDamage":20,"atkTime":2,"stone":19,"yuan":1,"color":"FFFFFF","state":"炼气境九重"},
{"id":10,"name":"天众十重","hp":1000,"atk":100,"def":50,"atkTime":2,"stone":1000,"yuan":1,"color":"FFFFFF","state":"炼气境十重"}, {"id":10,"name":"天众十重","hp":1000,"atk":100,"def":50,"crit":5,"critDamage":20,"atkTime":2,"stone":20,"yuan":1,"color":"FFFFFF","state":"炼气境十重"},
{"id":11,"name":"龙众一重","hp":1500,"atk":120,"def":60,"atkTime":1.9,"stone":2100,"yuan":2,"color":"00B713","state":"筑基境一重"}, {"id":11,"name":"龙众一重","hp":1500,"atk":120,"def":60,"crit":10,"critDamage":20,"atkTime":1.9,"stone":22,"yuan":2,"color":"00B713","state":"筑基境一重"},
{"id":12,"name":"龙众二重","hp":2000,"atk":140,"def":70,"atkTime":1.9,"stone":2200,"yuan":2,"color":"00B713","state":"筑基境二重"}, {"id":12,"name":"龙众二重","hp":2000,"atk":140,"def":70,"crit":10,"critDamage":20,"atkTime":1.9,"stone":24,"yuan":2,"color":"00B713","state":"筑基境二重"},
{"id":13,"name":"龙众三重","hp":2500,"atk":160,"def":80,"atkTime":1.9,"stone":2300,"yuan":2,"color":"00B713","state":"筑基境三重"}, {"id":13,"name":"龙众三重","hp":2500,"atk":160,"def":80,"crit":10,"critDamage":20,"atkTime":1.9,"stone":26,"yuan":2,"color":"00B713","state":"筑基境三重"},
{"id":14,"name":"龙众四重","hp":3000,"atk":180,"def":90,"atkTime":1.9,"stone":2400,"yuan":2,"color":"00B713","state":"筑基境四重"}, {"id":14,"name":"龙众四重","hp":3000,"atk":180,"def":90,"crit":10,"critDamage":20,"atkTime":1.9,"stone":28,"yuan":2,"color":"00B713","state":"筑基境四重"},
{"id":15,"name":"龙众五重","hp":3500,"atk":200,"def":100,"atkTime":1.9,"stone":2500,"yuan":2,"color":"00B713","state":"筑基境五重"}, {"id":15,"name":"龙众五重","hp":3500,"atk":200,"def":100,"crit":10,"critDamage":20,"atkTime":1.9,"stone":30,"yuan":2,"color":"00B713","state":"筑基境五重"},
{"id":16,"name":"龙众六重","hp":4000,"atk":220,"def":110,"atkTime":1.9,"stone":2600,"yuan":3,"color":"00B713","state":"筑基境六重"}, {"id":16,"name":"龙众六重","hp":4000,"atk":220,"def":110,"crit":10,"critDamage":20,"atkTime":1.9,"stone":32,"yuan":3,"color":"00B713","state":"筑基境六重"},
{"id":17,"name":"龙众七重","hp":4500,"atk":240,"def":120,"atkTime":1.9,"stone":2700,"yuan":3,"color":"00B713","state":"筑基境七重"}, {"id":17,"name":"龙众七重","hp":4500,"atk":240,"def":120,"crit":10,"critDamage":20,"atkTime":1.9,"stone":34,"yuan":3,"color":"00B713","state":"筑基境七重"},
{"id":18,"name":"龙众八重","hp":5000,"atk":260,"def":130,"atkTime":1.9,"stone":2800,"yuan":3,"color":"00B713","state":"筑基境八重"}, {"id":18,"name":"龙众八重","hp":5000,"atk":260,"def":130,"crit":10,"critDamage":20,"atkTime":1.9,"stone":36,"yuan":3,"color":"00B713","state":"筑基境八重"},
{"id":19,"name":"龙众九重","hp":5500,"atk":280,"def":140,"atkTime":1.9,"stone":2900,"yuan":3,"color":"00B713","state":"筑基境九重"}, {"id":19,"name":"龙众九重","hp":5500,"atk":280,"def":140,"crit":10,"critDamage":20,"atkTime":1.9,"stone":38,"yuan":3,"color":"00B713","state":"筑基境九重"},
{"id":20,"name":"龙众十重","hp":6000,"atk":300,"def":150,"atkTime":1.9,"stone":3000,"yuan":3,"color":"00B713","state":"筑基境十重"}, {"id":20,"name":"龙众十重","hp":6000,"atk":300,"def":150,"crit":10,"critDamage":20,"atkTime":1.9,"stone":40,"yuan":3,"color":"00B713","state":"筑基境十重"},
{"id":21,"name":"夜叉一重","hp":8000,"atk":400,"def":200,"atkTime":1.8,"stone":5100,"yuan":4,"color":"0030FF","state":"金丹境一重"}, {"id":21,"name":"夜叉一重","hp":8000,"atk":400,"def":200,"crit":15,"critDamage":20,"atkTime":1.8,"stone":44,"yuan":4,"color":"0030FF","state":"金丹境一重"},
{"id":22,"name":"夜叉二重","hp":9000,"atk":450,"def":225,"atkTime":1.8,"stone":5200,"yuan":4,"color":"0030FF","state":"金丹境二重"}, {"id":22,"name":"夜叉二重","hp":9000,"atk":450,"def":225,"crit":15,"critDamage":20,"atkTime":1.8,"stone":48,"yuan":4,"color":"0030FF","state":"金丹境二重"},
{"id":23,"name":"夜叉三重","hp":10000,"atk":500,"def":250,"atkTime":1.8,"stone":5300,"yuan":4,"color":"0030FF","state":"金丹境三重"}, {"id":23,"name":"夜叉三重","hp":10000,"atk":500,"def":250,"crit":15,"critDamage":20,"atkTime":1.8,"stone":52,"yuan":4,"color":"0030FF","state":"金丹境三重"},
{"id":24,"name":"夜叉四重","hp":11000,"atk":550,"def":275,"atkTime":1.8,"stone":5400,"yuan":5,"color":"0030FF","state":"金丹境四重"}, {"id":24,"name":"夜叉四重","hp":11000,"atk":550,"def":275,"crit":15,"critDamage":20,"atkTime":1.8,"stone":56,"yuan":5,"color":"0030FF","state":"金丹境四重"},
{"id":25,"name":"夜叉五重","hp":12000,"atk":600,"def":300,"atkTime":1.8,"stone":5500,"yuan":5,"color":"0030FF","state":"金丹境五重"}, {"id":25,"name":"夜叉五重","hp":12000,"atk":600,"def":300,"crit":15,"critDamage":20,"atkTime":1.8,"stone":60,"yuan":5,"color":"0030FF","state":"金丹境五重"},
{"id":26,"name":"夜叉六重","hp":13000,"atk":650,"def":325,"atkTime":1.8,"stone":5600,"yuan":6,"color":"0030FF","state":"金丹境六重"}, {"id":26,"name":"夜叉六重","hp":13000,"atk":650,"def":325,"crit":15,"critDamage":20,"atkTime":1.8,"stone":64,"yuan":6,"color":"0030FF","state":"金丹境六重"},
{"id":27,"name":"夜叉七重","hp":14000,"atk":700,"def":350,"atkTime":1.8,"stone":5700,"yuan":6,"color":"0030FF","state":"金丹境七重"}, {"id":27,"name":"夜叉七重","hp":14000,"atk":700,"def":350,"crit":15,"critDamage":20,"atkTime":1.8,"stone":68,"yuan":6,"color":"0030FF","state":"金丹境七重"},
{"id":28,"name":"夜叉八重","hp":15000,"atk":750,"def":375,"atkTime":1.8,"stone":5800,"yuan":6,"color":"0030FF","state":"金丹境八重"}, {"id":28,"name":"夜叉八重","hp":15000,"atk":750,"def":375,"crit":15,"critDamage":20,"atkTime":1.8,"stone":72,"yuan":6,"color":"0030FF","state":"金丹境八重"},
{"id":29,"name":"夜叉九重","hp":16000,"atk":800,"def":400,"atkTime":1.8,"stone":5900,"yuan":7,"color":"0030FF","state":"金丹境九重"}, {"id":29,"name":"夜叉九重","hp":16000,"atk":800,"def":400,"crit":15,"critDamage":20,"atkTime":1.8,"stone":76,"yuan":7,"color":"0030FF","state":"金丹境九重"},
{"id":30,"name":"夜叉十重","hp":17000,"atk":850,"def":425,"atkTime":1.8,"stone":6000,"yuan":7,"color":"0030FF","state":"金丹境十重"}, {"id":30,"name":"夜叉十重","hp":17000,"atk":850,"def":425,"crit":15,"critDamage":20,"atkTime":1.8,"stone":80,"yuan":7,"color":"0030FF","state":"金丹境十重"},
{"id":31,"name":"乾达婆一重","hp":19000,"atk":1100,"def":550,"atkTime":1.7,"stone":8100,"yuan":8,"color":"8800FF","state":"化神境一重"}, {"id":31,"name":"乾达婆一重","hp":19000,"atk":1100,"def":550,"crit":15,"critDamage":30,"atkTime":1.7,"stone":88,"yuan":8,"color":"8800FF","state":"化神境一重"},
{"id":32,"name":"乾达婆二重","hp":21000,"atk":1200,"def":600,"atkTime":1.7,"stone":8200,"yuan":8,"color":"8800FF","state":"化神境二重"}, {"id":32,"name":"乾达婆二重","hp":21000,"atk":1200,"def":600,"crit":15,"critDamage":30,"atkTime":1.7,"stone":96,"yuan":8,"color":"8800FF","state":"化神境二重"},
{"id":33,"name":"乾达婆三重","hp":23000,"atk":1300,"def":650,"atkTime":1.7,"stone":8300,"yuan":9,"color":"8800FF","state":"化神境三重"}, {"id":33,"name":"乾达婆三重","hp":23000,"atk":1300,"def":650,"crit":15,"critDamage":30,"atkTime":1.7,"stone":104,"yuan":9,"color":"8800FF","state":"化神境三重"},
{"id":34,"name":"乾达婆四重","hp":25000,"atk":1400,"def":700,"atkTime":1.7,"stone":8400,"yuan":10,"color":"8800FF","state":"化神境四重"}, {"id":34,"name":"乾达婆四重","hp":25000,"atk":1400,"def":700,"crit":15,"critDamage":30,"atkTime":1.7,"stone":112,"yuan":10,"color":"8800FF","state":"化神境四重"},
{"id":35,"name":"乾达婆五重","hp":27000,"atk":1500,"def":750,"atkTime":1.7,"stone":8500,"yuan":11,"color":"8800FF","state":"化神境五重"}, {"id":35,"name":"乾达婆五重","hp":27000,"atk":1500,"def":750,"crit":15,"critDamage":30,"atkTime":1.7,"stone":120,"yuan":11,"color":"8800FF","state":"化神境五重"},
{"id":36,"name":"乾达婆六重","hp":29000,"atk":1600,"def":800,"atkTime":1.7,"stone":8600,"yuan":12,"color":"8800FF","state":"化神境六重"}, {"id":36,"name":"乾达婆六重","hp":29000,"atk":1600,"def":800,"crit":15,"critDamage":30,"atkTime":1.7,"stone":128,"yuan":12,"color":"8800FF","state":"化神境六重"},
{"id":37,"name":"乾达婆七重","hp":31000,"atk":1700,"def":850,"atkTime":1.7,"stone":8700,"yuan":12,"color":"8800FF","state":"化神境七重"}, {"id":37,"name":"乾达婆七重","hp":31000,"atk":1700,"def":850,"crit":15,"critDamage":30,"atkTime":1.7,"stone":136,"yuan":12,"color":"8800FF","state":"化神境七重"},
{"id":38,"name":"乾达婆八重","hp":33000,"atk":1800,"def":900,"atkTime":1.7,"stone":8800,"yuan":13,"color":"8800FF","state":"化神境八重"}, {"id":38,"name":"乾达婆八重","hp":33000,"atk":1800,"def":900,"crit":15,"critDamage":30,"atkTime":1.7,"stone":144,"yuan":13,"color":"8800FF","state":"化神境八重"},
{"id":39,"name":"乾达婆九重","hp":35000,"atk":1900,"def":950,"atkTime":1.7,"stone":8900,"yuan":14,"color":"8800FF","state":"化神境九重"}, {"id":39,"name":"乾达婆九重","hp":35000,"atk":1900,"def":950,"crit":15,"critDamage":30,"atkTime":1.7,"stone":152,"yuan":14,"color":"8800FF","state":"化神境九重"},
{"id":40,"name":"乾达婆十重","hp":37000,"atk":2000,"def":1000,"atkTime":1.7,"stone":9000,"yuan":15,"color":"8800FF","state":"化神境十重"}, {"id":40,"name":"乾达婆十重","hp":37000,"atk":2000,"def":1000,"crit":15,"critDamage":30,"atkTime":1.7,"stone":160,"yuan":15,"color":"8800FF","state":"化神境十重"},
{"id":41,"name":"阿修罗一重","hp":40000,"atk":2200,"def":1100,"atkTime":1.6,"stone":11000,"yuan":16,"color":"00A6A0","state":"渡劫境一重"}, {"id":41,"name":"阿修罗一重","hp":40000,"atk":2200,"def":1100,"crit":20,"critDamage":30,"atkTime":1.6,"stone":176,"yuan":16,"color":"00A6A0","state":"渡劫境一重"},
{"id":42,"name":"阿修罗二重","hp":50000,"atk":2400,"def":1200,"atkTime":1.6,"stone":12000,"yuan":17,"color":"00A6A0","state":"渡劫境二重"}, {"id":42,"name":"阿修罗二重","hp":50000,"atk":2400,"def":1200,"crit":20,"critDamage":30,"atkTime":1.6,"stone":192,"yuan":17,"color":"00A6A0","state":"渡劫境二重"},
{"id":43,"name":"阿修罗三重","hp":60000,"atk":2600,"def":1300,"atkTime":1.6,"stone":13000,"yuan":18,"color":"00A6A0","state":"渡劫境三重"}, {"id":43,"name":"阿修罗三重","hp":60000,"atk":2600,"def":1300,"crit":20,"critDamage":30,"atkTime":1.6,"stone":208,"yuan":18,"color":"00A6A0","state":"渡劫境三重"},
{"id":44,"name":"阿修罗四重","hp":70000,"atk":2800,"def":1400,"atkTime":1.6,"stone":14000,"yuan":19,"color":"00A6A0","state":"渡劫境四重"}, {"id":44,"name":"阿修罗四重","hp":70000,"atk":2800,"def":1400,"crit":20,"critDamage":30,"atkTime":1.6,"stone":224,"yuan":19,"color":"00A6A0","state":"渡劫境四重"},
{"id":45,"name":"阿修罗五重","hp":80000,"atk":3000,"def":1500,"atkTime":1.6,"stone":15000,"yuan":20,"color":"00A6A0","state":"渡劫境五重"}, {"id":45,"name":"阿修罗五重","hp":80000,"atk":3000,"def":1500,"crit":20,"critDamage":30,"atkTime":1.6,"stone":240,"yuan":20,"color":"00A6A0","state":"渡劫境五重"},
{"id":46,"name":"阿修罗六重","hp":90000,"atk":3200,"def":1600,"atkTime":1.6,"stone":16000,"yuan":21,"color":"00A6A0","state":"渡劫境六重"}, {"id":46,"name":"阿修罗六重","hp":90000,"atk":3200,"def":1600,"crit":20,"critDamage":30,"atkTime":1.6,"stone":256,"yuan":21,"color":"00A6A0","state":"渡劫境六重"},
{"id":47,"name":"阿修罗七重","hp":100000,"atk":3400,"def":1700,"atkTime":1.6,"stone":17000,"yuan":22,"color":"00A6A0","state":"渡劫境七重"}, {"id":47,"name":"阿修罗七重","hp":100000,"atk":3400,"def":1700,"crit":20,"critDamage":30,"atkTime":1.6,"stone":272,"yuan":22,"color":"00A6A0","state":"渡劫境七重"},
{"id":48,"name":"阿修罗八重","hp":110000,"atk":3600,"def":1800,"atkTime":1.6,"stone":18000,"yuan":23,"color":"00A6A0","state":"渡劫境八重"}, {"id":48,"name":"阿修罗八重","hp":110000,"atk":3600,"def":1800,"crit":20,"critDamage":30,"atkTime":1.6,"stone":288,"yuan":23,"color":"00A6A0","state":"渡劫境八重"},
{"id":49,"name":"阿修罗九重","hp":120000,"atk":3800,"def":1900,"atkTime":1.6,"stone":19000,"yuan":24,"color":"00A6A0","state":"渡劫境九重"}, {"id":49,"name":"阿修罗九重","hp":120000,"atk":3800,"def":1900,"crit":20,"critDamage":30,"atkTime":1.6,"stone":304,"yuan":24,"color":"00A6A0","state":"渡劫境九重"},
{"id":50,"name":"阿修罗十重","hp":130000,"atk":4000,"def":2000,"atkTime":1.6,"stone":20000,"yuan":25,"color":"00A6A0","state":"渡劫境十重"}, {"id":50,"name":"阿修罗十重","hp":130000,"atk":4000,"def":2000,"crit":20,"critDamage":30,"atkTime":1.6,"stone":320,"yuan":25,"color":"00A6A0","state":"渡劫境十重"},
{"id":51,"name":"迦楼罗一重","hp":150000,"atk":5000,"def":2500,"atkTime":1.5,"stone":31000,"yuan":26,"color":"FF008E","state":"合体境一重"}, {"id":51,"name":"迦楼罗一重","hp":150000,"atk":5000,"def":2500,"crit":20,"critDamage":30,"atkTime":1.5,"stone":352,"yuan":26,"color":"FF008E","state":"合体境一重"},
{"id":52,"name":"迦楼罗二重","hp":180000,"atk":6500,"def":2750,"atkTime":1.5,"stone":32000,"yuan":27,"color":"FF008E","state":"合体境二重"}, {"id":52,"name":"迦楼罗二重","hp":180000,"atk":6500,"def":2750,"crit":20,"critDamage":30,"atkTime":1.5,"stone":384,"yuan":27,"color":"FF008E","state":"合体境二重"},
{"id":53,"name":"迦楼罗三重","hp":210000,"atk":8000,"def":3000,"atkTime":1.5,"stone":33000,"yuan":28,"color":"FF008E","state":"合体境三重"}, {"id":53,"name":"迦楼罗三重","hp":210000,"atk":8000,"def":3000,"crit":20,"critDamage":30,"atkTime":1.5,"stone":416,"yuan":28,"color":"FF008E","state":"合体境三重"},
{"id":54,"name":"迦楼罗四重","hp":240000,"atk":9500,"def":3250,"atkTime":1.5,"stone":34000,"yuan":29,"color":"FF008E","state":"合体境四重"}, {"id":54,"name":"迦楼罗四重","hp":240000,"atk":9500,"def":3250,"crit":20,"critDamage":30,"atkTime":1.5,"stone":448,"yuan":29,"color":"FF008E","state":"合体境四重"},
{"id":55,"name":"迦楼罗五重","hp":270000,"atk":11000,"def":5500,"atkTime":1.5,"stone":35000,"yuan":30,"color":"FF008E","state":"合体境五重"}, {"id":55,"name":"迦楼罗五重","hp":270000,"atk":11000,"def":5500,"crit":20,"critDamage":30,"atkTime":1.5,"stone":480,"yuan":30,"color":"FF008E","state":"合体境五重"},
{"id":56,"name":"迦楼罗六重","hp":300000,"atk":12500,"def":6250,"atkTime":1.5,"stone":36000,"yuan":31,"color":"FF008E","state":"合体境六重"}, {"id":56,"name":"迦楼罗六重","hp":300000,"atk":12500,"def":6250,"crit":20,"critDamage":30,"atkTime":1.5,"stone":512,"yuan":31,"color":"FF008E","state":"合体境六重"},
{"id":57,"name":"迦楼罗七重","hp":330000,"atk":14000,"def":7000,"atkTime":1.5,"stone":37000,"yuan":32,"color":"FF008E","state":"合体境七重"}, {"id":57,"name":"迦楼罗七重","hp":330000,"atk":14000,"def":7000,"crit":20,"critDamage":30,"atkTime":1.5,"stone":544,"yuan":32,"color":"FF008E","state":"合体境七重"},
{"id":58,"name":"迦楼罗八重","hp":360000,"atk":15500,"def":7750,"atkTime":1.5,"stone":38000,"yuan":33,"color":"FF008E","state":"合体境八重"}, {"id":58,"name":"迦楼罗八重","hp":360000,"atk":15500,"def":7750,"crit":20,"critDamage":30,"atkTime":1.5,"stone":576,"yuan":33,"color":"FF008E","state":"合体境八重"},
{"id":59,"name":"迦楼罗九重","hp":390000,"atk":17000,"def":8500,"atkTime":1.5,"stone":39000,"yuan":34,"color":"FF008E","state":"合体境九重"}, {"id":59,"name":"迦楼罗九重","hp":390000,"atk":17000,"def":8500,"crit":20,"critDamage":30,"atkTime":1.5,"stone":608,"yuan":34,"color":"FF008E","state":"合体境九重"},
{"id":60,"name":"迦楼罗十重","hp":420000,"atk":18500,"def":9250,"atkTime":1.5,"stone":40000,"yuan":35,"color":"FF008E","state":"合体境十重"}, {"id":60,"name":"迦楼罗十重","hp":420000,"atk":18500,"def":9250,"crit":20,"critDamage":30,"atkTime":1.5,"stone":640,"yuan":35,"color":"FF008E","state":"合体境十重"},
{"id":61,"name":"紧那罗一重","hp":500000,"atk":20000,"def":10000,"atkTime":1.3,"stone":60000,"yuan":36,"color":"BE0101","state":"大乘境一重"}, {"id":61,"name":"紧那罗一重","hp":500000,"atk":20000,"def":10000,"crit":25,"critDamage":40,"atkTime":1.3,"stone":704,"yuan":36,"color":"BE0101","state":"大乘境一重"},
{"id":62,"name":"紧那罗二重","hp":550000,"atk":23000,"def":11500,"atkTime":1.3,"stone":65000,"yuan":37,"color":"BE0101","state":"大乘境二重"}, {"id":62,"name":"紧那罗二重","hp":550000,"atk":23000,"def":11500,"crit":25,"critDamage":40,"atkTime":1.3,"stone":768,"yuan":37,"color":"BE0101","state":"大乘境二重"},
{"id":63,"name":"紧那罗三重","hp":600000,"atk":26000,"def":13000,"atkTime":1.3,"stone":70000,"yuan":38,"color":"BE0101","state":"大乘境三重"}, {"id":63,"name":"紧那罗三重","hp":600000,"atk":26000,"def":13000,"crit":25,"critDamage":40,"atkTime":1.3,"stone":832,"yuan":38,"color":"BE0101","state":"大乘境三重"},
{"id":64,"name":"紧那罗四重","hp":650000,"atk":29000,"def":14500,"atkTime":1.3,"stone":75000,"yuan":39,"color":"BE0101","state":"大乘境四重"}, {"id":64,"name":"紧那罗四重","hp":650000,"atk":29000,"def":14500,"crit":25,"critDamage":40,"atkTime":1.3,"stone":896,"yuan":39,"color":"BE0101","state":"大乘境四重"},
{"id":65,"name":"紧那罗五重","hp":700000,"atk":32000,"def":16000,"atkTime":1.3,"stone":80000,"yuan":40,"color":"BE0101","state":"大乘境五重"}, {"id":65,"name":"紧那罗五重","hp":700000,"atk":32000,"def":16000,"crit":25,"critDamage":40,"atkTime":1.3,"stone":960,"yuan":40,"color":"BE0101","state":"大乘境五重"},
{"id":66,"name":"紧那罗六重","hp":750000,"atk":35000,"def":17500,"atkTime":1.3,"stone":85000,"yuan":41,"color":"BE0101","state":"大乘境六重"}, {"id":66,"name":"紧那罗六重","hp":750000,"atk":35000,"def":17500,"crit":25,"critDamage":40,"atkTime":1.3,"stone":1024,"yuan":41,"color":"BE0101","state":"大乘境六重"},
{"id":67,"name":"紧那罗七重","hp":800000,"atk":38000,"def":19000,"atkTime":1.3,"stone":90000,"yuan":42,"color":"BE0101","state":"大乘境七重"}, {"id":67,"name":"紧那罗七重","hp":800000,"atk":38000,"def":19000,"crit":25,"critDamage":40,"atkTime":1.3,"stone":1088,"yuan":42,"color":"BE0101","state":"大乘境七重"},
{"id":68,"name":"紧那罗八重","hp":850000,"atk":41000,"def":20500,"atkTime":1.3,"stone":95000,"yuan":43,"color":"BE0101","state":"大乘境八重"}, {"id":68,"name":"紧那罗八重","hp":850000,"atk":41000,"def":20500,"crit":25,"critDamage":40,"atkTime":1.3,"stone":1152,"yuan":43,"color":"BE0101","state":"大乘境八重"},
{"id":69,"name":"紧那罗九重","hp":900000,"atk":44000,"def":22000,"atkTime":1.3,"stone":100000,"yuan":44,"color":"BE0101","state":"大乘境九重"}, {"id":69,"name":"紧那罗九重","hp":900000,"atk":44000,"def":22000,"crit":25,"critDamage":40,"atkTime":1.3,"stone":1216,"yuan":44,"color":"BE0101","state":"大乘境九重"},
{"id":70,"name":"紧那罗十重","hp":950000,"atk":47000,"def":23500,"atkTime":1.3,"stone":105000,"yuan":45,"color":"BE0101","state":"大乘境十重"}, {"id":70,"name":"紧那罗十重","hp":950000,"atk":47000,"def":23500,"crit":25,"critDamage":40,"atkTime":1.3,"stone":1280,"yuan":45,"color":"BE0101","state":"大乘境十重"},
{"id":71,"name":"摩呼罗迦一重","hp":1500000,"atk":60000,"def":30000,"atkTime":1,"stone":200000,"yuan":46,"color":"FF5F04","state":"飞升境一重"}, {"id":71,"name":"摩呼罗迦一重","hp":1500000,"atk":60000,"def":30000,"crit":25,"critDamage":40,"atkTime":1,"stone":1408,"yuan":46,"color":"FF5F04","state":"飞升境一重"},
{"id":72,"name":"摩呼罗迦二重","hp":2000000,"atk":80000,"def":40000,"atkTime":1,"stone":300000,"yuan":47,"color":"FF5F04","state":"飞升境二重"}, {"id":72,"name":"摩呼罗迦二重","hp":2000000,"atk":80000,"def":40000,"crit":25,"critDamage":40,"atkTime":1,"stone":1536,"yuan":47,"color":"FF5F04","state":"飞升境二重"},
{"id":73,"name":"摩呼罗迦三重","hp":2500000,"atk":100000,"def":50000,"atkTime":1,"stone":400000,"yuan":48,"color":"FF5F04","state":"飞升境三重"}, {"id":73,"name":"摩呼罗迦三重","hp":2500000,"atk":100000,"def":50000,"crit":25,"critDamage":40,"atkTime":1,"stone":1664,"yuan":48,"color":"FF5F04","state":"飞升境三重"},
{"id":74,"name":"摩呼罗迦四重","hp":3000000,"atk":120000,"def":60000,"atkTime":1,"stone":500000,"yuan":49,"color":"FF5F04","state":"飞升境四重"}, {"id":74,"name":"摩呼罗迦四重","hp":3000000,"atk":120000,"def":60000,"crit":25,"critDamage":40,"atkTime":1,"stone":1792,"yuan":49,"color":"FF5F04","state":"飞升境四重"},
{"id":75,"name":"摩呼罗迦五重","hp":3500000,"atk":140000,"def":70000,"atkTime":1,"stone":600000,"yuan":50,"color":"FF5F04","state":"飞升境五重"}, {"id":75,"name":"摩呼罗迦五重","hp":3500000,"atk":140000,"def":70000,"crit":25,"critDamage":40,"atkTime":1,"stone":1920,"yuan":50,"color":"FF5F04","state":"飞升境五重"},
{"id":76,"name":"摩呼罗迦六重","hp":4000000,"atk":160000,"def":80000,"atkTime":1,"stone":700000,"yuan":51,"color":"FF5F04","state":"飞升境六重"}, {"id":76,"name":"摩呼罗迦六重","hp":4000000,"atk":160000,"def":80000,"crit":25,"critDamage":40,"atkTime":1,"stone":2048,"yuan":51,"color":"FF5F04","state":"飞升境六重"},
{"id":77,"name":"摩呼罗迦七重","hp":4500000,"atk":180000,"def":90000,"atkTime":1,"stone":800000,"yuan":52,"color":"FF5F04","state":"飞升境七重"}, {"id":77,"name":"摩呼罗迦七重","hp":4500000,"atk":180000,"def":90000,"crit":25,"critDamage":40,"atkTime":1,"stone":2176,"yuan":52,"color":"FF5F04","state":"飞升境七重"},
{"id":78,"name":"摩呼罗迦八重","hp":5000000,"atk":200000,"def":100000,"atkTime":1,"stone":900000,"yuan":53,"color":"FF5F04","state":"飞升境八重"}, {"id":78,"name":"摩呼罗迦八重","hp":5000000,"atk":200000,"def":100000,"crit":25,"critDamage":40,"atkTime":1,"stone":2304,"yuan":53,"color":"FF5F04","state":"飞升境八重"},
{"id":79,"name":"摩呼罗迦九重","hp":5500000,"atk":220000,"def":110000,"atkTime":1,"stone":1000000,"yuan":54,"color":"FF5F04","state":"飞升境九重"}, {"id":79,"name":"摩呼罗迦九重","hp":5500000,"atk":220000,"def":110000,"crit":25,"critDamage":40,"atkTime":1,"stone":2432,"yuan":54,"color":"FF5F04","state":"飞升境九重"},
{"id":80,"name":"摩呼罗迦十重","hp":6000000,"atk":240000,"def":120000,"atkTime":1,"stone":1100000,"yuan":55,"color":"FF5F04","state":"飞升境十重"} {"id":80,"name":"摩呼罗迦十重","hp":6000000,"atk":240000,"def":120000,"crit":25,"critDamage":40,"atkTime":1,"stone":2560,"yuan":55,"color":"FF5F04","state":"飞升境十重"}
] ]