Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tales of MajEyal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
yutio888
Tales of MajEyal
Commits
481aaedf
Commit
481aaedf
authored
14 years ago
by
dg
Browse files
Options
Downloads
Patches
Plain Diff
ahha
git-svn-id:
http://svn.net-core.org/repos/t-engine4@2162
51575b47-30f0-44d4-a5cc-537603b46e54
parent
a96575e7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
game/modules/tome/class/NPC.lua
+5
-3
5 additions, 3 deletions
game/modules/tome/class/NPC.lua
game/modules/tome/data/zones/town-derth/npcs.lua
+1
-0
1 addition, 0 deletions
game/modules/tome/data/zones/town-derth/npcs.lua
with
6 additions
and
3 deletions
game/modules/tome/class/NPC.lua
+
5
−
3
View file @
481aaedf
...
...
@@ -95,7 +95,9 @@ function _M:checkAngered(src, set, value)
end
if
not
was_hostile
and
self
:
reactionToward
(
src
)
<
0
then
self
:
doEmote
(
"Kill him!"
,
30
)
if
self
.
anger_emote
then
self
:
doEmote
(
self
.
anger_emote
:
gsub
(
"@himher@"
,
src.female
and
"her"
or
"him"
),
30
)
end
end
end
...
...
@@ -116,7 +118,7 @@ function _M:onTakeHit(value, src)
-- Call for help if we become hostile
for
i
=
1
,
#
self
.
fov
.
actors_dist
do
local
act
=
self
.
fov
.
actors_dist
[
i
]
if
act
and
self
:
reactionToward
(
act
)
>
0
and
not
act
.
dead
then
if
act
and
act
~=
self
and
self
:
reactionToward
(
act
)
>
0
and
not
act
.
dead
then
act
:
checkAngered
(
src
,
false
,
-
50
)
end
end
...
...
@@ -138,7 +140,7 @@ function _M:die(src)
-- Call for help if we become hostile
for
i
=
1
,
#
self
.
fov
.
actors_dist
do
local
act
=
self
.
fov
.
actors_dist
[
i
]
if
act
and
act
:
reactionToward
(
rsrc
)
>=
0
and
self
:
reactionToward
(
act
)
>
0
and
not
act
.
dead
then
if
act
and
act
~=
self
and
act
:
reactionToward
(
rsrc
)
>=
0
and
self
:
reactionToward
(
act
)
>
0
and
not
act
.
dead
then
act
:
checkAngered
(
src
,
false
,
-
101
)
end
end
...
...
This diff is collapsed.
Click to expand it.
game/modules/tome/data/zones/town-derth/npcs.lua
+
1
−
0
View file @
481aaedf
...
...
@@ -26,6 +26,7 @@ newEntity{
type
=
"humanoid"
,
subtype
=
"human"
,
display
=
"p"
,
color
=
colors
.
WHITE
,
faction
=
"allied-kingdoms"
,
anger_emote
=
"Catch @himher@!"
,
combat
=
{
dam
=
resolvers
.
rngavg
(
1
,
2
),
atk
=
2
,
apr
=
0
,
dammod
=
{
str
=
0
.
4
}
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment