|
@@ -152,7 +152,14 @@ if $ARGS[0] = 'set_home_read_acts':
|
|
|
'<center><img <<$set_imgh>> src="images/pc/activities/reading/bed_book_dressed.jpg"></center>'
|
|
|
end
|
|
|
|
|
|
- if mc_inventory['fantasy_books'] <= 0 and BookVars['fantasy_pages'] <= 0 and mc_inventory['romance_books'] = 0 and BookVars['romance_pages'] = 0 and artem_borrowed_book = 0 and BookVars['artem_pages'] <= 0:'You scratch your head looking at the book you already read, thinking. "Damn, nothing to read, maybe I''ll take a walk or search the market for a new book?"'
|
|
|
+ if mc_inventory['adventure_books'] <= 0 and BookVars['adventure_pages'] <= 0 and _
|
|
|
+ mc_inventory['fantasy_books'] <= 0 and BookVars['fantasy_books'] <= 0 and _
|
|
|
+ mc_inventory['romance_books'] <= 0 and BookVars['romance_pages'] <= 0 and _
|
|
|
+ mc_inventory['science_books'] <= 0 and BookVars['science_pages'] <= 0 and _
|
|
|
+ mc_inventory['scifi_books'] <= 0 and BookVars['scifi_pages'] <= 0 and _
|
|
|
+ artem_borrowed_book <= 0 and BookVars['artem_pages'] <= 0:
|
|
|
+ 'You scratch your head looking at the book you already read, thinking. "Damn, nothing to read, maybe I''ll take a walk or search the market for a new book?"'
|
|
|
+ end
|
|
|
|
|
|
if mc_inventory['science_books'] > 0:
|
|
|
if BookVars['science_pages'] <= 0:
|
|
@@ -225,7 +232,11 @@ if $ARGS[0] = 'set_home_read_acts':
|
|
|
menu_off = 1
|
|
|
temp_pages_read = (70 + rand(0, 40) + pcs_traits['nerd_status'] * 10)
|
|
|
BookVars['science_pages'] -= temp_pages_read
|
|
|
- if BookVars['science_pages'] = 0: totalbook += 1
|
|
|
+ if BookVars['science_pages'] <= 0:
|
|
|
+ BookVars['science_pages'] = 0
|
|
|
+ totalbook += 1
|
|
|
+ if lib_book_read = 1 and $lib_book_loaned = 'a science book': lib_book_read = 2
|
|
|
+ end
|
|
|
|
|
|
gs 'exp_gain', 'intel', rand(3,6) + rand(0, drugVars['mentats_dose'])
|
|
|
gs 'library_functions', 'read_book'
|
|
@@ -246,7 +257,7 @@ if $ARGS[0] = 'set_home_read_acts':
|
|
|
if pcs_stren > 1:stren_deg -= 1
|
|
|
if pcs_vital > 5:vital_deg -= 1
|
|
|
|
|
|
- if BookVars['science_pages'] = 0:
|
|
|
+ if BookVars['science_pages'] <= 0:
|
|
|
'You read the final chapters of the science book, completely immersed in the conclusions the authors make.'
|
|
|
else
|
|
|
'For an hour you enthusiastically read the book, completely immersed in absorbing the knowledge within. By the end you''ve read <<temp_pages_read>> pages.'
|
|
@@ -254,8 +265,8 @@ if $ARGS[0] = 'set_home_read_acts':
|
|
|
else
|
|
|
pcs_mood += 10
|
|
|
pcs_horny += 3
|
|
|
- if BookVars['science_pages'] = 0:
|
|
|
- 'You read the final chapters of the adventure novel.'
|
|
|
+ if BookVars['science_pages'] <= 0:
|
|
|
+ 'You read the final chapters of the science book.'
|
|
|
else
|
|
|
'Over the course of an hour you read <<temp_pages_read>> pages.'
|
|
|
end
|
|
@@ -271,8 +282,11 @@ if $ARGS[0] = 'set_home_read_acts':
|
|
|
menu_off = 1
|
|
|
temp_pages_read = (80 + rand(0, 40) + pcs_traits['nerd_status'] * 5)
|
|
|
BookVars['adventure_pages'] -= temp_pages_read
|
|
|
- if BookVars['adventure_pages'] = 0: totalbook += 1
|
|
|
-
|
|
|
+ if BookVars['adventure_pages'] <= 0:
|
|
|
+ BookVars['adventure_pages'] = 0
|
|
|
+ totalbook += 1
|
|
|
+ if lib_book_read = 1 and $lib_book_loaned = 'an adventure novel': lib_book_read = 2
|
|
|
+ end
|
|
|
gs 'library_functions', 'read_book'
|
|
|
gs 'stat'
|
|
|
|
|
@@ -288,10 +302,10 @@ if $ARGS[0] = 'set_home_read_acts':
|
|
|
pcs_mood = 100
|
|
|
pcs_horny += 10
|
|
|
|
|
|
- if pcs_stren > 1:stren_deg -= 1
|
|
|
- if pcs_vital > 5:vital_deg -= 1
|
|
|
+ if pcs_stren > 1: stren_deg -= 1
|
|
|
+ if pcs_vital > 5: vital_deg -= 1
|
|
|
|
|
|
- if BookVars['adventure_pages'] = 0:
|
|
|
+ if BookVars['adventure_pages'] <= 0:
|
|
|
'You read the final chapters of the adventure novel, completely immersed in the climactic ending to the authors entralling story.'
|
|
|
else
|
|
|
'For an hour you enthusiastically read the novel, completely immersed in the authors world. By the end you''ve read <<temp_pages_read>> pages.'
|
|
@@ -299,7 +313,7 @@ if $ARGS[0] = 'set_home_read_acts':
|
|
|
else
|
|
|
pcs_mood += 10
|
|
|
pcs_horny += 3
|
|
|
- if BookVars['adventure_pages'] = 0:
|
|
|
+ if BookVars['adventure_pages'] <= 0:
|
|
|
'You read the final chapters of the adventure novel.'
|
|
|
else
|
|
|
'Over the course of an hour you read <<temp_pages_read>> pages.'
|
|
@@ -317,6 +331,7 @@ if $ARGS[0] = 'set_home_read_acts':
|
|
|
temp_pages_read = (80 + rand(0, 40) + pcs_traits['nerd_status'] * 5)
|
|
|
BookVars['fantasy_pages'] -= temp_pages_read
|
|
|
if BookVars['fantasy_pages'] <= 0:
|
|
|
+ BookVars['fantasy_pages'] = 0
|
|
|
totalbook += 1
|
|
|
if lib_book_read = 1 and $lib_book_loaned = 'a fantasy novel': lib_book_read = 2
|
|
|
end
|
|
@@ -338,7 +353,7 @@ if $ARGS[0] = 'set_home_read_acts':
|
|
|
if pcs_stren > 1: stren_deg -= 1
|
|
|
if pcs_vital > 5: vital_deg -= 1
|
|
|
|
|
|
- if BookVars['fantasy_pages'] = 0:
|
|
|
+ if BookVars['fantasy_pages'] <= 0:
|
|
|
'You read the final chapters of the fantasy novel, completely immersed in the climactic ending to the authors entralling story.'
|
|
|
else
|
|
|
'For an hour you enthusiastically read the novel, completely immersed in the authors world. By the end you''ve read <<temp_pages_read>> pages.'
|
|
@@ -346,7 +361,7 @@ if $ARGS[0] = 'set_home_read_acts':
|
|
|
|
|
|
else
|
|
|
pcs_mood += 10
|
|
|
- if BookVars['fantasy_pages'] = 0:
|
|
|
+ if BookVars['fantasy_pages'] <= 0:
|
|
|
'You read the final chapters of the fantasy novel.'
|
|
|
else
|
|
|
'Over the course of an hour you read <<temp_pages_read>> pages.'
|
|
@@ -363,7 +378,11 @@ if $ARGS[0] = 'set_home_read_acts':
|
|
|
menu_off = 1
|
|
|
temp_pages_read = (80 + rand(0, 40) + pcs_traits['nerd_status'] * 5)
|
|
|
BookVars['scifi_pages'] -= temp_pages_read
|
|
|
- if BookVars['scifi_pages'] = 0: totalbook += 1
|
|
|
+ if BookVars['scifi_pages'] <= 0:
|
|
|
+ BookVars['scifi_pages'] = 0
|
|
|
+ totalbook += 1
|
|
|
+ if lib_book_read = 1 and $lib_book_loaned = 'a science fiction novel': lib_book_read = 2
|
|
|
+ end
|
|
|
|
|
|
gs 'library_functions', 'read_book'
|
|
|
gs 'stat'
|
|
@@ -380,10 +399,10 @@ if $ARGS[0] = 'set_home_read_acts':
|
|
|
pcs_mood = 100
|
|
|
pcs_horny += 10
|
|
|
|
|
|
- if pcs_stren > 1:stren_deg -= 1
|
|
|
- if pcs_vital > 5:vital_deg -= 1
|
|
|
+ if pcs_stren > 1: stren_deg -= 1
|
|
|
+ if pcs_vital > 5: vital_deg -= 1
|
|
|
|
|
|
- if BookVars['scifi_pages'] = 0:
|
|
|
+ if BookVars['scifi_pages'] <= 0:
|
|
|
'You read the final chapters of the science fiction novel, completely immersed in the climactic ending to the authors entralling story.'
|
|
|
else
|
|
|
'For an hour you enthusiastically read the novel, completely immersed in the authors world. By the end you''ve read <<temp_pages_read>> pages.'
|
|
@@ -391,7 +410,7 @@ if $ARGS[0] = 'set_home_read_acts':
|
|
|
else
|
|
|
pcs_mood += 10
|
|
|
pcs_horny += 3
|
|
|
- if BookVars['scifi_pages'] = 0:
|
|
|
+ if BookVars['scifi_pages'] <= 0:
|
|
|
'You read the final chapters of the science fiction novel.'
|
|
|
else
|
|
|
'Over the course of an hour you read <<temp_pages_read>> pages.'
|
|
@@ -408,7 +427,11 @@ if $ARGS[0] = 'set_home_read_acts':
|
|
|
menu_off = 1
|
|
|
temp_pages_read = (80 + rand(0, 40) + pcs_traits['nerd_status'] * 5)
|
|
|
BookVars['romance_pages'] -= temp_pages_read
|
|
|
- if BookVars['romance_pages'] = 0: totalbook += 1
|
|
|
+ if BookVars['romance_pages'] <= 0:
|
|
|
+ BookVars['romance_pages'] = 0
|
|
|
+ totalbook += 1
|
|
|
+ if lib_book_read = 1 and $lib_book_loaned = 'a romance novel': lib_book_read = 2
|
|
|
+ end
|
|
|
|
|
|
gs 'library_functions', 'read_book'
|
|
|
gs 'stat'
|
|
@@ -425,10 +448,10 @@ if $ARGS[0] = 'set_home_read_acts':
|
|
|
pcs_mood = 100
|
|
|
pcs_horny += 20
|
|
|
|
|
|
- if pcs_stren > 1:stren_deg -= 1
|
|
|
- if pcs_vital > 5:vital_deg -= 1
|
|
|
+ if pcs_stren > 1: stren_deg -= 1
|
|
|
+ if pcs_vital > 5: vital_deg -= 1
|
|
|
|
|
|
- if BookVars['romance_pages'] = 0:
|
|
|
+ if BookVars['romance_pages'] <= 0:
|
|
|
'You read the final chapters of the romance novel, completely immersed in the climactic ending to the authors entralling story.'
|
|
|
else
|
|
|
'For an hour you enthusiastically read the novel, completely immersed in the authors world. By the end you''ve read <<temp_pages_read>> pages.'
|
|
@@ -436,7 +459,7 @@ if $ARGS[0] = 'set_home_read_acts':
|
|
|
else
|
|
|
pcs_mood += 10
|
|
|
pcs_horny += 10
|
|
|
- if BookVars['romance_pages'] = 0:
|
|
|
+ if BookVars['romance_pages'] <= 0:
|
|
|
'You read the final chapters of the romance novel.'
|
|
|
else
|
|
|
'Over the course of an hour you read <<temp_pages_read>> pages.'
|
|
@@ -455,7 +478,10 @@ if $ARGS[0] = 'set_home_read_acts':
|
|
|
menu_off = 1
|
|
|
temp_pages_read = (80 + rand(0, 40) + pcs_traits['nerd_status'] * 5)
|
|
|
BookVars['artem_pages'] -= temp_pages_read
|
|
|
- if BookVars['artem_pages'] = 0: totalbook += 1
|
|
|
+ if BookVars['artem_pages'] <= 0:
|
|
|
+ BookVars['artem_pages'] = 0
|
|
|
+ totalbook += 1
|
|
|
+ end
|
|
|
|
|
|
gs 'library_functions', 'read_book'
|
|
|
gs 'stat'
|
|
@@ -471,17 +497,17 @@ if $ARGS[0] = 'set_home_read_acts':
|
|
|
if pcs_nerd > 0:
|
|
|
pcs_mood = 100
|
|
|
|
|
|
- if pcs_stren > 1:stren_deg -= 1
|
|
|
- if pcs_vital > 5:vital_deg -= 1
|
|
|
+ if pcs_stren > 1: stren_deg -= 1
|
|
|
+ if pcs_vital > 5: vital_deg -= 1
|
|
|
|
|
|
- if BookVars['artem_pages'] = 0:
|
|
|
+ if BookVars['artem_pages'] <= 0:
|
|
|
'You read the final chapters of the book, completely immersed in the climactic ending to the authors entralling story'
|
|
|
else
|
|
|
'For an hour you enthusiastically read the book, completely immersed in the authors world. By the end you''ve read <<temp_pages_read>> pages.'
|
|
|
end
|
|
|
else
|
|
|
pcs_mood += 10
|
|
|
- if BookVars['romance_pages'] = 0:
|
|
|
+ if BookVars['romance_pages'] <= 0:
|
|
|
'You read the final chapters of the book.'
|
|
|
else
|
|
|
'Over the course of an hour you read <<temp_pages_read>> pages.'
|
|
@@ -490,7 +516,6 @@ if $ARGS[0] = 'set_home_read_acts':
|
|
|
|
|
|
act 'Close the book': gt $loc, $loc_arg
|
|
|
end
|
|
|
-
|
|
|
end
|
|
|
|
|
|
if tractatus > 0:
|