New systems & spells

- Fixed issue on projectile hit events that triggered multiple times.
- Implemented % costs for health and mana
- Updated key binding UI slots to show health costs if present
- New Necromancer projectile AoEOverTime ability: Bonestorm.
- New Vamp/Cultist/Satanist summon ability: Bloody Shadow.
This commit is contained in:
Pedro Gomes 2024-12-29 18:39:40 +00:00
parent 80504d79cd
commit b29b17ebfd
46 changed files with 29704 additions and 55 deletions

View File

@ -297,7 +297,7 @@ AnimatorState:
m_MirrorParameterActive: 0 m_MirrorParameterActive: 0
m_CycleOffsetParameterActive: 0 m_CycleOffsetParameterActive: 0
m_TimeParameterActive: 0 m_TimeParameterActive: 0
m_Motion: {fileID: 7400000, guid: 49126f6401da22240a2e1bebe075ed84, type: 2} m_Motion: {fileID: 7400000, guid: 6820b908f3e71684897e235b78aa44e2, type: 2}
m_Tag: m_Tag:
m_SpeedParameter: throwingTime m_SpeedParameter: throwingTime
m_MirrorParameter: m_MirrorParameter:
@ -597,85 +597,85 @@ AnimatorController:
m_DefaultFloat: 0 m_DefaultFloat: 0
m_DefaultInt: 0 m_DefaultInt: 0
m_DefaultBool: 0 m_DefaultBool: 0
m_Controller: {fileID: 0} m_Controller: {fileID: 9100000}
- m_Name: throw - m_Name: throw
m_Type: 9 m_Type: 9
m_DefaultFloat: 0 m_DefaultFloat: 0
m_DefaultInt: 0 m_DefaultInt: 0
m_DefaultBool: 0 m_DefaultBool: 0
m_Controller: {fileID: 0} m_Controller: {fileID: 9100000}
- m_Name: throwingTime - m_Name: throwingTime
m_Type: 1 m_Type: 1
m_DefaultFloat: 1 m_DefaultFloat: 1
m_DefaultInt: 0 m_DefaultInt: 0
m_DefaultBool: 0 m_DefaultBool: 0
m_Controller: {fileID: 0} m_Controller: {fileID: 9100000}
- m_Name: castingTime - m_Name: castingTime
m_Type: 1 m_Type: 1
m_DefaultFloat: 0 m_DefaultFloat: 0
m_DefaultInt: 0 m_DefaultInt: 0
m_DefaultBool: 0 m_DefaultBool: 0
m_Controller: {fileID: 0} m_Controller: {fileID: 9100000}
- m_Name: cast - m_Name: cast
m_Type: 9 m_Type: 9
m_DefaultFloat: 0 m_DefaultFloat: 0
m_DefaultInt: 0 m_DefaultInt: 0
m_DefaultBool: 0 m_DefaultBool: 0
m_Controller: {fileID: 0} m_Controller: {fileID: 9100000}
- m_Name: melee - m_Name: melee
m_Type: 9 m_Type: 9
m_DefaultFloat: 0 m_DefaultFloat: 0
m_DefaultInt: 0 m_DefaultInt: 0
m_DefaultBool: 0 m_DefaultBool: 0
m_Controller: {fileID: 0} m_Controller: {fileID: 9100000}
- m_Name: spinning - m_Name: spinning
m_Type: 4 m_Type: 4
m_DefaultFloat: 0 m_DefaultFloat: 0
m_DefaultInt: 0 m_DefaultInt: 0
m_DefaultBool: 0 m_DefaultBool: 0
m_Controller: {fileID: 0} m_Controller: {fileID: 9100000}
- m_Name: dead - m_Name: dead
m_Type: 9 m_Type: 9
m_DefaultFloat: 0 m_DefaultFloat: 0
m_DefaultInt: 0 m_DefaultInt: 0
m_DefaultBool: 0 m_DefaultBool: 0
m_Controller: {fileID: 0} m_Controller: {fileID: 9100000}
- m_Name: revived - m_Name: revived
m_Type: 9 m_Type: 9
m_DefaultFloat: 0 m_DefaultFloat: 0
m_DefaultInt: 0 m_DefaultInt: 0
m_DefaultBool: 0 m_DefaultBool: 0
m_Controller: {fileID: 0} m_Controller: {fileID: 9100000}
- m_Name: summon - m_Name: summon
m_Type: 9 m_Type: 9
m_DefaultFloat: 0 m_DefaultFloat: 0
m_DefaultInt: 0 m_DefaultInt: 0
m_DefaultBool: 0 m_DefaultBool: 0
m_Controller: {fileID: 0} m_Controller: {fileID: 9100000}
- m_Name: fish - m_Name: fish
m_Type: 9 m_Type: 9
m_DefaultFloat: 0 m_DefaultFloat: 0
m_DefaultInt: 0 m_DefaultInt: 0
m_DefaultBool: 0 m_DefaultBool: 0
m_Controller: {fileID: 0} m_Controller: {fileID: 9100000}
- m_Name: pickup - m_Name: pickup
m_Type: 9 m_Type: 9
m_DefaultFloat: 0 m_DefaultFloat: 0
m_DefaultInt: 0 m_DefaultInt: 0
m_DefaultBool: 0 m_DefaultBool: 0
m_Controller: {fileID: 0} m_Controller: {fileID: 9100000}
- m_Name: potion - m_Name: potion
m_Type: 9 m_Type: 9
m_DefaultFloat: 0 m_DefaultFloat: 0
m_DefaultInt: 0 m_DefaultInt: 0
m_DefaultBool: 0 m_DefaultBool: 0
m_Controller: {fileID: 0} m_Controller: {fileID: 9100000}
- m_Name: spellcasting - m_Name: spellcasting
m_Type: 4 m_Type: 4
m_DefaultFloat: 0 m_DefaultFloat: 0
m_DefaultInt: 0 m_DefaultInt: 0
m_DefaultBool: 0 m_DefaultBool: 0
m_Controller: {fileID: 0} m_Controller: {fileID: 9100000}
m_AnimatorLayers: m_AnimatorLayers:
- serializedVersion: 5 - serializedVersion: 5
m_Name: Base Layer m_Name: Base Layer

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 6820b908f3e71684897e235b78aa44e2
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 7400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,80 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: vampBloodyShadow_texture
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 1
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 1
- _GlossyReflections: 1
- _Metallic: 1
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 0.366, g: 0.0063652177, b: 0, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
m_BuildTextureStacks: []

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 70d9622fe7c8eca4fa0bc254a79094ec
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -4520,11 +4520,12 @@ MonoBehaviour:
- {fileID: 11400000, guid: b9a421f28b69be7499e354879b040b1f, type: 2} - {fileID: 11400000, guid: b9a421f28b69be7499e354879b040b1f, type: 2}
- characterClass: {fileID: 11400000, guid: 0751a225be067c646b9bc92f245d4292, type: 2} - characterClass: {fileID: 11400000, guid: 0751a225be067c646b9bc92f245d4292, type: 2}
possibleClassAbilities: possibleClassAbilities:
- {fileID: 11400000, guid: 48a85da984c9762418f0badd5730672a, type: 2}
- {fileID: 11400000, guid: 2aedba226d5809043bcd0f660b35f74f, type: 2} - {fileID: 11400000, guid: 2aedba226d5809043bcd0f660b35f74f, type: 2}
- {fileID: 11400000, guid: 679598ad64000fa4aa4a8b5c1cb568e3, type: 2} - {fileID: 11400000, guid: 679598ad64000fa4aa4a8b5c1cb568e3, type: 2}
- {fileID: 11400000, guid: 48a85da984c9762418f0badd5730672a, type: 2}
- {fileID: 11400000, guid: e8ac285f957ac924babbb299999e6dbb, type: 2} - {fileID: 11400000, guid: e8ac285f957ac924babbb299999e6dbb, type: 2}
- {fileID: 11400000, guid: c546bb78e840d7c4abad8eff71c1dffe, type: 2} - {fileID: 11400000, guid: c546bb78e840d7c4abad8eff71c1dffe, type: 2}
- {fileID: 11400000, guid: 7d49a35055b686649bf20062b02d68cb, type: 2}
- characterClass: {fileID: 11400000, guid: 99c760c6691f1ad4eb236e73002266f5, type: 2} - characterClass: {fileID: 11400000, guid: 99c760c6691f1ad4eb236e73002266f5, type: 2}
possibleClassAbilities: possibleClassAbilities:
- {fileID: 11400000, guid: 28ba0b25b8f04354ebc653b15b7f3773, type: 2} - {fileID: 11400000, guid: 28ba0b25b8f04354ebc653b15b7f3773, type: 2}
@ -4543,6 +4544,7 @@ MonoBehaviour:
- {fileID: 11400000, guid: 80407ff808963814798f148b07dbf576, type: 2} - {fileID: 11400000, guid: 80407ff808963814798f148b07dbf576, type: 2}
- {fileID: 11400000, guid: f2c34fbff4781f84aa75dcc83f2fe57b, type: 2} - {fileID: 11400000, guid: f2c34fbff4781f84aa75dcc83f2fe57b, type: 2}
- {fileID: 11400000, guid: 3cab0af73858e9e48936aa83ba32d041, type: 2} - {fileID: 11400000, guid: 3cab0af73858e9e48936aa83ba32d041, type: 2}
- {fileID: 11400000, guid: 445df66fd514f9640b3f2f228a7b4aee, type: 2}
--- !u!1 &5057941381125395910 --- !u!1 &5057941381125395910
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -7367,6 +7369,9 @@ MonoBehaviour:
- {fileID: 11400000, guid: 07dbc802df380364e8f2bece0a013586, type: 2} - {fileID: 11400000, guid: 07dbc802df380364e8f2bece0a013586, type: 2}
- {fileID: 11400000, guid: 73dd02ce99b6eb34aafbae7bb339d645, type: 2} - {fileID: 11400000, guid: 73dd02ce99b6eb34aafbae7bb339d645, type: 2}
- {fileID: 11400000, guid: 10d87ca2edcf6444797882f22a3404de, type: 2} - {fileID: 11400000, guid: 10d87ca2edcf6444797882f22a3404de, type: 2}
- {fileID: 11400000, guid: 7d49a35055b686649bf20062b02d68cb, type: 2}
- {fileID: 11400000, guid: db1719bdb5e85f74683b2573604f639a, type: 2}
- {fileID: 11400000, guid: 445df66fd514f9640b3f2f228a7b4aee, type: 2}
--- !u!1 &7475116341184709871 --- !u!1 &7475116341184709871
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -18948,6 +18953,10 @@ PrefabInstance:
propertyPath: m_AnchoredPosition.y propertyPath: m_AnchoredPosition.y
value: 5 value: 5
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2240116213718434170, guid: 8e6107cb87ae02d43b74a0f7156a7754, type: 3}
propertyPath: m_RootOrder
value: 8
objectReference: {fileID: 0}
- target: {fileID: 4128365416075155250, guid: 8e6107cb87ae02d43b74a0f7156a7754, type: 3} - target: {fileID: 4128365416075155250, guid: 8e6107cb87ae02d43b74a0f7156a7754, type: 3}
propertyPath: m_IsActive propertyPath: m_IsActive
value: 0 value: 0
@ -19044,6 +19053,10 @@ PrefabInstance:
propertyPath: m_Name propertyPath: m_Name
value: AbilityBindInstance (4) value: AbilityBindInstance (4)
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 8015528414007822456, guid: 8e6107cb87ae02d43b74a0f7156a7754, type: 3}
propertyPath: m_RootOrder
value: 6
objectReference: {fileID: 0}
- target: {fileID: 8068696760208408251, guid: 8e6107cb87ae02d43b74a0f7156a7754, type: 3} - target: {fileID: 8068696760208408251, guid: 8e6107cb87ae02d43b74a0f7156a7754, type: 3}
propertyPath: m_Name propertyPath: m_Name
value: cooldown value: cooldown

View File

@ -111,8 +111,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
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: 20, y: -20} m_AnchoredPosition: {x: 20, y: -22.5}
m_SizeDelta: {x: 35, y: 20} m_SizeDelta: {x: 35, y: 15}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2354307243871871300 --- !u!222 &2354307243871871300
CanvasRenderer: CanvasRenderer:
@ -169,7 +169,7 @@ MonoBehaviour:
m_faceColor: m_faceColor:
serializedVersion: 2 serializedVersion: 2
rgba: 4294967295 rgba: 4294967295
m_fontSize: 17.9 m_fontSize: 13.4
m_fontSizeBase: 24 m_fontSizeBase: 24
m_fontWeight: 400 m_fontWeight: 400
m_enableAutoSizing: 1 m_enableAutoSizing: 1
@ -287,6 +287,82 @@ MonoBehaviour:
m_FillOrigin: 0 m_FillOrigin: 0
m_UseSpriteMesh: 0 m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1 m_PixelsPerUnitMultiplier: 1
--- !u!1 &4185474839696975322
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5468731390278590182}
- component: {fileID: 418073558103619897}
- component: {fileID: 5550587625328255777}
m_Layer: 5
m_Name: NotEnoughHealth
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!224 &5468731390278590182
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4185474839696975322}
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: 5756525528600931364}
m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &418073558103619897
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4185474839696975322}
m_CullTransparentMesh: 1
--- !u!114 &5550587625328255777
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4185474839696975322}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 0.15380977, b: 0.109803915, a: 0.4}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 0}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &4444551169812095635 --- !u!1 &4444551169812095635
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -319,7 +395,7 @@ RectTransform:
m_Children: m_Children:
- {fileID: 4017357383651222300} - {fileID: 4017357383651222300}
m_Father: {fileID: 5756525528600931364} m_Father: {fileID: 5756525528600931364}
m_RootOrder: 5 m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1}
@ -473,9 +549,10 @@ RectTransform:
m_Children: m_Children:
- {fileID: 1279504101772050932} - {fileID: 1279504101772050932}
- {fileID: 8339247302884748289} - {fileID: 8339247302884748289}
- {fileID: 5964246257226705716} - {fileID: 4576728431073535421}
- {fileID: 4877649046481684198} - {fileID: 4877649046481684198}
- {fileID: 3213720952488904518} - {fileID: 3213720952488904518}
- {fileID: 5468731390278590182}
- {fileID: 2240116213718434170} - {fileID: 2240116213718434170}
- {fileID: 8015528414007822456} - {fileID: 8015528414007822456}
m_Father: {fileID: 0} m_Father: {fileID: 0}
@ -537,14 +614,154 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
gameKey: {fileID: 0} gameKey: {fileID: 0}
isAlphaKey: 1
onAbilityKeyBinderSpawned: {fileID: 1259299941717394299} onAbilityKeyBinderSpawned: {fileID: 1259299941717394299}
bind: {fileID: 1038116386796738479} bind: {fileID: 1038116386796738479}
manaCost: {fileID: 155897292336221392} manaCost: {fileID: 155897292336221392}
healthCost: {fileID: 9206660112918895041}
cooldown_Text: {fileID: 0}
icon: {fileID: 8702117578033848689} icon: {fileID: 8702117578033848689}
noMana: {fileID: 5122095429438571753} noMana: {fileID: 5122095429438571753}
noHealth: {fileID: 4185474839696975322}
healthCostGO: {fileID: 6775159804060218676}
pressed: {fileID: 4444551169812095635} pressed: {fileID: 4444551169812095635}
coolDown: {fileID: 2413958677162281131} coolDown: {fileID: 2413958677162281131}
abilityKeyBinder: {fileID: 0} abilityKeyBinder: {fileID: 0}
--- !u!1 &6775159804060218676
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6003327703809972948}
- component: {fileID: 4047867992725443162}
- component: {fileID: 9206660112918895041}
m_Layer: 5
m_Name: HealthCost
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!224 &6003327703809972948
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6775159804060218676}
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: 4576728431073535421}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 17.5, y: -22.5}
m_SizeDelta: {x: 35, y: 15}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &4047867992725443162
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6775159804060218676}
m_CullTransparentMesh: 1
--- !u!114 &9206660112918895041
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6775159804060218676}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, 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_text: 0
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4280235007
m_fontColor: {r: 1, g: 0.19957656, b: 0.12156862, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 13.4
m_fontSizeBase: 24
m_fontWeight: 400
m_enableAutoSizing: 1
m_fontSizeMin: 1
m_fontSizeMax: 30
m_fontStyle: 1
m_HorizontalAlignment: 4
m_VerticalAlignment: 512
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 5, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!1 &6998086275343996441 --- !u!1 &6998086275343996441
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -773,13 +990,13 @@ RectTransform:
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 5756525528600931364} m_Father: {fileID: 4576728431073535421}
m_RootOrder: 2 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 1} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1} m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: -20, y: -20} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 35, y: 20} m_SizeDelta: {x: 35, y: 15}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &7067172745990757532 --- !u!222 &7067172745990757532
CanvasRenderer: CanvasRenderer:
@ -836,7 +1053,7 @@ MonoBehaviour:
m_faceColor: m_faceColor:
serializedVersion: 2 serializedVersion: 2
rgba: 4294967295 rgba: 4294967295
m_fontSize: 17.9 m_fontSize: 13.4
m_fontSizeBase: 24 m_fontSizeBase: 24
m_fontWeight: 400 m_fontWeight: 400
m_enableAutoSizing: 1 m_enableAutoSizing: 1
@ -908,7 +1125,7 @@ RectTransform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 5756525528600931364} m_Father: {fileID: 5756525528600931364}
m_RootOrder: 6 m_RootOrder: 7
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}
@ -931,3 +1148,68 @@ MonoBehaviour:
Response: Response:
m_PersistentCalls: m_PersistentCalls:
m_Calls: [] m_Calls: []
--- !u!1 &8720747402871817720
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4576728431073535421}
- component: {fileID: 4896930865945187723}
m_Layer: 5
m_Name: Costs
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &4576728431073535421
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8720747402871817720}
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:
- {fileID: 5964246257226705716}
- {fileID: 6003327703809972948}
m_Father: {fileID: 5756525528600931364}
m_RootOrder: 2
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: 15.00001, y: 32.5}
m_SizeDelta: {x: 35.00002, y: 29.999996}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &4896930865945187723
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8720747402871817720}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Padding:
m_Left: 0
m_Right: 0
m_Top: 0
m_Bottom: 0
m_ChildAlignment: 4
m_Spacing: 0
m_ChildForceExpandWidth: 1
m_ChildForceExpandHeight: 1
m_ChildControlWidth: 0
m_ChildControlHeight: 0
m_ChildScaleWidth: 0
m_ChildScaleHeight: 0
m_ReverseArrangement: 0

View File

@ -5080,6 +5080,7 @@ GameObject:
- component: {fileID: 7349591533069324996} - component: {fileID: 7349591533069324996}
- component: {fileID: 1903597163117803338} - component: {fileID: 1903597163117803338}
- component: {fileID: 6795772198343719391} - component: {fileID: 6795772198343719391}
- component: {fileID: 7547559228873556163}
m_Layer: 0 m_Layer: 0
m_Name: BasicMinionPrefab m_Name: BasicMinionPrefab
m_TagString: Untagged m_TagString: Untagged
@ -5383,6 +5384,7 @@ MonoBehaviour:
canStack: 1 canStack: 1
canRefresh: 1 canRefresh: 1
owner: {fileID: 0} owner: {fileID: 0}
taggable: {fileID: 0}
endEffectTime: 0 endEffectTime: 0
activeStacks: [] activeStacks: []
OnEffectStackAddedEvent: OnEffectStackAddedEvent:
@ -5471,6 +5473,7 @@ MonoBehaviour:
canStack: 1 canStack: 1
canRefresh: 1 canRefresh: 1
owner: {fileID: 0} owner: {fileID: 0}
taggable: {fileID: 0}
endEffectTime: 0 endEffectTime: 0
activeStacks: [] activeStacks: []
OnEffectStackAddedEvent: OnEffectStackAddedEvent:
@ -5496,6 +5499,7 @@ MonoBehaviour:
canStack: 1 canStack: 1
canRefresh: 1 canRefresh: 1
owner: {fileID: 0} owner: {fileID: 0}
taggable: {fileID: 0}
endEffectTime: 0 endEffectTime: 0
activeStacks: [] activeStacks: []
OnEffectStackAddedEvent: OnEffectStackAddedEvent:
@ -5524,6 +5528,7 @@ MonoBehaviour:
canStack: 1 canStack: 1
canRefresh: 1 canRefresh: 1
owner: {fileID: 0} owner: {fileID: 0}
taggable: {fileID: 0}
endEffectTime: 0 endEffectTime: 0
activeStacks: [] activeStacks: []
OnEffectStackAddedEvent: OnEffectStackAddedEvent:
@ -5552,6 +5557,7 @@ MonoBehaviour:
canStack: 1 canStack: 1
canRefresh: 1 canRefresh: 1
owner: {fileID: 0} owner: {fileID: 0}
taggable: {fileID: 0}
endEffectTime: 0 endEffectTime: 0
activeStacks: [] activeStacks: []
OnEffectStackAddedEvent: OnEffectStackAddedEvent:
@ -5580,6 +5586,32 @@ MonoBehaviour:
burnVFX: {fileID: 636923079769064205} burnVFX: {fileID: 636923079769064205}
poisonVFX: {fileID: 7352183147369528457} poisonVFX: {fileID: 7352183147369528457}
bleedVFX: {fileID: 7991165062056310966} bleedVFX: {fileID: 7991165062056310966}
--- !u!114 &7547559228873556163
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4296156910025484507}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 09c47ef573bbd814e980780d8ab97f9f, type: 3}
m_Name:
m_EditorClassIdentifier:
canStack: 1
canRefresh: 1
owner: {fileID: 0}
taggable: {fileID: 0}
endEffectTime: 0
activeStacks: []
OnEffectStackAddedEvent:
m_PersistentCalls:
m_Calls: []
OnEffectEnded:
m_PersistentCalls:
m_Calls: []
startingOutputModifierPercent: 0
currentOutputModifierPercent: 0
--- !u!1 &4844945595640411233 --- !u!1 &4844945595640411233
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View File

@ -0,0 +1,459 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &3036427852074282310
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 4638813491977896958}
m_Modifications:
- target: {fileID: 310501998914086865, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: 70d9622fe7c8eca4fa0bc254a79094ec, type: 2}
- target: {fileID: 1746591151561397074, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: 70d9622fe7c8eca4fa0bc254a79094ec, type: 2}
- target: {fileID: 2756982614338133646, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: 70d9622fe7c8eca4fa0bc254a79094ec, type: 2}
- target: {fileID: 3897729055006270398, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: 70d9622fe7c8eca4fa0bc254a79094ec, type: 2}
- target: {fileID: 4972984947340533190, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: 70d9622fe7c8eca4fa0bc254a79094ec, type: 2}
- target: {fileID: 5737034250886269709, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: 70d9622fe7c8eca4fa0bc254a79094ec, type: 2}
- target: {fileID: 6091832650452064618, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6091832650452064618, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_LocalScale.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6091832650452064618, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_LocalScale.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6091832650452064618, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_LocalScale.z
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6091832650452064618, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6091832650452064618, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6091832650452064618, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6091832650452064618, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6091832650452064618, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 6091832650452064618, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 6091832650452064618, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 6091832650452064618, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6091832650452064618, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6091832650452064618, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6091832650452064618, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_ConstrainProportionsScale
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6899894139092798679, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6899894139217904592, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_Name
value: Vamp
objectReference: {fileID: 0}
- target: {fileID: 6899894140144780136, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6899894140332933805, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7716045718905858460, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_SynchronizeParameters.Array.size
value: 14
objectReference: {fileID: 0}
- target: {fileID: 7716045718905858460, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_SynchronizeParameters.Array.data[10].Name
value: fish
objectReference: {fileID: 0}
- target: {fileID: 7716045718905858460, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_SynchronizeParameters.Array.data[10].Type
value: 9
objectReference: {fileID: 0}
- target: {fileID: 7716045718905858460, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_SynchronizeParameters.Array.data[11].Name
value: pickup
objectReference: {fileID: 0}
- target: {fileID: 7716045718905858460, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_SynchronizeParameters.Array.data[11].Type
value: 9
objectReference: {fileID: 0}
- target: {fileID: 7716045718905858460, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_SynchronizeParameters.Array.data[12].Name
value: potion
objectReference: {fileID: 0}
- target: {fileID: 7716045718905858460, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_SynchronizeParameters.Array.data[12].Type
value: 9
objectReference: {fileID: 0}
- target: {fileID: 7716045718905858460, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_SynchronizeParameters.Array.data[13].Name
value: spellcasting
objectReference: {fileID: 0}
- target: {fileID: 7716045718905858460, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_SynchronizeParameters.Array.data[13].Type
value: 4
objectReference: {fileID: 0}
- target: {fileID: 8412025744882406964, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: 70d9622fe7c8eca4fa0bc254a79094ec, type: 2}
m_RemovedComponents:
- {fileID: 5980834148029438992, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
- {fileID: 1235672432261282576, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
- {fileID: 2855440144810541910, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
- {fileID: 7716045718905858460, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
m_SourcePrefab: {fileID: 100100000, guid: cfa80d1224dc4bf46adaf48681a6080c, type: 3}
--- !u!1001 &8617340733075610362
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 4638813491977896958}
m_Modifications:
- target: {fileID: 514046598620691942, guid: 7781ea4ec1b78a84287f47a962577a68, type: 3}
propertyPath: m_Name
value: Necro_Skeleton_Mage
objectReference: {fileID: 0}
- target: {fileID: 514046598620691942, guid: 7781ea4ec1b78a84287f47a962577a68, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 894406551022397276, guid: 7781ea4ec1b78a84287f47a962577a68, type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 894406551022397276, guid: 7781ea4ec1b78a84287f47a962577a68, type: 3}
propertyPath: m_LocalScale.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 894406551022397276, guid: 7781ea4ec1b78a84287f47a962577a68, type: 3}
propertyPath: m_LocalScale.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 894406551022397276, guid: 7781ea4ec1b78a84287f47a962577a68, type: 3}
propertyPath: m_LocalScale.z
value: 1
objectReference: {fileID: 0}
- target: {fileID: 894406551022397276, guid: 7781ea4ec1b78a84287f47a962577a68, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 894406551022397276, guid: 7781ea4ec1b78a84287f47a962577a68, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 894406551022397276, guid: 7781ea4ec1b78a84287f47a962577a68, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 894406551022397276, guid: 7781ea4ec1b78a84287f47a962577a68, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 894406551022397276, guid: 7781ea4ec1b78a84287f47a962577a68, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 894406551022397276, guid: 7781ea4ec1b78a84287f47a962577a68, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 894406551022397276, guid: 7781ea4ec1b78a84287f47a962577a68, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 894406551022397276, guid: 7781ea4ec1b78a84287f47a962577a68, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 894406551022397276, guid: 7781ea4ec1b78a84287f47a962577a68, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 894406551022397276, guid: 7781ea4ec1b78a84287f47a962577a68, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents:
- {fileID: 856576155116208305, guid: 7781ea4ec1b78a84287f47a962577a68, type: 3}
m_SourcePrefab: {fileID: 100100000, guid: 7781ea4ec1b78a84287f47a962577a68, type: 3}
--- !u!1001 &8968314771729947877
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 2475434436818348713, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: maxValue
value: 60
objectReference: {fileID: 0}
- target: {fileID: 2475434436818348713, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: baseMaxValue
value: 60
objectReference: {fileID: 0}
- target: {fileID: 2475434436818348714, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: maxValue
value: 25
objectReference: {fileID: 0}
- target: {fileID: 2475434436818348714, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: baseMaxValue
value: 25
objectReference: {fileID: 0}
- target: {fileID: 2475434436818348715, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: Agility.BaseValue
value: 2
objectReference: {fileID: 0}
- target: {fileID: 2475434436818348715, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: Intelligence.BaseValue
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2475434436818348717, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: sceneViewId
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4296156910025484506, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4296156910025484506, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4296156910025484506, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4296156910025484506, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4296156910025484506, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4296156910025484506, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4296156910025484506, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4296156910025484506, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4296156910025484506, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4296156910025484506, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4296156910025484506, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4296156910025484507, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_Name
value: BasicMinionPrefab_Vamp-Cultist-Satanist Bloody Shadow Variant
objectReference: {fileID: 0}
- target: {fileID: 4844945595746340765, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: abilityPriorityList.Array.size
value: 2
objectReference: {fileID: 0}
- target: {fileID: 4844945595746340765, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: abilityPriorityList.Array.data[0].ability
value:
objectReference: {fileID: 11400000, guid: 65d6401bb544f4a4faa3169cde9d9bd0, type: 2}
- target: {fileID: 4844945595746340765, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: abilityPriorityList.Array.data[1].ability
value:
objectReference: {fileID: 11400000, guid: 41ce9d138621d414787fd48998b3ad0d, type: 2}
- target: {fileID: 4844945595746340765, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: abilityPriorityList.Array.data[0].castConditions.Array.size
value: 4
objectReference: {fileID: 0}
- target: {fileID: 4844945595746340765, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: abilityPriorityList.Array.data[1].castConditions.Array.size
value: 4
objectReference: {fileID: 0}
- target: {fileID: 4844945595746340765, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: abilityPriorityList.Array.data[0].castConditions.Array.data[0].conditionType
value: 4
objectReference: {fileID: 0}
- target: {fileID: 4844945595746340765, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: abilityPriorityList.Array.data[0].castConditions.Array.data[1].conditionType
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4844945595746340765, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: abilityPriorityList.Array.data[0].castConditions.Array.data[2].conditionType
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4844945595746340765, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: abilityPriorityList.Array.data[0].castConditions.Array.data[3].conditionType
value: 3
objectReference: {fileID: 0}
- target: {fileID: 4844945595746340765, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: abilityPriorityList.Array.data[1].castConditions.Array.data[0].conditionType
value: 2
objectReference: {fileID: 0}
- target: {fileID: 4844945595746340765, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: abilityPriorityList.Array.data[1].castConditions.Array.data[1].conditionType
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4844945595746340765, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: abilityPriorityList.Array.data[1].castConditions.Array.data[2].conditionType
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4844945595746340765, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: abilityPriorityList.Array.data[1].castConditions.Array.data[3].conditionType
value: 4
objectReference: {fileID: 0}
- target: {fileID: 7707231656763327841, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_Avatar
value:
objectReference: {fileID: 9000000, guid: 4f88e4881db428d468ecd8a1ac6f77be, type: 3}
- target: {fileID: 7707231656763327841, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_Controller
value:
objectReference: {fileID: 9100000, guid: b292994347ef74847b232e89a43d38d5, type: 2}
- target: {fileID: 8726789643333029568, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_SynchronizeLayers.Array.size
value: 2
objectReference: {fileID: 0}
- target: {fileID: 8726789643333029568, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_SynchronizeParameters.Array.size
value: 14
objectReference: {fileID: 0}
- target: {fileID: 8726789643333029568, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_SynchronizeParameters.Array.data[6].Name
value: castingTime
objectReference: {fileID: 0}
- target: {fileID: 8726789643333029568, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_SynchronizeParameters.Array.data[6].Type
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8726789643333029568, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_SynchronizeParameters.Array.data[7].Name
value: spinning
objectReference: {fileID: 0}
- target: {fileID: 8726789643333029568, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_SynchronizeParameters.Array.data[7].Type
value: 4
objectReference: {fileID: 0}
- target: {fileID: 8726789643333029568, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_SynchronizeParameters.Array.data[8].Name
value: revived
objectReference: {fileID: 0}
- target: {fileID: 8726789643333029568, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_SynchronizeParameters.Array.data[8].Type
value: 9
objectReference: {fileID: 0}
- target: {fileID: 8726789643333029568, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_SynchronizeParameters.Array.data[9].Name
value: summon
objectReference: {fileID: 0}
- target: {fileID: 8726789643333029568, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_SynchronizeParameters.Array.data[9].Type
value: 9
objectReference: {fileID: 0}
- target: {fileID: 8726789643333029568, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_SynchronizeParameters.Array.data[10].Name
value: fish
objectReference: {fileID: 0}
- target: {fileID: 8726789643333029568, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_SynchronizeParameters.Array.data[10].Type
value: 9
objectReference: {fileID: 0}
- target: {fileID: 8726789643333029568, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_SynchronizeParameters.Array.data[11].Name
value: pickup
objectReference: {fileID: 0}
- target: {fileID: 8726789643333029568, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_SynchronizeParameters.Array.data[11].Type
value: 9
objectReference: {fileID: 0}
- target: {fileID: 8726789643333029568, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_SynchronizeParameters.Array.data[12].Name
value: potion
objectReference: {fileID: 0}
- target: {fileID: 8726789643333029568, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_SynchronizeParameters.Array.data[12].Type
value: 9
objectReference: {fileID: 0}
- target: {fileID: 8726789643333029568, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_SynchronizeParameters.Array.data[13].Name
value: spellcasting
objectReference: {fileID: 0}
- target: {fileID: 8726789643333029568, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_SynchronizeParameters.Array.data[13].Type
value: 4
objectReference: {fileID: 0}
- target: {fileID: 8726789643333029568, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_SynchronizeLayers.Array.data[1].LayerIndex
value: 1
objectReference: {fileID: 0}
- target: {fileID: 9207610886645488137, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
propertyPath: m_AnchoredPosition.y
value: 1.45
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
--- !u!4 &4638813491977896958 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 4329571744063676187, guid: faa4fe928f5c2d34280baa419f0819bc, type: 3}
m_PrefabInstance: {fileID: 8968314771729947877}
m_PrefabAsset: {fileID: 0}

View File

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

View File

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

View File

@ -679,7 +679,7 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 753911528859556811, guid: bc291c869c1aa9744be1f56806b8c99d, type: 3} - target: {fileID: 753911528859556811, guid: bc291c869c1aa9744be1f56806b8c99d, type: 3}
propertyPath: m_Name propertyPath: m_Name
value: BoneStorm_AreaOfEffectOverTimePrefab (1) Variant value: NPC_BoneStorm_AreaOfEffectOverTimePrefab (1) Variant
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 753911528859556811, guid: bc291c869c1aa9744be1f56806b8c99d, type: 3} - target: {fileID: 753911528859556811, guid: bc291c869c1aa9744be1f56806b8c99d, type: 3}
propertyPath: m_IsActive propertyPath: m_IsActive

View File

@ -309,6 +309,9 @@ MonoBehaviour:
onTickHappened: onTickHappened:
m_PersistentCalls: m_PersistentCalls:
m_Calls: [] m_Calls: []
onTargetHitByProjectile:
m_PersistentCalls:
m_Calls: []
--- !u!114 &7681102451873883170 --- !u!114 &7681102451873883170
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View File

@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity: 1 m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0} m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0} m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0.06099534, g: 0.12214297, b: 0.12748152, a: 1} m_IndirectSpecularColor: {r: 0.06386671, g: 0.1278213, b: 0.13344261, a: 1}
m_UseRadianceAmbientProbe: 0 m_UseRadianceAmbientProbe: 0
--- !u!157 &3 --- !u!157 &3
LightmapSettings: LightmapSettings:
@ -1474,6 +1474,22 @@ PrefabInstance:
propertyPath: m_AnchorMax.y propertyPath: m_AnchorMax.y
value: 0 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 559795999353192350, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 559795999353192350, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 559795999353192350, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 559795999353192350, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1098780178161884631, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3} - target: {fileID: 1098780178161884631, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
propertyPath: m_AnchorMax.x propertyPath: m_AnchorMax.x
value: 0 value: 0
@ -1558,6 +1574,22 @@ PrefabInstance:
propertyPath: m_AnchoredPosition.y propertyPath: m_AnchoredPosition.y
value: -450 value: -450
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 3015579015349867821, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3015579015349867821, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3015579015349867821, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3015579015349867821, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3192135698537873973, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3} - target: {fileID: 3192135698537873973, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
propertyPath: m_AnchorMax.y propertyPath: m_AnchorMax.y
value: 0 value: 0
@ -1870,6 +1902,22 @@ PrefabInstance:
propertyPath: m_AnchoredPosition.y propertyPath: m_AnchoredPosition.y
value: 0 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 4816278797606998762, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4816278797606998762, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4816278797606998762, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4816278797606998762, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4963584918612519376, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3} - target: {fileID: 4963584918612519376, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
propertyPath: m_AnchoredPosition.y propertyPath: m_AnchoredPosition.y
value: 0.000022888184 value: 0.000022888184
@ -1898,6 +1946,22 @@ PrefabInstance:
propertyPath: m_AnchoredPosition.y propertyPath: m_AnchoredPosition.y
value: 0 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 5126747884924751304, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5126747884924751304, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5126747884924751304, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5126747884924751304, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5225916372165795029, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3} - target: {fileID: 5225916372165795029, guid: 7cf303e1116e7fb46ba92e7d73321eeb, type: 3}
propertyPath: m_AnchorMax.y propertyPath: m_AnchorMax.y
value: 0 value: 0

View File

@ -32,9 +32,11 @@ MonoBehaviour:
- {fileID: 11400000, guid: c846d224b2dc64a4682662b30f6ab7b4, type: 2} - {fileID: 11400000, guid: c846d224b2dc64a4682662b30f6ab7b4, type: 2}
- {fileID: 11400000, guid: 02b227158e608394fb976485e3646184, type: 2} - {fileID: 11400000, guid: 02b227158e608394fb976485e3646184, type: 2}
castTime: 0 castTime: 0
manaCost: 10 manaCost: 0
healthCost: 0 healthCost: 0
classResourceCost: 0 classResourceCost: 0
percentMaxManaCost: 0.05
percentMaxHealthCost: 0
cooldown: 5 cooldown: 5
castableWhileMoving: 0 castableWhileMoving: 0
animationType: 6 animationType: 6
@ -45,4 +47,6 @@ MonoBehaviour:
followUser: 1 followUser: 1
allowAiming: 1 allowAiming: 1
healthCostPerTick: 0 healthCostPerTick: 0
manaCostPerTick: 10 percentHealthCostPerTick: 0
manaCostPerTick: 0
percentManaCostPerTick: 0.05

View File

@ -32,9 +32,11 @@ MonoBehaviour:
- {fileID: 11400000, guid: b9e89cd94e11ff944b0c74557aa6f0f0, type: 2} - {fileID: 11400000, guid: b9e89cd94e11ff944b0c74557aa6f0f0, type: 2}
- {fileID: 11400000, guid: ec6d37130358bb947a63e2a74ed0a2e0, type: 2} - {fileID: 11400000, guid: ec6d37130358bb947a63e2a74ed0a2e0, type: 2}
castTime: 0 castTime: 0
manaCost: 5 manaCost: 0
healthCost: 0 healthCost: 0
classResourceCost: 0 classResourceCost: 0
percentMaxManaCost: 0.05
percentMaxHealthCost: 0
cooldown: 5 cooldown: 5
castableWhileMoving: 0 castableWhileMoving: 0
animationType: 6 animationType: 6
@ -45,4 +47,6 @@ MonoBehaviour:
followUser: 1 followUser: 1
allowAiming: 1 allowAiming: 1
healthCostPerTick: 0 healthCostPerTick: 0
manaCostPerTick: 5 percentHealthCostPerTick: 0
manaCostPerTick: 0
percentManaCostPerTick: 0.05

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 064a994dcc7b15c4b9ddf54d9de74950
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,37 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4ddf33e31e7c3d4e9f2078940308dfb, type: 3}
m_Name: 1-Bonestorm_ProjectileStats
m_EditorClassIdentifier:
displayName:
Icon: {fileID: 0}
targettingTags:
- {fileID: 11400000, guid: 3ac5bfbf7e1fbdd4baec1c17bd3d874c, type: 2}
- {fileID: 11400000, guid: 201eca8f8c72ba74dbb0854cad29be4f, type: 2}
tags:
- {fileID: 11400000, guid: 4e6f036fb4aad9b428694360fcc62f88, type: 2}
- {fileID: 11400000, guid: 09eb68d1a036a1643b74420197b999bd, type: 2}
- {fileID: 11400000, guid: 918ee6f8846e6a9449166ac16b6330ae, type: 2}
abilityEffects:
- {fileID: 11400000, guid: d7781c2de93655c4685ab791189f8f68, type: 2}
castTime: 0
manaCost: 0
healthCost: 0
classResourceCost: 0
cooldown: 0
castableWhileMoving: 0
animationType: 1
projectilePrefab: {fileID: 0}
projectileSpeed: 1.5
lifeSpan: 0
canPierce: 1
canHitSelf: 0

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: db1719bdb5e85f74683b2573604f639a
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,46 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: feba897f2c808cc40a3ad5226a62b1e0, type: 3}
m_Name: 1-Bonestorm_Projectile_AoEOverTimeWithTickEventAbility
m_EditorClassIdentifier:
displayName: Bonestorm
Icon: {fileID: 21300000, guid: 66b014726ada9e04d8db7604c8a3e84d, type: 3}
targettingTags:
- {fileID: 11400000, guid: 3ac5bfbf7e1fbdd4baec1c17bd3d874c, type: 2}
tags:
- {fileID: 11400000, guid: 4e6f036fb4aad9b428694360fcc62f88, type: 2}
- {fileID: 11400000, guid: 09eb68d1a036a1643b74420197b999bd, type: 2}
- {fileID: 11400000, guid: 918ee6f8846e6a9449166ac16b6330ae, type: 2}
abilityEffects:
- {fileID: 11400000, guid: 92f99cae87838984b8e8003f3298593c, type: 2}
castTime: 0.5
manaCost: 10
healthCost: 10
classResourceCost: 0
cooldown: 0
castableWhileMoving: 0
animationType: 1
aoePrefab: {fileID: 7681102451873883169, guid: c164dbafcabacfe44aa66b1084a9f49f, type: 3}
movementMask:
serializedVersion: 2
m_Bits: 8
lifeSpan: 2
radius: 1.5
shouldResizeVisuals: 0
telegraphDelay: 0
canHitSelf: 0
spawnUnderUser: 0
projectileAbility: {fileID: 11400000, guid: db1719bdb5e85f74683b2573604f639a, type: 2}
duration: 7
followUser: 0
followTarget: 0
damageFollowingTarget: 0

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 7d49a35055b686649bf20062b02d68cb
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -12,6 +12,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: f4ddf33e31e7c3d4e9f2078940308dfb, type: 3} m_Script: {fileID: 11500000, guid: f4ddf33e31e7c3d4e9f2078940308dfb, type: 3}
m_Name: SpellDrainProjectile m_Name: SpellDrainProjectile
m_EditorClassIdentifier: m_EditorClassIdentifier:
displayName:
Icon: {fileID: 0} Icon: {fileID: 0}
targettingTags: targettingTags:
- {fileID: 11400000, guid: 9e6b298c2ce2856418b205442417a433, type: 2} - {fileID: 11400000, guid: 9e6b298c2ce2856418b205442417a433, type: 2}

View File

@ -26,10 +26,12 @@ MonoBehaviour:
- {fileID: 11400000, guid: f3a0cc743303e174d9ab58e34d57b1ff, type: 2} - {fileID: 11400000, guid: f3a0cc743303e174d9ab58e34d57b1ff, type: 2}
- {fileID: 11400000, guid: 3b1dad1cf88449a43ba68b59f3ec636a, type: 2} - {fileID: 11400000, guid: 3b1dad1cf88449a43ba68b59f3ec636a, type: 2}
castTime: 0.5 castTime: 0.5
manaCost: 15 manaCost: 10
healthCost: 0 healthCost: 1
classResourceCost: 0 classResourceCost: 0
cooldown: 1 percentMaxManaCost: 0
percentMaxHealthCost: 0.01
cooldown: 2.5
castableWhileMoving: 0 castableWhileMoving: 0
animationType: 1 animationType: 1
aoePrefab: {fileID: 4772960342460004092, guid: 261989bc4bda3d14eab63b1b4072d1e4, type: 3} aoePrefab: {fileID: 4772960342460004092, guid: 261989bc4bda3d14eab63b1b4072d1e4, type: 3}

View File

@ -24,9 +24,11 @@ MonoBehaviour:
abilityEffects: abilityEffects:
- {fileID: 11400000, guid: a089c7e3cbe33f14b90591e0b315d414, type: 2} - {fileID: 11400000, guid: a089c7e3cbe33f14b90591e0b315d414, type: 2}
castTime: 0.5 castTime: 0.5
manaCost: 30 manaCost: 15
healthCost: 0 healthCost: 5
classResourceCost: 0 classResourceCost: 0
percentMaxManaCost: 0
percentMaxHealthCost: 0.05
cooldown: 4 cooldown: 4
castableWhileMoving: 0 castableWhileMoving: 0
animationType: 1 animationType: 1

View File

@ -28,9 +28,11 @@ MonoBehaviour:
- {fileID: 11400000, guid: 805859fe47cddae49af4826e6dd96df2, type: 2} - {fileID: 11400000, guid: 805859fe47cddae49af4826e6dd96df2, type: 2}
- {fileID: 11400000, guid: 80bc6f8fda80d1544b3bd36bba0e07b1, type: 2} - {fileID: 11400000, guid: 80bc6f8fda80d1544b3bd36bba0e07b1, type: 2}
castTime: 0.5 castTime: 0.5
manaCost: 40 manaCost: 20
healthCost: 0 healthCost: 10
classResourceCost: 0 classResourceCost: 0
percentMaxManaCost: 0
percentMaxHealthCost: 0.1
cooldown: 6 cooldown: 6
castableWhileMoving: 0 castableWhileMoving: 0
animationType: 1 animationType: 1

View File

@ -0,0 +1,32 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1ac3b0624115cb04e9a99b27516f7b39, type: 3}
m_Name: 3-BloodyShadow
m_EditorClassIdentifier:
displayName: Bloody Shadow
Icon: {fileID: 21300000, guid: e4190db7163aba54c9531c8a1c741769, type: 3}
targettingTags: []
tags: []
abilityEffects: []
castTime: 1
manaCost: 5
healthCost: 5
classResourceCost: 0
percentMaxManaCost: 0
percentMaxHealthCost: 0.1
cooldown: 5
castableWhileMoving: 0
animationType: 4
minionPrefab: {fileID: 5182193148598858814, guid: 445a7ac776d33d9428bc46f073fe3579, type: 3}
numberOfSpawns: 1
instantlyReady: 1
isImage: 1

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 445df66fd514f9640b3f2f228a7b4aee
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 2c48bd68a759b1649b31f81c9127b8b7
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,27 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 081df6f2fd69b7643a4844062a82871f, type: 3}
m_Name: Necro_Bonestorm_InstantEffect_AoETick
m_EditorClassIdentifier:
tags:
- {fileID: 11400000, guid: 4e6f036fb4aad9b428694360fcc62f88, type: 2}
influencingStats:
- statTag: {fileID: 11400000, guid: 09eb68d1a036a1643b74420197b999bd, type: 2}
percentInfluence: 0.15
- statTag: {fileID: 11400000, guid: 918ee6f8846e6a9449166ac16b6330ae, type: 2}
percentInfluence: 0.1
baseValue: 1
damageType: 0
AlliedTargetMultiplier: 1
EnemyTargetMultiplier: 1
applyToClassResourceInstead: 0
applyToSelfResourceInsteadOfHit: 0

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 92f99cae87838984b8e8003f3298593c
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,27 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 081df6f2fd69b7643a4844062a82871f, type: 3}
m_Name: Necro_Bonestorm_InstantEffect_Impact
m_EditorClassIdentifier:
tags:
- {fileID: 11400000, guid: 4e6f036fb4aad9b428694360fcc62f88, type: 2}
influencingStats:
- statTag: {fileID: 11400000, guid: 09eb68d1a036a1643b74420197b999bd, type: 2}
percentInfluence: 0.4
- statTag: {fileID: 11400000, guid: 918ee6f8846e6a9449166ac16b6330ae, type: 2}
percentInfluence: 0.2
baseValue: 5
damageType: 0
AlliedTargetMultiplier: 1
EnemyTargetMultiplier: 1
applyToClassResourceInstead: 0
applyToSelfResourceInsteadOfHit: 0

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: d7781c2de93655c4685ab791189f8f68
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -16,10 +16,20 @@ public class BaseAbility : ScriptableObject
public float manaCost; public float manaCost;
public float healthCost = 0; public float healthCost = 0;
public float classResourceCost = 0; public float classResourceCost = 0;
public float percentMaxManaCost = 0;
public float percentMaxHealthCost = 0;
public float cooldown; public float cooldown;
public bool castableWhileMoving; public bool castableWhileMoving;
public AbilityAnimationType animationType; public AbilityAnimationType animationType;
Mana userMana;
Health userHealth;
private float maxManaCostInValue;
private float maxHealthCostInValue;
private float finalManaCost;
private float finalHealthCost;
public virtual void Execute(PhotonView user, Taggable userTag) public virtual void Execute(PhotonView user, Taggable userTag)
{ {
SpendResourcesNecessary(user, userTag); SpendResourcesNecessary(user, userTag);
@ -41,9 +51,31 @@ public class BaseAbility : ScriptableObject
public virtual void SpendResourcesNecessary(PhotonView user, Taggable userTag) public virtual void SpendResourcesNecessary(PhotonView user, Taggable userTag)
{ {
user.GetComponent<Mana>().ChangeValue(-manaCost); userMana = user.GetComponent<Mana>();
user.GetComponent<Health>().ChangeValue(-healthCost); maxManaCostInValue = userMana.GetMaxValue() * percentMaxManaCost;
finalManaCost = manaCost + maxManaCostInValue;
userHealth = user.GetComponent<Health>();
maxHealthCostInValue = userHealth.GetMaxValue() * percentMaxHealthCost;
finalHealthCost = healthCost + maxHealthCostInValue;
userMana.ChangeValue(-finalManaCost);
userHealth.ChangeValue(-finalHealthCost);
user.GetComponent<ClassResource>()?.ChangeValue(-classResourceCost); user.GetComponent<ClassResource>()?.ChangeValue(-classResourceCost);
}
public virtual float GetFinalManaCost(Mana userMana)
{
maxManaCostInValue = userMana.GetMaxValue() * percentMaxManaCost;
finalManaCost = manaCost + maxManaCostInValue;
return finalManaCost;
}
public virtual float GetFinalHealthCost(Health userHealth)
{
maxHealthCostInValue = userHealth.GetMaxValue() * percentMaxHealthCost;
finalHealthCost = healthCost + maxHealthCostInValue;
return finalHealthCost;
} }
private void OnValidate() private void OnValidate()

View File

@ -15,7 +15,9 @@ public class ChanneledAbility : BaseAbility
public bool allowAiming; public bool allowAiming;
public float healthCostPerTick; public float healthCostPerTick;
public float percentHealthCostPerTick;
public float manaCostPerTick; public float manaCostPerTick;
public float percentManaCostPerTick;
protected GameObject instanciatedAbility; protected GameObject instanciatedAbility;
@ -38,7 +40,9 @@ public class ChanneledAbility : BaseAbility
networkedChanneling.followUser = followUser; networkedChanneling.followUser = followUser;
networkedChanneling.allowAiming = allowAiming; networkedChanneling.allowAiming = allowAiming;
networkedChanneling.healthCostPerTick = healthCostPerTick; networkedChanneling.healthCostPerTick = healthCostPerTick;
networkedChanneling.percentHealthCostPerTick = percentHealthCostPerTick;
networkedChanneling.manaCostPerTick = manaCostPerTick; networkedChanneling.manaCostPerTick = manaCostPerTick;
networkedChanneling.percentManaCostPerTick = percentManaCostPerTick;
networkedChanneling.ownerHealth = user.GetComponent<Health>(); networkedChanneling.ownerHealth = user.GetComponent<Health>();
networkedChanneling.ownerMana = user.GetComponent<Mana>(); networkedChanneling.ownerMana = user.GetComponent<Mana>();

View File

@ -18,7 +18,7 @@ public class Health : Resource
[HideInInspector] [HideInInspector]
public PhotonView photonView; public PhotonView photonView;
protected bool invulnerable = false; public bool invulnerable = false;
public bool Invulnerable => invulnerable; public bool Invulnerable => invulnerable;
float incomingValue; float incomingValue;
@ -57,6 +57,8 @@ public class Health : Resource
base.Start(); base.Start();
} }
public void SetInvulnerabilityState(bool isInvulnerable) public void SetInvulnerabilityState(bool isInvulnerable)
{ {
if (!photonView.IsMine) return; if (!photonView.IsMine) return;

View File

@ -17,13 +17,13 @@ public class NPCAbilityConditionManager
{ {
case NPCAbilityCastConditionType.Mana: case NPCAbilityCastConditionType.Mana:
{ {
if (npc.Mana.EnoughMana(ability.manaCost)) if (npc.Mana.EnoughMana(ability.GetFinalManaCost(npc.Mana)))
continue; continue;
else return false; else return false;
} }
case NPCAbilityCastConditionType.Health: case NPCAbilityCastConditionType.Health:
{ {
if (npc.Health.EnoughHealth(ability.manaCost)) if (npc.Health.EnoughHealth(ability.GetFinalHealthCost(npc.Health)))
continue; continue;
else return false; else return false;
} }

View File

@ -10,6 +10,7 @@ public class NetworkedAreaOfEffectOverTimeWithTickEvent : NetworkedAreaOfEffectO
protected override void OnTickPerformed() protected override void OnTickPerformed()
{ {
onTickHappened.Invoke(owner, ownerTag, targets); if (targets.Count > 0)
onTickHappened.Invoke(owner, ownerTag, targets);
} }
} }

View File

@ -24,7 +24,12 @@ public class NetworkedChanneling : MonoBehaviour
public bool allowAiming; public bool allowAiming;
public float radius; public float radius;
public float healthCostPerTick; public float healthCostPerTick;
public float percentHealthCostPerTick;
public float manaCostPerTick; public float manaCostPerTick;
public float percentManaCostPerTick;
private float finalHealthCostPerTick;
private float finalManaCostPerTick;
public bool channeling = false; public bool channeling = false;
@ -123,7 +128,11 @@ public class NetworkedChanneling : MonoBehaviour
private bool HasEnoughResourcesForNextTick() private bool HasEnoughResourcesForNextTick()
{ {
return ownerMana.EnoughMana(manaCostPerTick) && ownerHealth.EnoughHealth(healthCostPerTick); finalManaCostPerTick = manaCostPerTick + ownerMana.GetMaxValue() * percentManaCostPerTick;
finalHealthCostPerTick = healthCostPerTick + ownerHealth.GetMaxValue() * percentHealthCostPerTick;
return ownerMana.EnoughMana(finalManaCostPerTick) && ownerHealth.EnoughHealth(finalHealthCostPerTick);
} }
private void HandleCostsForNextTick() private void HandleCostsForNextTick()
{ {

View File

@ -31,6 +31,8 @@ public class NetworkedProjectile : MonoBehaviour
private GameObject hitSpawnedVFX; private GameObject hitSpawnedVFX;
private Vector3 hitPositionCorrected; private Vector3 hitPositionCorrected;
protected List<Taggable> processedTargets = new List<Taggable>();
NetworkedAntiProjectile possibleBlock; NetworkedAntiProjectile possibleBlock;
private void Awake() private void Awake()
@ -97,6 +99,10 @@ public class NetworkedProjectile : MonoBehaviour
if (!target.IsValidTarget(ability.targettingTags)) return; if (!target.IsValidTarget(ability.targettingTags)) return;
if (processedTargets.Contains(target)) return;
processedTargets.Add(target);
hitPositionCorrected = target.transform.position; hitPositionCorrected = target.transform.position;
hitPositionCorrected.y = this.transform.position.y; hitPositionCorrected.y = this.transform.position.y;
onTargetHit.Invoke(hitPositionCorrected); onTargetHit.Invoke(hitPositionCorrected);

View File

@ -13,8 +13,13 @@ public class NetworkedProjectileAreaOfEffectOverTimeWithTickEvent : NetworkedAre
public UnityEvent<PhotonView, Taggable, List<Taggable>> onTickHappened = new UnityEvent<PhotonView, Taggable, List<Taggable>>(); public UnityEvent<PhotonView, Taggable, List<Taggable>> onTickHappened = new UnityEvent<PhotonView, Taggable, List<Taggable>>();
public UnityEvent<PhotonView, Taggable, List<Taggable>> onTargetHitByProjectile = new UnityEvent<PhotonView, Taggable, List<Taggable>>();
NetworkedAntiProjectile possibleBlock; NetworkedAntiProjectile possibleBlock;
protected List<Taggable> processedTargets = new List<Taggable>();
protected List<Taggable> projectileTargets = new List<Taggable>();
private void Update() private void Update()
{ {
if (!photonView.IsMine) return; if (!photonView.IsMine) return;
@ -26,7 +31,8 @@ public class NetworkedProjectileAreaOfEffectOverTimeWithTickEvent : NetworkedAre
protected override void OnTickPerformed() protected override void OnTickPerformed()
{ {
onTickHappened.Invoke(owner, ownerTag, targets); if (targets.Count > 0)
onTickHappened.Invoke(owner, ownerTag, targets);
} }
private void OnTriggerEnter(Collider other) private void OnTriggerEnter(Collider other)
@ -46,12 +52,19 @@ public class NetworkedProjectileAreaOfEffectOverTimeWithTickEvent : NetworkedAre
if (!target.IsValidTarget(projectileAbility.targettingTags)) return; if (!target.IsValidTarget(projectileAbility.targettingTags)) return;
//Debug.Log($"TT[{Time.frameCount}] Past validation checks for {target.name}");
if (processedTargets.Contains(target)) return;
processedTargets.Add(target);
hitPositionCorrected = target.transform.position; hitPositionCorrected = target.transform.position;
hitPositionCorrected.y = this.transform.position.y; hitPositionCorrected.y = this.transform.position.y;
onTargetHit.Invoke(hitPositionCorrected); onTargetHit.Invoke(hitPositionCorrected);
if (!photonView.IsMine) return; if (!photonView.IsMine) return;
possibleBlock = target.GetComponentInParent<NetworkedAntiProjectile>(); possibleBlock = target.GetComponentInParent<NetworkedAntiProjectile>();
if (possibleBlock != null) if (possibleBlock != null)
{ {
@ -63,9 +76,22 @@ public class NetworkedProjectileAreaOfEffectOverTimeWithTickEvent : NetworkedAre
return; return;
} }
//Debug.Log($"TT[{Time.frameCount}] About to process effects");
projectileTargets.Clear();
projectileTargets.Add(target);
foreach (BaseEffect effect in projectileAbility.abilityEffects) foreach (BaseEffect effect in projectileAbility.abilityEffects)
{ {
effect.ApplyEffect(ownerTag, new List<Taggable> { target }); //Debug.Log($"TT[{Time.frameCount}] Applying effect: {effect.name}");
effect.ApplyEffect(ownerTag, projectileTargets);
}
if(projectileTargets.Count > 0)
{
//Debug.Log($"TT[{Time.frameCount}] OnProjectileHit {projectileTargets.Count}");
onTargetHitByProjectile.Invoke(owner, ownerTag, projectileTargets);
} }
if (!projectileAbility.canPierce) if (!projectileAbility.canPierce)

View File

@ -19,6 +19,9 @@ public class AbilityKeyBinder : MonoBehaviour
private PhotonView user; private PhotonView user;
private Taggable userTag; private Taggable userTag;
private Mana mana; private Mana mana;
private Health health;
public Health Health => health;
public Mana Mana => mana;
public BaseAbility Ability => ability; public BaseAbility Ability => ability;
public GameKey GameKey => key; public GameKey GameKey => key;
@ -30,11 +33,15 @@ public class AbilityKeyBinder : MonoBehaviour
bool isDead = false; bool isDead = false;
float finalHealthCost;
float finalManaCost;
private void Awake() private void Awake()
{ {
user = GetComponentInParent<PhotonView>(); user = GetComponentInParent<PhotonView>();
userTag = GetComponentInParent<Taggable>(); userTag = GetComponentInParent<Taggable>();
mana = GetComponentInParent<Mana>(); mana = GetComponentInParent<Mana>();
health = GetComponentInParent<Health>();
cooldownTracker = user.GetComponentInChildren<AbilityCooldownTracker>(); cooldownTracker = user.GetComponentInChildren<AbilityCooldownTracker>();
} }
@ -73,7 +80,7 @@ public class AbilityKeyBinder : MonoBehaviour
{ {
if (abilityBindInstance != null) if (abilityBindInstance != null)
abilityBindInstance.pressed.SetActive(true); abilityBindInstance.pressed.SetActive(true);
if (IsAbilityOffCooldown() && mana.EnoughMana(ability.manaCost)) if (IsAbilityOffCooldown() && mana.EnoughMana(ability.GetFinalManaCost(mana)) && health.EnoughHealth(ability.GetFinalHealthCost(health)))
{ {
if (ability is ChanneledAbility) if (ability is ChanneledAbility)
{ {
@ -132,11 +139,21 @@ public class AbilityKeyBinder : MonoBehaviour
{ {
this.abilityBindInstance = abilityBindInstance; this.abilityBindInstance = abilityBindInstance;
mana.onResourceChanged.AddListener(OnManaChanged); mana.onResourceChanged.AddListener(OnManaChanged);
health.onResourceChanged.AddListener(OnHealthChanged);
} }
public void OnManaChanged(float currentMana) public void OnManaChanged(float currentMana)
{ {
abilityBindInstance.noMana.SetActive(!mana.EnoughMana(ability.manaCost)); finalManaCost = ability.GetFinalManaCost(mana);
abilityBindInstance.manaCost.text = finalManaCost.ToString("F0");
abilityBindInstance.noMana.SetActive(!mana.EnoughMana(finalManaCost));
}
public void OnHealthChanged(float currentHealth)
{
finalHealthCost = ability.GetFinalHealthCost(health);
abilityBindInstance.healthCost.text = finalHealthCost.ToString("F0");
abilityBindInstance.healthCostGO.SetActive(finalHealthCost > 0);
abilityBindInstance.noHealth.SetActive(!health.EnoughHealth(finalHealthCost));
} }
public bool IsAbilityOffCooldown() public bool IsAbilityOffCooldown()

View File

@ -1,5 +1,6 @@
using Kryz.CharacterStats; using Kryz.CharacterStats;
using Kryz.CharacterStats.Examples; using Kryz.CharacterStats.Examples;
using Photon.Pun;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;

View File

@ -13,9 +13,12 @@ public class AbilityBindInstance : MonoBehaviour
[SerializeField] private GameEventListener_AbilityKeyBinder onAbilityKeyBinderSpawned; [SerializeField] private GameEventListener_AbilityKeyBinder onAbilityKeyBinderSpawned;
public TMP_Text bind; public TMP_Text bind;
public TMP_Text manaCost; public TMP_Text manaCost;
public TMP_Text healthCost;
public TMP_Text cooldown_Text; public TMP_Text cooldown_Text;
public Image icon; public Image icon;
public GameObject noMana; public GameObject noMana;
public GameObject noHealth;
public GameObject healthCostGO;
public GameObject pressed; public GameObject pressed;
public Image coolDown; public Image coolDown;
@ -37,11 +40,14 @@ public class AbilityBindInstance : MonoBehaviour
if (isAlphaKey) if (isAlphaKey)
keyName = keyName.Remove(0, 5); keyName = keyName.Remove(0, 5);
this.bind.text = keyName; this.bind.text = keyName;
this.manaCost.text = abilityKeyBinder.Ability.manaCost.ToString(); this.manaCost.text = abilityKeyBinder.Ability.GetFinalManaCost(abilityKeyBinder.Mana).ToString("F0");
healthCostGO.SetActive(abilityKeyBinder.Ability.GetFinalHealthCost(abilityKeyBinder.Health) > 0);
this.healthCost.text = abilityKeyBinder.Ability.GetFinalHealthCost(abilityKeyBinder.Health).ToString("F0");
if (cooldown_Text != null) if (cooldown_Text != null)
this.cooldown_Text.text = abilityKeyBinder.Ability.cooldown.ToString(); this.cooldown_Text.text = abilityKeyBinder.Ability.cooldown.ToString();
this.icon.sprite = abilityKeyBinder.Ability.Icon; this.icon.sprite = abilityKeyBinder.Ability.Icon;
noMana.SetActive(false); noMana.SetActive(false);
noHealth.SetActive(false);
pressed.SetActive(false); pressed.SetActive(false);
coolDown.fillAmount = 1; coolDown.fillAmount = 1;
coolDown.gameObject.SetActive(false); coolDown.gameObject.SetActive(false);

View File

@ -94,7 +94,7 @@ Material:
- _Mode: 0 - _Mode: 0
- _OcclusionStrength: 1 - _OcclusionStrength: 1
- _Parallax: 0.02 - _Parallax: 0.02
- _Rotation: 7.209766 - _Rotation: 6.677764
- _SmoothnessTextureChannel: 0 - _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1 - _SpecularHighlights: 1
- _SrcBlend: 1 - _SrcBlend: 1