summaryrefslogtreecommitdiffstats
path: root/nfsw/scenes.py
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2019-10-13 11:55:58 -0400
committerrsiddharth <s@ricketyspace.net>2019-10-13 11:56:31 -0400
commit3683a3c618e82210c5c1f37139303c608eab35e4 (patch)
tree27531668a0d1b3af23f210d04db6d5a0100d26de /nfsw/scenes.py
parentc6d451ac2f13019adfb954b615828d3be9a23c6a (diff)
nfsw/scenes: Update coitus.
* nfsw/scenes.py (coitus): Flesh it out. (strayed): Next scene.
Diffstat (limited to 'nfsw/scenes.py')
-rw-r--r--nfsw/scenes.py83
1 files changed, 82 insertions, 1 deletions
diff --git a/nfsw/scenes.py b/nfsw/scenes.py
index 076002f..6dd8758 100644
--- a/nfsw/scenes.py
+++ b/nfsw/scenes.py
@@ -335,5 +335,86 @@ def nymphomaniac(o):
def coitus(o):
- return 'Code Coitus'
+ r = redis()
+
+ type = r.get('player:type').decode()
+ gobbledygook = [
+ 'Really?'
+ '\nWhen cat Tom sees rat Jerry'
+ '\nTom chases Jerry'
+ '\nThat\'s basic instinct'
+ '\nDon\'t you have one?',
+ 'Come on'
+ '\nA chipmunk would know'
+ '\nwhat to do when it sees'
+ '\nan attractive partner'
+ '\nchipping away at an acorn'
+ ]
+
+
+ def rj(name):
+ return read_junk('coitus/{}'.format(name))
+
+
+ def gg():
+ l = len(gobbledygook)
+
+ for i in range(0, l):
+ if r.sismember('scene:coitus:gg', i):
+ continue
+
+ r.sadd('scene:coitus:gg', i)
+ return gobbledygook[i]
+
+ return '\n'.join([
+ 'Your concierge is busy',
+ 'masturbating. He his unable',
+ 'to respond to you at the moment'
+ ])
+
+
+ def intro():
+ return rj('intro-{}'.format(type))
+
+
+ def colloquial():
+ return '\n'.join([
+ 'Use the colloquial term',
+ 'Pretty please'
+ ])
+
+
+ def p_done(q):
+ # Mark scene done
+ r.sadd('scenes:done', 'coitus')
+
+ # Move to next scene
+ r.set('scene', 'strayed')
+
+ return '\n\n'.join([
+ rj('fuck-{}'.format(type[1])),
+ strayed({'intro': 1})
+ ])
+
+
+ def p(q):
+
+ if 'fuck' in q:
+ return p_done(q)
+
+ if 'sex' in q or 'coitus' in q:
+ return colloquial()
+
+ return gg()
+
+
+ if 'intro' in o:
+ return intro()
+
+
+ if 'q' in o:
+ return p(o['q'])
+
+def strayed(o):
+ return 'Code Strayed'