Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
CreatureChat
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Public
CreatureChat
Commits
5dd19219
Commit
5dd19219
authored
a year ago
by
Jonathan Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dont' attack when following
parent
061c4e02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
ChatDataManager.java
src/main/java/com/owlmaddie/chat/ChatDataManager.java
+1
-0
No files found.
src/main/java/com/owlmaddie/chat/ChatDataManager.java
View file @
5dd19219
...
@@ -224,6 +224,7 @@ public class ChatDataManager {
...
@@ -224,6 +224,7 @@ public class ChatDataManager {
if
(
behavior
.
getName
().
equals
(
"FOLLOW"
))
{
if
(
behavior
.
getName
().
equals
(
"FOLLOW"
))
{
FollowPlayerGoal
followGoal
=
new
FollowPlayerGoal
(
player
,
entity
,
1
F
);
FollowPlayerGoal
followGoal
=
new
FollowPlayerGoal
(
player
,
entity
,
1
F
);
EntityBehaviorManager
.
removeGoal
(
entity
,
FleePlayerGoal
.
class
);
EntityBehaviorManager
.
removeGoal
(
entity
,
FleePlayerGoal
.
class
);
EntityBehaviorManager
.
removeGoal
(
entity
,
AttackPlayerGoal
.
class
);
EntityBehaviorManager
.
addGoal
(
entity
,
followGoal
,
GoalPriority
.
FOLLOW_PLAYER
);
EntityBehaviorManager
.
addGoal
(
entity
,
followGoal
,
GoalPriority
.
FOLLOW_PLAYER
);
}
else
if
(
behavior
.
getName
().
equals
(
"UNFOLLOW"
))
{
}
else
if
(
behavior
.
getName
().
equals
(
"UNFOLLOW"
))
{
EntityBehaviorManager
.
removeGoal
(
entity
,
FollowPlayerGoal
.
class
);
EntityBehaviorManager
.
removeGoal
(
entity
,
FollowPlayerGoal
.
class
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment