Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tales of MajEyal
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
tome
Tales of MajEyal
Commits
d2b8a479
Commit
d2b8a479
authored
5 years ago
by
Otowa Kotori
Browse files
Options
Downloads
Patches
Plain Diff
fix ai bug if you don't have preferred_paradox
http://forums.te4.org/viewtopic.php?f=42&t=50678
parent
485ebc96
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!630
otowakotori 1.7 misc fixes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
game/modules/tome/data/resources.lua
+1
-1
1 addition, 1 deletion
game/modules/tome/data/resources.lua
with
1 addition
and
1 deletion
game/modules/tome/data/resources.lua
+
1
−
1
View file @
d2b8a479
...
...
@@ -176,7 +176,7 @@ ActorResource:defineResource(_t"Paradox", "paradox", ActorTalents.T_PARADOX_POOL
ai
=
{
-- special ai functions and data
tactical
=
{
default_pool_size
=
100
,
-- assumed pool size to account for gains/losses/regeneration
want_level
=
function
(
act
,
aitarget
)
local
value
=
util
.
bound
(
5
*
(
act
:
getParadox
()
-
act
.
preferred_paradox
)
*
act
.
global_speed
/
300
,
-
10
,
5
)
-- excess paradox
local
value
=
util
.
bound
(
5
*
(
act
:
getParadox
()
-
(
act
.
preferred_paradox
or
300
)
)
*
act
.
global_speed
/
300
,
-
10
,
5
)
-- excess paradox
value
=
value
+
math.min
(
value
,
5
*
(
act
:
paradoxFailChance
()
/
100
)
^
.
5
)
-- preferred paradox overrides failure chance
return
value
end
...
...
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