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
Eggs
rjw
Commits
4e343d6a
Commit
4e343d6a
authored
4 years ago
by
Ed86
Browse files
Options
Downloads
Patches
Plain Diff
merged quickie receiver into loved
parent
ac6bf823
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
Source/JobDrivers/JobDriver_SexBaseRecieverLoved.cs
+50
-85
50 additions, 85 deletions
Source/JobDrivers/JobDriver_SexBaseRecieverLoved.cs
Source/JobDrivers/JobDriver_SexBaseRecieverQuickie.cs
+0
-63
0 additions, 63 deletions
Source/JobDrivers/JobDriver_SexBaseRecieverQuickie.cs
with
50 additions
and
148 deletions
Source/JobDrivers/JobDriver_SexBaseRecieverLoved.cs
+
50
−
85
View file @
4e343d6a
...
...
@@ -13,6 +13,7 @@ namespace rjw
setup_ticks
();
parteners
.
Add
(
Partner
);
// add job starter, so this wont fail, before Initiator starts his job
//--Log.Message("[" + SaveStorage.ModId + "]JobDriver_GettinLoved::MakeNewToils is called");
//Log.Message("[" + SaveStorage.ModId + "]" + Partner.CurJob.def);
float
partner_ability
=
xxx
.
get_sex_ability
(
Partner
);
...
...
@@ -30,124 +31,88 @@ namespace rjw
this
.
FailOnDespawnedOrNull
(
iTarget
);
this
.
FailOn
(()
=>
!
Partner
.
health
.
capacities
.
CanBeAwake
);
this
.
FailOn
(()
=>
pawn
.
Drafted
);
this
.
FailOn
(()
=>
Partner
.
Drafted
);
if
(
Partner
.
CurJob
.
def
==
xxx
.
casual_sex
)
if
(
Partner
.
CurJob
.
def
==
xxx
.
casual_sex
)
// sex in bed
{
this
.
FailOn
(()
=>
pawn
.
Drafted
);
this
.
KeepLyingDown
(
iBed
);
yield
return
Toils_Reserve
.
Reserve
(
iTarget
,
1
,
0
);
yield
return
Toils_Reserve
.
Reserve
(
iBed
,
Bed
.
SleepingSlotsCount
,
0
);
Toil
get_loved
=
Toils_LayDown
.
LayDown
(
iBed
,
true
,
false
,
false
,
false
);
var
get_loved
=
MakeSexToil
(
);
get_loved
.
FailOn
(()
=>
Partner
.
CurJob
.
def
!=
xxx
.
casual_sex
);
get_loved
.
defaultCompleteMode
=
ToilCompleteMode
.
Never
;
get_loved
.
socialMode
=
RandomSocialMode
.
Off
;
get_loved
.
handlingFacing
=
true
;
get_loved
.
tickAction
=
delegate
{
if
(
pawn
.
IsHashIntervalTick
(
ticks_between_hearts
))
ThrowMetaIcon
(
pawn
.
Position
,
pawn
.
Map
,
ThingDefOf
.
Mote_Heart
);
};
get_loved
.
AddFinishAction
(
delegate
{
if
(
xxx
.
is_human
(
pawn
))
pawn
.
Drawer
.
renderer
.
graphics
.
ResolveApparelGraphics
();
});
yield
return
get_loved
;
}
else
if
(
Partner
.
CurJob
.
def
==
xxx
.
quick_sex
)
{
yield
return
Toils_Reserve
.
Reserve
(
iTarget
,
1
,
0
);
var
get_loved
=
MakeSexToil
();
get_loved
.
handlingFacing
=
false
;
yield
return
get_loved
;
}
else
if
(
Partner
.
CurJob
.
def
==
xxx
.
whore_is_serving_visitors
)
{
this
.
FailOn
(()
=>
Partner
.
CurJob
==
null
);
yield
return
Toils_Goto
.
GotoThing
(
iTarget
,
PathEndMode
.
OnCell
);
yield
return
Toils_Reserve
.
Reserve
(
iTarget
,
1
,
0
);
Toil
get_loved
=
new
Toil
();
var
get_loved
=
MakeSex
Toil
();
get_loved
.
FailOn
(()
=>
(
Partner
.
CurJob
.
def
!=
xxx
.
whore_is_serving_visitors
));
get_loved
.
defaultCompleteMode
=
ToilCompleteMode
.
Never
;
get_loved
.
socialMode
=
RandomSocialMode
.
Off
;
get_loved
.
handlingFacing
=
true
;
get_loved
.
tickAction
=
delegate
{
--
ticks_remaining
;
if
(
pawn
.
IsHashIntervalTick
(
ticks_between_hearts
))
ThrowMetaIcon
(
pawn
.
Position
,
pawn
.
Map
,
ThingDefOf
.
Mote_Heart
);
};
get_loved
.
AddEndCondition
(
new
Func
<
JobCondition
>(()
=>
{
if
((
ticks_remaining
<=
0
)
||
(
parteners
.
Count
<=
0
))
{
return
JobCondition
.
Succeeded
;
}
return
JobCondition
.
Ongoing
;
}));
get_loved
.
AddFinishAction
(
delegate
{
if
(
xxx
.
is_human
(
pawn
))
pawn
.
Drawer
.
renderer
.
graphics
.
ResolveApparelGraphics
();
});
yield
return
get_loved
;
}
else
if
(
Partner
.
CurJob
.
def
==
xxx
.
bestialityForFemale
)
{
this
.
FailOn
(()
=>
Partner
.
CurJob
==
null
);
yield
return
Toils_Goto
.
GotoThing
(
iTarget
,
PathEndMode
.
OnCell
);
yield
return
Toils_Reserve
.
Reserve
(
iTarget
,
1
,
0
);
Toil
get_loved
=
new
Toil
();
var
get_loved
=
MakeSex
Toil
();
get_loved
.
FailOn
(()
=>
(
Partner
.
CurJob
.
def
!=
xxx
.
bestialityForFemale
));
get_loved
.
defaultCompleteMode
=
ToilCompleteMode
.
Never
;
get_loved
.
socialMode
=
RandomSocialMode
.
Off
;
get_loved
.
handlingFacing
=
true
;
get_loved
.
tickAction
=
delegate
{
--
ticks_remaining
;
if
(
pawn
.
IsHashIntervalTick
(
ticks_between_hearts
))
ThrowMetaIcon
(
pawn
.
Position
,
pawn
.
Map
,
ThingDefOf
.
Mote_Heart
);
};
get_loved
.
AddEndCondition
(
new
Func
<
JobCondition
>(()
=>
{
if
((
ticks_remaining
<=
0
)
||
(
parteners
.
Count
<=
0
))
{
return
JobCondition
.
Succeeded
;
}
return
JobCondition
.
Ongoing
;
}));
get_loved
.
AddFinishAction
(
delegate
{
if
(
xxx
.
is_human
(
pawn
))
pawn
.
Drawer
.
renderer
.
graphics
.
ResolveApparelGraphics
();
});
get_loved
.
socialMode
=
RandomSocialMode
.
Off
;
yield
return
get_loved
;
}
else
if
(
Partner
.
CurJob
.
def
==
xxx
.
animalMate
)
{
this
.
FailOn
(()
=>
Partner
.
CurJob
==
null
);
yield
return
Toils_Goto
.
GotoThing
(
iTarget
,
PathEndMode
.
OnCell
);
yield
return
Toils_Reserve
.
Reserve
(
iTarget
,
1
,
0
);
Toil
get_loved
=
new
Toil
();
var
get_loved
=
MakeSex
Toil
();
get_loved
.
FailOn
(()
=>
(
Partner
.
CurJob
.
def
!=
xxx
.
animalMate
));
get_loved
.
defaultCompleteMode
=
ToilCompleteMode
.
Never
;
get_loved
.
socialMode
=
RandomSocialMode
.
Off
;
get_loved
.
handlingFacing
=
true
;
get_loved
.
tickAction
=
delegate
{
--
ticks_remaining
;
if
(
pawn
.
IsHashIntervalTick
(
ticks_between_hearts
))
ThrowMetaIcon
(
pawn
.
Position
,
pawn
.
Map
,
ThingDefOf
.
Mote_Heart
);
};
get_loved
.
AddEndCondition
(
new
Func
<
JobCondition
>(()
=>
{
if
((
ticks_remaining
<=
0
)
||
(
parteners
.
Count
<=
0
))
{
return
JobCondition
.
Succeeded
;
}
return
JobCondition
.
Ongoing
;
}));
get_loved
.
socialMode
=
RandomSocialMode
.
Off
;
yield
return
get_loved
;
}
}
private
Toil
MakeSexToil
()
{
Toil
get_loved
=
new
Toil
();
if
(
Partner
.
CurJob
.
def
==
xxx
.
casual_sex
)
// sex in bed
get_loved
=
Toils_LayDown
.
LayDown
(
iBed
,
true
,
false
,
false
,
false
);
get_loved
.
defaultCompleteMode
=
ToilCompleteMode
.
Never
;
get_loved
.
socialMode
=
RandomSocialMode
.
Off
;
get_loved
.
handlingFacing
=
true
;
get_loved
.
tickAction
=
delegate
{
--
ticks_remaining
;
if
(
pawn
.
IsHashIntervalTick
(
ticks_between_hearts
))
ThrowMetaIcon
(
pawn
.
Position
,
pawn
.
Map
,
ThingDefOf
.
Mote_Heart
);
};
get_loved
.
AddEndCondition
(
new
Func
<
JobCondition
>(()
=>
{
if
((
ticks_remaining
<=
0
)
||
(
parteners
.
Count
<=
0
))
{
return
JobCondition
.
Succeeded
;
}
return
JobCondition
.
Ongoing
;
}));
get_loved
.
AddFinishAction
(
delegate
{
if
(
xxx
.
is_human
(
pawn
))
pawn
.
Drawer
.
renderer
.
graphics
.
ResolveApparelGraphics
();
});
get_loved
.
socialMode
=
RandomSocialMode
.
Off
;
return
get_loved
;
}
}
public
class
JobDriver_SexBaseRecieverQuickie
:
JobDriver_SexBaseRecieverLoved
{
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Source/JobDrivers/JobDriver_SexBaseRecieverQuickie.cs
deleted
100644 → 0
+
0
−
63
View file @
ac6bf823
using
System
;
using
System.Collections.Generic
;
using
RimWorld
;
using
Verse
;
using
Verse.AI
;
namespace
rjw
{
public
class
JobDriver_SexBaseRecieverQuickie
:
JobDriver_SexBaseReciever
{
protected
override
IEnumerable
<
Toil
>
MakeNewToils
()
{
setup_ticks
();
parteners
.
Add
(
Partner
);
// add job starter, so this wont fail, before Initiator starts his job
float
partner_ability
=
xxx
.
get_sex_ability
(
Partner
);
// More/less hearts based on partner ability.
if
(
partner_ability
<
0.8f
)
ticks_between_thrusts
+=
120
;
else
if
(
partner_ability
>
2.0f
)
ticks_between_thrusts
-=
30
;
// More/less hearts based on opinion.
if
(
pawn
.
relations
.
OpinionOf
(
Partner
)
<
0
)
ticks_between_hearts
+=
50
;
else
if
(
pawn
.
relations
.
OpinionOf
(
Partner
)
>
60
)
ticks_between_hearts
-=
25
;
this
.
FailOnDespawnedOrNull
(
iTarget
);
this
.
FailOn
(()
=>
!
Partner
.
health
.
capacities
.
CanBeAwake
);
yield
return
Toils_Reserve
.
Reserve
(
iTarget
,
1
,
0
);
Toil
get_loved
=
new
Toil
();
get_loved
.
defaultCompleteMode
=
ToilCompleteMode
.
Never
;
get_loved
.
socialMode
=
RandomSocialMode
.
Off
;
get_loved
.
initAction
=
delegate
{
pawn
.
pather
.
StopDead
();
pawn
.
jobs
.
curDriver
.
asleep
=
false
;
};
get_loved
.
AddPreTickAction
(
delegate
{
if
(
pawn
.
IsHashIntervalTick
(
ticks_between_hearts
))
ThrowMetaIcon
(
pawn
.
Position
,
pawn
.
Map
,
ThingDefOf
.
Mote_Heart
);
});
get_loved
.
AddEndCondition
(
new
Func
<
JobCondition
>(()
=>
{
if
((
ticks_remaining
<=
0
)
||
(
parteners
.
Count
<=
0
))
{
return
JobCondition
.
Succeeded
;
}
return
JobCondition
.
Ongoing
;
}));
get_loved
.
AddFinishAction
(
delegate
{
if
(
xxx
.
is_human
(
pawn
))
pawn
.
Drawer
.
renderer
.
graphics
.
ResolveApparelGraphics
();
});
yield
return
get_loved
;
}
}
}
\ No newline at end of file
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