Skip to content

Commit 4a505bc

Browse files
Merge pull request #6 from david-simoes-93/david/betaTesting
Beta testing - last fixes
2 parents 63b5582 + 883c0f8 commit 4a505bc

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

Assets/Resources/Prefabs/UI_Sniper.prefab

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ RectTransform:
4040
- {fileID: 2660599062746226202}
4141
- {fileID: 5427215832826055333}
4242
- {fileID: 4769254305147996424}
43-
- {fileID: 6588651019230867595}
4443
- {fileID: 4719344330296782526}
44+
- {fileID: 6588651019230867595}
4545
m_Father: {fileID: 0}
4646
m_RootOrder: 0
4747
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@@ -163,7 +163,7 @@ RectTransform:
163163
- {fileID: 2989869001936946805}
164164
- {fileID: 2855354270773238251}
165165
m_Father: {fileID: 8737853539303070747}
166-
m_RootOrder: 9
166+
m_RootOrder: 8
167167
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
168168
m_AnchorMin: {x: 0, y: 0}
169169
m_AnchorMax: {x: 1, y: 1}
@@ -2197,7 +2197,7 @@ Transform:
21972197
m_LocalScale: {x: 1, y: 1, z: 1}
21982198
m_Children: []
21992199
m_Father: {fileID: 8737853539303070747}
2200-
m_RootOrder: 8
2200+
m_RootOrder: 9
22012201
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
22022202
--- !u!1 &6722127539520228989
22032203
GameObject:

Assets/Src/Entity/Monsters/FreyjaScript.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ internal class FreyjaScript : MonoBehaviour, IConfigurableMonster
1919

2020
private readonly System.Random random_ = new System.Random();
2121

22-
private const float kAggroRange = 15;
22+
private const float kAggroRange = 20;
2323
private const float kSpawnPointRadius = 1;
2424
private const float kMoveIfFurtherAwayThan = 3;
2525

Assets/Src/Entity/Monsters/ThorScript.cs

+7-6
Original file line numberDiff line numberDiff line change
@@ -103,17 +103,18 @@ void FixedUpdate()
103103
}
104104
}
105105

106-
// AoE
107-
if (closestEntity != null)
106+
if (!parent_.IsDead && !parent_.IsStunned && parent_.LeashedBy == null && closestEntity != null)
107+
{
108+
// AoE
108109
ProcessSlam();
109110

111+
// chain lightning
112+
ProcessChainLightning(closestEntity);
113+
}
114+
110115
// spawn adds that wont move
111116
ProcessMagnet();
112117

113-
// chain lightning
114-
if (closestEntity != null)
115-
ProcessChainLightning(closestEntity);
116-
117118
// cloud slowly rotating around the room
118119
ProcessCloud(closestEntity);
119120
}

0 commit comments

Comments
 (0)