Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rjw
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Scenty
rjw
Commits
022ceb9c
Commit
022ceb9c
authored
5 years ago
by
Ed86
Browse files
Options
Downloads
Patches
Plain Diff
added age factor to sex need so it wont decrease below 50% if humanlike age below min sex age
parent
a233181e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Source/Needs/Need_Sex.cs
+17
-0
17 additions, 0 deletions
Source/Needs/Need_Sex.cs
with
17 additions
and
0 deletions
Source/Needs/Need_Sex.cs
+
17
−
0
View file @
022ceb9c
...
...
@@ -113,6 +113,22 @@ namespace rjw
return
1f
;
}
static
float
agefactor
(
Pawn
pawn
)
{
if
(
xxx
.
is_human
(
pawn
))
{
int
age
=
pawn
.
ageTracker
.
AgeBiologicalYears
;
Need_Sex
horniness
=
pawn
.
needs
.
TryGetNeed
<
Need_Sex
>();
if
(
horniness
.
CurLevel
>
0.5f
)
return
1f
;
if
(
age
<
RJWSettings
.
sex_minimum_age
)
return
0f
;
}
return
1f
;
}
public
override
void
NeedInterval
()
//150 ticks between each calls
{
if
(
isInvisible
)
return
;
...
...
@@ -138,6 +154,7 @@ namespace rjw
brokenbodyfactor
(
pawn
)
*
druggedfactor
(
pawn
)
*
diseasefactor
(
pawn
)
*
agefactor
(
pawn
)
*
(((
Genital_Helper
.
has_penis
(
pawn
)
||
Genital_Helper
.
has_penis_infertile
(
pawn
))
&&
Genital_Helper
.
has_vagina
(
pawn
))
?
2.0f
:
1.0f
)
/
60000.0f
;
//--Log.Message("[RJW]Need_Sex::NeedInterval is called - pawn is " + xxx.get_pawnname(pawn) + " is has both genders " + (Genital_Helper.has_penis(pawn) && Genital_Helper.has_vagina(pawn)));
...
...
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