Necromancer updates
- increase summon cost - reduce amount of class resource drained on melee hits - increased amount of class resource drained on spell with cooldown hits - minions scaling with owner's stats - bugfixing npc/minion decision making corner cases
This commit is contained in:
parent
d8f0736891
commit
e1755999a3
@ -2322,7 +2322,7 @@ MonoBehaviour:
|
|||||||
m_OnCullStateChanged:
|
m_OnCullStateChanged:
|
||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
m_Calls: []
|
m_Calls: []
|
||||||
m_text: 5
|
m_text: 10
|
||||||
m_isRightToLeft: 0
|
m_isRightToLeft: 0
|
||||||
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||||
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||||
@ -2349,11 +2349,11 @@ MonoBehaviour:
|
|||||||
m_faceColor:
|
m_faceColor:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
rgba: 4294967295
|
rgba: 4294967295
|
||||||
m_fontSize: 18
|
m_fontSize: 13.4
|
||||||
m_fontSizeBase: 36
|
m_fontSizeBase: 36
|
||||||
m_fontWeight: 400
|
m_fontWeight: 400
|
||||||
m_enableAutoSizing: 1
|
m_enableAutoSizing: 1
|
||||||
m_fontSizeMin: 18
|
m_fontSizeMin: 11
|
||||||
m_fontSizeMax: 72
|
m_fontSizeMax: 72
|
||||||
m_fontStyle: 0
|
m_fontStyle: 0
|
||||||
m_HorizontalAlignment: 2
|
m_HorizontalAlignment: 2
|
||||||
|
@ -5172,8 +5172,8 @@ MonoBehaviour:
|
|||||||
projectileRange: 5
|
projectileRange: 5
|
||||||
meleeRange: 2.5
|
meleeRange: 2.5
|
||||||
distanceToChangePatrolDestination: 0.9
|
distanceToChangePatrolDestination: 0.9
|
||||||
patrolAgentSpeed: 1.5
|
patrolAgentSpeed: 3
|
||||||
chasingAgentSpeed: 2.65
|
chasingAgentSpeed: 2.5
|
||||||
timeBetweenAttacks: 2
|
timeBetweenAttacks: 2
|
||||||
photonView: {fileID: 0}
|
photonView: {fileID: 0}
|
||||||
myTag: {fileID: 0}
|
myTag: {fileID: 0}
|
||||||
|
@ -174,7 +174,7 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: a166ac863ac6530498f0e260d679a759, type: 3}
|
m_Script: {fileID: 11500000, guid: a166ac863ac6530498f0e260d679a759, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
ability: {fileID: 11400000, guid: d8917fa8b398ec7468cbd07a1eab0d29, type: 2}
|
ability: {fileID: 11400000, guid: 50fe026b53483dd4fa08679bd24bb4b9, type: 2}
|
||||||
abilityPrefabName: {fileID: 1405724118519419521, guid: 0ccefd8e90a52a847b38fb05414ed6de, type: 3}
|
abilityPrefabName: {fileID: 1405724118519419521, guid: 0ccefd8e90a52a847b38fb05414ed6de, type: 3}
|
||||||
--- !u!1 &8389547513526139286
|
--- !u!1 &8389547513526139286
|
||||||
GameObject:
|
GameObject:
|
||||||
|
@ -174,6 +174,7 @@ Transform:
|
|||||||
- {fileID: 7680563382092865998}
|
- {fileID: 7680563382092865998}
|
||||||
- {fileID: 7680563380851967174}
|
- {fileID: 7680563380851967174}
|
||||||
- {fileID: 7680563380990892984}
|
- {fileID: 7680563380990892984}
|
||||||
|
- {fileID: 6424422571297150527}
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_RootOrder: 0
|
m_RootOrder: 0
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
@ -1461,6 +1462,72 @@ Transform:
|
|||||||
m_CorrespondingSourceObject: {fileID: 5096391557067247094, guid: 9307008512a9c1c45ac122516378acfa, type: 3}
|
m_CorrespondingSourceObject: {fileID: 5096391557067247094, guid: 9307008512a9c1c45ac122516378acfa, type: 3}
|
||||||
m_PrefabInstance: {fileID: 2530550917352013872}
|
m_PrefabInstance: {fileID: 2530550917352013872}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
--- !u!1001 &2933284643590123630
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 2278116590711127942}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 521339279345268759, guid: 64f97bcadc30ea54680b892789161068, type: 3}
|
||||||
|
propertyPath: m_Materials.Array.size
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1747735906954452868, guid: 64f97bcadc30ea54680b892789161068, type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: CharacterCircleRed
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8186766346787694161, guid: 64f97bcadc30ea54680b892789161068, type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 11
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8186766346787694161, guid: 64f97bcadc30ea54680b892789161068, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8186766346787694161, guid: 64f97bcadc30ea54680b892789161068, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8186766346787694161, guid: 64f97bcadc30ea54680b892789161068, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8186766346787694161, guid: 64f97bcadc30ea54680b892789161068, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 0.9659259
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8186766346787694161, guid: 64f97bcadc30ea54680b892789161068, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8186766346787694161, guid: 64f97bcadc30ea54680b892789161068, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: 0.25881904
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8186766346787694161, guid: 64f97bcadc30ea54680b892789161068, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8186766346787694161, guid: 64f97bcadc30ea54680b892789161068, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8186766346787694161, guid: 64f97bcadc30ea54680b892789161068, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 30.000002
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8186766346787694161, guid: 64f97bcadc30ea54680b892789161068, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: 64f97bcadc30ea54680b892789161068, type: 3}
|
||||||
|
--- !u!4 &6424422571297150527 stripped
|
||||||
|
Transform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 8186766346787694161, guid: 64f97bcadc30ea54680b892789161068, type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 2933284643590123630}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
--- !u!1001 &7680563380609097272
|
--- !u!1001 &7680563380609097272
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -253,6 +253,7 @@ Transform:
|
|||||||
- {fileID: 6280806573428533496}
|
- {fileID: 6280806573428533496}
|
||||||
- {fileID: 6901636255731641543}
|
- {fileID: 6901636255731641543}
|
||||||
- {fileID: 4411435976634846363}
|
- {fileID: 4411435976634846363}
|
||||||
|
- {fileID: 7146237025830416315}
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_RootOrder: 0
|
m_RootOrder: 0
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
@ -11602,6 +11603,72 @@ MonoBehaviour:
|
|||||||
Response:
|
Response:
|
||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
m_Calls: []
|
m_Calls: []
|
||||||
|
--- !u!1001 &1347055862924610026
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 1040714684719195969}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 521339279345268759, guid: 64f97bcadc30ea54680b892789161068, type: 3}
|
||||||
|
propertyPath: m_Materials.Array.size
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1747735906954452868, guid: 64f97bcadc30ea54680b892789161068, type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: CharacterCircleRed
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8186766346787694161, guid: 64f97bcadc30ea54680b892789161068, type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 13
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8186766346787694161, guid: 64f97bcadc30ea54680b892789161068, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8186766346787694161, guid: 64f97bcadc30ea54680b892789161068, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8186766346787694161, guid: 64f97bcadc30ea54680b892789161068, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8186766346787694161, guid: 64f97bcadc30ea54680b892789161068, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 0.9659259
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8186766346787694161, guid: 64f97bcadc30ea54680b892789161068, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8186766346787694161, guid: 64f97bcadc30ea54680b892789161068, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: 0.25881904
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8186766346787694161, guid: 64f97bcadc30ea54680b892789161068, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8186766346787694161, guid: 64f97bcadc30ea54680b892789161068, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8186766346787694161, guid: 64f97bcadc30ea54680b892789161068, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 30.000002
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 8186766346787694161, guid: 64f97bcadc30ea54680b892789161068, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: 64f97bcadc30ea54680b892789161068, type: 3}
|
||||||
|
--- !u!4 &7146237025830416315 stripped
|
||||||
|
Transform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 8186766346787694161, guid: 64f97bcadc30ea54680b892789161068, type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 1347055862924610026}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
--- !u!1001 &1808176289581354806
|
--- !u!1001 &1808176289581354806
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -75,6 +75,22 @@ PrefabInstance:
|
|||||||
propertyPath: m_IsActive
|
propertyPath: m_IsActive
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 7146237025830416315, guid: 5e02787002b78154db83a830e460a4a9, type: 3}
|
||||||
|
propertyPath: m_LocalScale.x
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 7146237025830416315, guid: 5e02787002b78154db83a830e460a4a9, type: 3}
|
||||||
|
propertyPath: m_LocalScale.y
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 7146237025830416315, guid: 5e02787002b78154db83a830e460a4a9, type: 3}
|
||||||
|
propertyPath: m_LocalScale.z
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 7146237025830416315, guid: 5e02787002b78154db83a830e460a4a9, type: 3}
|
||||||
|
propertyPath: m_ConstrainProportionsScale
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8562165150115495942, guid: 5e02787002b78154db83a830e460a4a9, type: 3}
|
- target: {fileID: 8562165150115495942, guid: 5e02787002b78154db83a830e460a4a9, type: 3}
|
||||||
propertyPath: abilityPriorityList.Array.size
|
propertyPath: abilityPriorityList.Array.size
|
||||||
value: 3
|
value: 3
|
||||||
|
@ -11,6 +11,14 @@ PrefabInstance:
|
|||||||
propertyPath: m_Name
|
propertyPath: m_Name
|
||||||
value: PlayerPrefab_Necromancer Variant
|
value: PlayerPrefab_Necromancer Variant
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1869432520870514277, guid: 9c432d220280f704684a6d5b9354c782, type: 3}
|
||||||
|
propertyPath: maxValue
|
||||||
|
value: 40
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 1869432520870514277, guid: 9c432d220280f704684a6d5b9354c782, type: 3}
|
||||||
|
propertyPath: timeBetweenRegens
|
||||||
|
value: 40
|
||||||
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 3337123064848582692, guid: 9c432d220280f704684a6d5b9354c782, type: 3}
|
- target: {fileID: 3337123064848582692, guid: 9c432d220280f704684a6d5b9354c782, type: 3}
|
||||||
propertyPath: ability
|
propertyPath: ability
|
||||||
value:
|
value:
|
||||||
@ -53,39 +61,51 @@ PrefabInstance:
|
|||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 3411510181381743576, guid: 9c432d220280f704684a6d5b9354c782, type: 3}
|
- target: {fileID: 3411510181381743576, guid: 9c432d220280f704684a6d5b9354c782, type: 3}
|
||||||
propertyPath: abilityPriorityList.Array.data[0].castConditions.Array.data[0].conditionType
|
propertyPath: abilityPriorityList.Array.data[0].castConditions.Array.data[0].conditionType
|
||||||
value: 0
|
value: 2
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 3411510181381743576, guid: 9c432d220280f704684a6d5b9354c782, type: 3}
|
- target: {fileID: 3411510181381743576, guid: 9c432d220280f704684a6d5b9354c782, type: 3}
|
||||||
propertyPath: abilityPriorityList.Array.data[0].castConditions.Array.data[1].conditionType
|
propertyPath: abilityPriorityList.Array.data[0].castConditions.Array.data[1].conditionType
|
||||||
value: 3
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 3411510181381743576, guid: 9c432d220280f704684a6d5b9354c782, type: 3}
|
- target: {fileID: 3411510181381743576, guid: 9c432d220280f704684a6d5b9354c782, type: 3}
|
||||||
propertyPath: abilityPriorityList.Array.data[0].castConditions.Array.data[2].conditionType
|
propertyPath: abilityPriorityList.Array.data[0].castConditions.Array.data[2].conditionType
|
||||||
|
value: 3
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3411510181381743576, guid: 9c432d220280f704684a6d5b9354c782, type: 3}
|
||||||
|
propertyPath: abilityPriorityList.Array.data[1].castConditions.Array.data[0].conditionType
|
||||||
value: 2
|
value: 2
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 3411510181381743576, guid: 9c432d220280f704684a6d5b9354c782, type: 3}
|
- target: {fileID: 3411510181381743576, guid: 9c432d220280f704684a6d5b9354c782, type: 3}
|
||||||
propertyPath: abilityPriorityList.Array.data[1].castConditions.Array.data[1].conditionType
|
propertyPath: abilityPriorityList.Array.data[1].castConditions.Array.data[1].conditionType
|
||||||
value: 3
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 3411510181381743576, guid: 9c432d220280f704684a6d5b9354c782, type: 3}
|
- target: {fileID: 3411510181381743576, guid: 9c432d220280f704684a6d5b9354c782, type: 3}
|
||||||
propertyPath: abilityPriorityList.Array.data[1].castConditions.Array.data[2].conditionType
|
propertyPath: abilityPriorityList.Array.data[1].castConditions.Array.data[2].conditionType
|
||||||
|
value: 3
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3411510181381743576, guid: 9c432d220280f704684a6d5b9354c782, type: 3}
|
||||||
|
propertyPath: abilityPriorityList.Array.data[2].castConditions.Array.data[0].conditionType
|
||||||
value: 2
|
value: 2
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 3411510181381743576, guid: 9c432d220280f704684a6d5b9354c782, type: 3}
|
- target: {fileID: 3411510181381743576, guid: 9c432d220280f704684a6d5b9354c782, type: 3}
|
||||||
propertyPath: abilityPriorityList.Array.data[2].castConditions.Array.data[1].conditionType
|
propertyPath: abilityPriorityList.Array.data[2].castConditions.Array.data[1].conditionType
|
||||||
value: 3
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 3411510181381743576, guid: 9c432d220280f704684a6d5b9354c782, type: 3}
|
- target: {fileID: 3411510181381743576, guid: 9c432d220280f704684a6d5b9354c782, type: 3}
|
||||||
propertyPath: abilityPriorityList.Array.data[2].castConditions.Array.data[2].conditionType
|
propertyPath: abilityPriorityList.Array.data[2].castConditions.Array.data[2].conditionType
|
||||||
|
value: 3
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3411510181381743576, guid: 9c432d220280f704684a6d5b9354c782, type: 3}
|
||||||
|
propertyPath: abilityPriorityList.Array.data[3].castConditions.Array.data[0].conditionType
|
||||||
value: 2
|
value: 2
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 3411510181381743576, guid: 9c432d220280f704684a6d5b9354c782, type: 3}
|
- target: {fileID: 3411510181381743576, guid: 9c432d220280f704684a6d5b9354c782, type: 3}
|
||||||
propertyPath: abilityPriorityList.Array.data[3].castConditions.Array.data[1].conditionType
|
propertyPath: abilityPriorityList.Array.data[3].castConditions.Array.data[1].conditionType
|
||||||
value: 3
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 3411510181381743576, guid: 9c432d220280f704684a6d5b9354c782, type: 3}
|
- target: {fileID: 3411510181381743576, guid: 9c432d220280f704684a6d5b9354c782, type: 3}
|
||||||
propertyPath: abilityPriorityList.Array.data[3].castConditions.Array.data[2].conditionType
|
propertyPath: abilityPriorityList.Array.data[3].castConditions.Array.data[2].conditionType
|
||||||
value: 2
|
value: 3
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 4847227750113470832, guid: 9c432d220280f704684a6d5b9354c782, type: 3}
|
- target: {fileID: 4847227750113470832, guid: 9c432d220280f704684a6d5b9354c782, type: 3}
|
||||||
propertyPath: ability
|
propertyPath: ability
|
||||||
|
@ -10,7 +10,7 @@ MonoBehaviour:
|
|||||||
m_Enabled: 1
|
m_Enabled: 1
|
||||||
m_EditorHideFlags: 0
|
m_EditorHideFlags: 0
|
||||||
m_Script: {fileID: 11500000, guid: f4ddf33e31e7c3d4e9f2078940308dfb, type: 3}
|
m_Script: {fileID: 11500000, guid: f4ddf33e31e7c3d4e9f2078940308dfb, type: 3}
|
||||||
m_Name: DrainProjectile
|
m_Name: MeleeDrainProjectile
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
Icon: {fileID: 0}
|
Icon: {fileID: 0}
|
||||||
targettingTags:
|
targettingTags:
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 50fe026b53483dd4fa08679bd24bb4b9
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,36 @@
|
|||||||
|
%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: SpellDrainProjectile
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
Icon: {fileID: 0}
|
||||||
|
targettingTags:
|
||||||
|
- {fileID: 11400000, guid: 9e6b298c2ce2856418b205442417a433, type: 2}
|
||||||
|
tags:
|
||||||
|
- {fileID: 11400000, guid: 4e6f036fb4aad9b428694360fcc62f88, type: 2}
|
||||||
|
- {fileID: 11400000, guid: d7a9b755d873bad4f9bbd0393bc36a42, type: 2}
|
||||||
|
- {fileID: 11400000, guid: 9bbf01c0977dc98408db3efec6685c56, type: 2}
|
||||||
|
abilityEffects:
|
||||||
|
- {fileID: 11400000, guid: 3dac29f6797248c41bdf9840567607db, type: 2}
|
||||||
|
- {fileID: 11400000, guid: 79905dfdc8c52b846a3696d716c12341, type: 2}
|
||||||
|
castTime: 0.5
|
||||||
|
manaCost: 0
|
||||||
|
healthCost: 0
|
||||||
|
classResourceCost: 0
|
||||||
|
cooldown: 0
|
||||||
|
castableWhileMoving: 0
|
||||||
|
animationType: 1
|
||||||
|
projectilePrefab: {fileID: 1405724118519419521, guid: 0ccefd8e90a52a847b38fb05414ed6de, type: 3}
|
||||||
|
projectileSpeed: 5
|
||||||
|
lifeSpan: 2
|
||||||
|
canPierce: 0
|
||||||
|
canHitSelf: 1
|
@ -19,7 +19,7 @@ MonoBehaviour:
|
|||||||
castTime: 0
|
castTime: 0
|
||||||
manaCost: 5
|
manaCost: 5
|
||||||
healthCost: 0
|
healthCost: 0
|
||||||
classResourceCost: 5
|
classResourceCost: 10
|
||||||
cooldown: 8
|
cooldown: 8
|
||||||
castableWhileMoving: 0
|
castableWhileMoving: 0
|
||||||
animationType: 1
|
animationType: 1
|
||||||
|
@ -19,7 +19,7 @@ MonoBehaviour:
|
|||||||
castTime: 0
|
castTime: 0
|
||||||
manaCost: 5
|
manaCost: 5
|
||||||
healthCost: 0
|
healthCost: 0
|
||||||
classResourceCost: 5
|
classResourceCost: 10
|
||||||
cooldown: 8
|
cooldown: 8
|
||||||
castableWhileMoving: 0
|
castableWhileMoving: 0
|
||||||
animationType: 1
|
animationType: 1
|
||||||
|
@ -19,7 +19,7 @@ MonoBehaviour:
|
|||||||
castTime: 0
|
castTime: 0
|
||||||
manaCost: 5
|
manaCost: 5
|
||||||
healthCost: 0
|
healthCost: 0
|
||||||
classResourceCost: 5
|
classResourceCost: 10
|
||||||
cooldown: 8
|
cooldown: 8
|
||||||
castableWhileMoving: 0
|
castableWhileMoving: 0
|
||||||
animationType: 1
|
animationType: 1
|
||||||
|
@ -19,7 +19,7 @@ MonoBehaviour:
|
|||||||
castTime: 0
|
castTime: 0
|
||||||
manaCost: 5
|
manaCost: 5
|
||||||
healthCost: 0
|
healthCost: 0
|
||||||
classResourceCost: 5
|
classResourceCost: 10
|
||||||
cooldown: 8
|
cooldown: 8
|
||||||
castableWhileMoving: 0
|
castableWhileMoving: 0
|
||||||
animationType: 1
|
animationType: 1
|
||||||
|
@ -0,0 +1,21 @@
|
|||||||
|
%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: MeleeDrainEffectClassResource
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
tags:
|
||||||
|
- {fileID: 11400000, guid: 4e6f036fb4aad9b428694360fcc62f88, type: 2}
|
||||||
|
influencingStats: []
|
||||||
|
baseValue: 0.25
|
||||||
|
AlliedTargetMultiplier: 1
|
||||||
|
EnemyTargetMultiplier: 1
|
||||||
|
applyToClassResourceInstead: 1
|
@ -10,12 +10,12 @@ MonoBehaviour:
|
|||||||
m_Enabled: 1
|
m_Enabled: 1
|
||||||
m_EditorHideFlags: 0
|
m_EditorHideFlags: 0
|
||||||
m_Script: {fileID: 11500000, guid: 081df6f2fd69b7643a4844062a82871f, type: 3}
|
m_Script: {fileID: 11500000, guid: 081df6f2fd69b7643a4844062a82871f, type: 3}
|
||||||
m_Name: DrainEffectClassResource
|
m_Name: SpellDrainEffectClassResource
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
tags:
|
tags:
|
||||||
- {fileID: 11400000, guid: 4e6f036fb4aad9b428694360fcc62f88, type: 2}
|
- {fileID: 11400000, guid: 4e6f036fb4aad9b428694360fcc62f88, type: 2}
|
||||||
influencingStats: []
|
influencingStats: []
|
||||||
baseValue: 1
|
baseValue: 1.5
|
||||||
AlliedTargetMultiplier: 1
|
AlliedTargetMultiplier: 1
|
||||||
EnemyTargetMultiplier: 1
|
EnemyTargetMultiplier: 1
|
||||||
applyToClassResourceInstead: 1
|
applyToClassResourceInstead: 1
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 79905dfdc8c52b846a3696d716c12341
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -1,3 +1,5 @@
|
|||||||
|
using Kryz.CharacterStats;
|
||||||
|
using Kryz.CharacterStats.Examples;
|
||||||
using Photon.Pun;
|
using Photon.Pun;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
@ -9,6 +11,8 @@ public class SummonAbility : BaseAbility
|
|||||||
public GameObject minionPrefab;
|
public GameObject minionPrefab;
|
||||||
|
|
||||||
private GameObject instantiatedMinion;
|
private GameObject instantiatedMinion;
|
||||||
|
private CharacterStats ownerStats;
|
||||||
|
private CharacterStats minionStats;
|
||||||
|
|
||||||
public override void Execute(PhotonView user, Taggable userTag)
|
public override void Execute(PhotonView user, Taggable userTag)
|
||||||
{
|
{
|
||||||
@ -17,7 +21,7 @@ public class SummonAbility : BaseAbility
|
|||||||
Debug.Log($"Player {user.name} casted {this.name} and spent {manaCost} mana.");
|
Debug.Log($"Player {user.name} casted {this.name} and spent {manaCost} mana.");
|
||||||
|
|
||||||
instantiatedMinion = PhotonNetwork.Instantiate("Abilities/" + minionPrefab.name, user.GetComponentInChildren<ProjectileSpawnLocationController>().transform.position, user.GetComponentInChildren<ProjectileSpawnLocationController>().transform.rotation);
|
instantiatedMinion = PhotonNetwork.Instantiate("Abilities/" + minionPrefab.name, user.GetComponentInChildren<ProjectileSpawnLocationController>().transform.position, user.GetComponentInChildren<ProjectileSpawnLocationController>().transform.rotation);
|
||||||
|
InitializeStatsBasedOnOwner(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Execute(PhotonView user, Taggable userTag, Vector3 point)
|
public override void Execute(PhotonView user, Taggable userTag, Vector3 point)
|
||||||
@ -27,7 +31,7 @@ public class SummonAbility : BaseAbility
|
|||||||
Debug.Log($"Player {user.name} casted {this.name} and spent {manaCost} mana.");
|
Debug.Log($"Player {user.name} casted {this.name} and spent {manaCost} mana.");
|
||||||
|
|
||||||
instantiatedMinion = PhotonNetwork.Instantiate("Abilities/" + minionPrefab.name, user.GetComponentInChildren<ProjectileSpawnLocationController>().transform.position, user.GetComponentInChildren<ProjectileSpawnLocationController>().transform.rotation);
|
instantiatedMinion = PhotonNetwork.Instantiate("Abilities/" + minionPrefab.name, user.GetComponentInChildren<ProjectileSpawnLocationController>().transform.position, user.GetComponentInChildren<ProjectileSpawnLocationController>().transform.rotation);
|
||||||
|
InitializeStatsBasedOnOwner(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Execute(PhotonView user, Taggable userTag, Transform target)
|
public override void Execute(PhotonView user, Taggable userTag, Transform target)
|
||||||
@ -37,6 +41,20 @@ public class SummonAbility : BaseAbility
|
|||||||
Debug.Log($"Player {user.name} casted {this.name} and spent {manaCost} mana.");
|
Debug.Log($"Player {user.name} casted {this.name} and spent {manaCost} mana.");
|
||||||
|
|
||||||
instantiatedMinion = PhotonNetwork.Instantiate("Abilities/" + minionPrefab.name, user.GetComponentInChildren<ProjectileSpawnLocationController>().transform.position, user.GetComponentInChildren<ProjectileSpawnLocationController>().transform.rotation);
|
instantiatedMinion = PhotonNetwork.Instantiate("Abilities/" + minionPrefab.name, user.GetComponentInChildren<ProjectileSpawnLocationController>().transform.position, user.GetComponentInChildren<ProjectileSpawnLocationController>().transform.rotation);
|
||||||
|
InitializeStatsBasedOnOwner(user);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void InitializeStatsBasedOnOwner(PhotonView user)
|
||||||
|
{
|
||||||
|
ownerStats = user.GetComponent<CharacterStats>();
|
||||||
|
minionStats = instantiatedMinion.GetComponent<CharacterStats>();
|
||||||
|
|
||||||
|
minionStats.Strength.AddModifier(new StatModifier(ownerStats.Strength.Value * GameConstants.CharacterBalancing.PercentageStatScaleForMinions, StatModType.Flat));
|
||||||
|
minionStats.Agility.AddModifier(new StatModifier(ownerStats.Agility.Value * GameConstants.CharacterBalancing.PercentageStatScaleForMinions, StatModType.Flat));
|
||||||
|
minionStats.Intelligence.AddModifier(new StatModifier(ownerStats.Intelligence.Value * GameConstants.CharacterBalancing.PercentageStatScaleForMinions, StatModType.Flat));
|
||||||
|
minionStats.Spirit.AddModifier(new StatModifier(ownerStats.Spirit.Value * GameConstants.CharacterBalancing.PercentageStatScaleForMinions, StatModType.Flat));
|
||||||
|
minionStats.Vitality.AddModifier(new StatModifier(ownerStats.Vitality.Value * GameConstants.CharacterBalancing.PercentageStatScaleForMinions, StatModType.Flat));
|
||||||
|
|
||||||
|
minionStats.onUpdateStatValues.Invoke();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,8 @@ public static class GameConstants
|
|||||||
public static float ReviveSpeed = 1f;
|
public static float ReviveSpeed = 1f;
|
||||||
public static float ReviveTime = 5f;
|
public static float ReviveTime = 5f;
|
||||||
public static float ReviveHealthPercent = 0.5f;
|
public static float ReviveHealthPercent = 0.5f;
|
||||||
|
|
||||||
|
public static float PercentageStatScaleForMinions = 0.8f;
|
||||||
}
|
}
|
||||||
public static class GameBalancing
|
public static class GameBalancing
|
||||||
{
|
{
|
||||||
|
@ -351,10 +351,19 @@ public class NPCControllerBase : MonoBehaviour
|
|||||||
{
|
{
|
||||||
PatrolNewPosition();
|
PatrolNewPosition();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
UpdatePatrolTarget(patrolDestination);
|
||||||
|
SetAgentMoving(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Debug.Log("Patrolling update, available targets, waiting for sight to do its job");
|
Debug.Log("Patrolling update, available targets, waiting for sight to do its job");
|
||||||
|
if(currentTarget == null)
|
||||||
|
{
|
||||||
|
UpdateCurrentTarget(GetClosestTarget());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -44,22 +44,36 @@ public class MinionNPCController : BasicEnemyNPCController
|
|||||||
{
|
{
|
||||||
if (!HasAvailableTargets())
|
if (!HasAvailableTargets())
|
||||||
{
|
{
|
||||||
|
Debug.Log("BRAIN: !HasAVailableTargetsInside");
|
||||||
if (currentTarget != null)
|
if (currentTarget != null)
|
||||||
{
|
{
|
||||||
|
Debug.Log("BRAIN: TargetWasNull");
|
||||||
currentTarget = null;
|
currentTarget = null;
|
||||||
}
|
}
|
||||||
if (agent.destination == null)
|
if (agent.destination == null)
|
||||||
{
|
{
|
||||||
PatrolNewPosition();
|
Debug.Log("BRAIN: DEstination Null");
|
||||||
|
FollowOwner();
|
||||||
}
|
}
|
||||||
else if (agent.remainingDistance < distanceToChangePatrolDestination)
|
else if (agent.remainingDistance < distanceToChangePatrolDestination)
|
||||||
{
|
{
|
||||||
PatrolNewPosition();
|
Debug.Log("BRAIN: StoppingDistanceReached");
|
||||||
|
FollowOwner();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Debug.Log("BRAIN: Else");
|
||||||
|
FollowOwner();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Debug.Log("BRAIN: Else Else");
|
||||||
FollowOwner();
|
FollowOwner();
|
||||||
|
if (currentTarget == null)
|
||||||
|
{
|
||||||
|
UpdateCurrentTarget(GetClosestTarget());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -70,6 +84,7 @@ public class MinionNPCController : BasicEnemyNPCController
|
|||||||
patrolDestination.y = 0f;
|
patrolDestination.y = 0f;
|
||||||
UpdatePatrolTarget(patrolDestination);
|
UpdatePatrolTarget(patrolDestination);
|
||||||
SetAgentMoving(true);
|
SetAgentMoving(true);
|
||||||
|
Debug.Log("BRAIN: Following owner");
|
||||||
}
|
}
|
||||||
|
|
||||||
[PunRPC]
|
[PunRPC]
|
||||||
|
@ -35,8 +35,8 @@ public class ClassResourceSpender : MonoBehaviour
|
|||||||
}
|
}
|
||||||
|
|
||||||
autocastAbility.Execute(player.photonView, playerTag);
|
autocastAbility.Execute(player.photonView, playerTag);
|
||||||
|
|
||||||
if (autocastAbility.cooldown > 0)
|
if (autocastAbility.cooldown > 0)
|
||||||
abilityCooldownTracker.StartAbilityCooldown(autocastAbility);
|
abilityCooldownTracker.StartAbilityCooldown(autocastAbility);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -94,7 +94,7 @@ Material:
|
|||||||
- _Mode: 0
|
- _Mode: 0
|
||||||
- _OcclusionStrength: 1
|
- _OcclusionStrength: 1
|
||||||
- _Parallax: 0.02
|
- _Parallax: 0.02
|
||||||
- _Rotation: 6.8839245
|
- _Rotation: 5.946201
|
||||||
- _SmoothnessTextureChannel: 0
|
- _SmoothnessTextureChannel: 0
|
||||||
- _SpecularHighlights: 1
|
- _SpecularHighlights: 1
|
||||||
- _SrcBlend: 1
|
- _SrcBlend: 1
|
||||||
|
File diff suppressed because one or more lines are too long
@ -134,7 +134,7 @@ PlayerSettings:
|
|||||||
16:10: 1
|
16:10: 1
|
||||||
16:9: 1
|
16:9: 1
|
||||||
Others: 1
|
Others: 1
|
||||||
bundleVersion: 0.9.0
|
bundleVersion: 0.9.1
|
||||||
preloadedAssets:
|
preloadedAssets:
|
||||||
- {fileID: 947724257692438902, guid: cd9921cbc21600a45b5c842c4e6ef004, type: 3}
|
- {fileID: 947724257692438902, guid: cd9921cbc21600a45b5c842c4e6ef004, type: 3}
|
||||||
- {fileID: 753911528859556811, guid: bc291c869c1aa9744be1f56806b8c99d, type: 3}
|
- {fileID: 753911528859556811, guid: bc291c869c1aa9744be1f56806b8c99d, type: 3}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user