Skip to content

Commit

Permalink
Adjust enemy attack range
Browse files Browse the repository at this point in the history
  • Loading branch information
Allofich committed Nov 20, 2017
1 parent e1f98b6 commit af77903
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
MeleeAttackSpeed: 1.25
MeleeDistance: 2
MeleeDistance: 2.5
--- !u!114 &11435454
MonoBehaviour:
m_ObjectHideFlags: 1
Expand Down Expand Up @@ -339,6 +339,7 @@ MonoBehaviour:
MapChance: 0
LootTableKey:
HitFrame: 0
Weight: 0
EnemyState: 0
StateAnims: []
--- !u!114 &11492232
Expand Down
3 changes: 2 additions & 1 deletion Assets/Prefabs/Scene/DaggerfallEnemy [Standalone].prefab
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
MeleeAttackSpeed: 1.25
MeleeDistance: 2
MeleeDistance: 2.5
--- !u!114 &11435454
MonoBehaviour:
m_ObjectHideFlags: 1
Expand Down Expand Up @@ -327,6 +327,7 @@ MonoBehaviour:
MapChance: 0
LootTableKey:
HitFrame: 0
Weight: 0
EnemyState: 0
StateAnims: []
--- !u!114 &11492232
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scenes/DaggerfallUnityGame.unity
Original file line number Diff line number Diff line change
Expand Up @@ -2100,7 +2100,7 @@ Prefab:
objectReference: {fileID: 0}
- target: {fileID: 22400016, guid: 312abd0527754e047a6bfbc424f09ace, type: 2}
propertyPath: m_SizeDelta.y
value: 0
value: 16
objectReference: {fileID: 0}
- target: {fileID: 11400006, guid: 312abd0527754e047a6bfbc424f09ace, type: 2}
propertyPath: m_Value
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/Game/EnemyAttack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace DaggerfallWorkshop.Game
public class EnemyAttack : MonoBehaviour
{
public float MeleeAttackSpeed = 1.25f; // Number of seconds between melee attacks
public float MeleeDistance = 2f; // Maximum distance for melee attack
public float MeleeDistance = 2.5f; // Maximum distance for melee attack

EnemyMotor motor;
EnemySenses senses;
Expand Down

0 comments on commit af77903

Please sign in to comment.