# mod_wlife_saveupdater

if $ARGS[0] = 'check':
	if wl_save_update = 0: 
		gs 'mod_wlife_saveupdater', 'update_1'
	elseif wl_save_update = 1:
		gs 'mod_wlife_saveupdater', 'update_2'
	elseif wl_save_update = 2:
		gs 'mod_wlife_saveupdater', 'update_3'
	elseif wl_save_update = 3:
		gs 'mod_wlife_saveupdater', 'update_4'
	elseif wl_save_update = 4:
		gs 'mod_wlife_saveupdater', 'update_5'
	elseif wl_save_update = 5:
		gs 'mod_wlife_saveupdater', 'update_6'
	elseif wl_save_update = 6:
		gs 'mod_wlife_saveupdater', 'update_7'	
	elseif wl_save_update = 7:
		gs 'mod_wlife_saveupdater', 'update_8'		
	end
end

if $ARGS[0] = 'update_1':
	wl_save_update = 1

	if wl_shura_bj_day > 0: wl_shura['timer_bj'] = wl_shura_bj_day
	if wl_shura_like > 0: wl_shura['relationship'] = wl_shura_like
	if wl_shura_topic_homeless > 0: wl_shura['talk_homeless'] = wl_shura_topic_homeless
	if wl_shura_topic_iosif > 0: wl_shura['talk_iosif'] = wl_shura_topic_iosif
	if wl_shura_topic_volya > 0: wl_shura['talk_volyaf'] = wl_shura_topic_volya
	if wl_iosif_begged > 0: wl_iosif['begged'] = wl_iosif_begged
	if wl_iosif_piss_whore > 0: wl_iosif['pissing'] = wl_iosif_piss_whore
	if wl_volya_ask_fingering > 0: wl_volya['status_finger'] = wl_volya_ask_fingering
	if wl_rim_counter > 0: wl_whore['rim_counter'] = wl_rim_counter
	if wl_volya_finger_clean > 0: wl_volya['fingering_clean'] = wl_volya_finger_clean
	if wl_volya_nod > 0: wl_volya['attic_vadim'] = wl_volya_nod
	if wl_maxim['day'] > 0: wl_maxim['timer'] = wl_maxim['day']
		
	killvar 'wl_shura_bj_day'
	killvar 'wl_shura_like'
	killvar 'wl_shura_topic_homeless'
	killvar 'wl_shura_topic_iosif'
	killvar 'wl_shura_topic_volya'
	killvar 'wl_iosif_begged'
	killvar 'wl_iosif_piss_whore'
	killvar 'wl_volya_ask_fingering'
	killvar 'wl_rim_counter'
	killvar 'wl_volya_finger_clean'
	killvar 'wl_volya_nod'
	
	wl_maxim['day'] = 0
	
elseif $ARGS[0] = 'update_2':
	wl_save_update = 2
	wl_mother['clothes_chance'] = 10
	
	if wl_maxim['payment'] > 2500: wl_maxim['payment'] = 2500
	
	if $wl_kiss_whore ! '': $wl_whore['kiss'] = $wl_kiss_whore
	if wl_status['incrimination'] > 0: wl_status['incrimination'] = 0
	if wl_okoro['investigation'] = 1: wl_investigation['okoro'] = 1 & wl_okoro['investigation'] = 0
	if wl_maxim['status'] > 1 and wl_investigation['maxim'] = 0: wl_investigation['maxim'] = 1
	if wl_client_rim_unfriendly > 0: wl_whore['rim_unfriendly'] = wl_client_rim_unfriendly
	if wl_start_picture > 0: wl_pictures['start'] = wl_start_picture & wl_pictures['count'] += 1
	
	killvar '$wl_kiss_whore'
	killvar 'wl_client_rim_unfriendly'
	killvar 'wl_start_picture'
elseif $ARGS[0] = 'update_3':
	wl_save_update = 3
	gs 'mod_wlife_npc'
elseif $ARGS[0] = 'update_4':
	wl_save_update = 4
	if wl_status['main'] > 8 and wl_shura['status'] > 8: wl_shura['party_timer'] = 5
	if wl_drugs['status'] = 2: wl_investigation['shura'] = 1
	
	if wl_volya_car_first > 0: wl_volya['first_bj'] = wl_volya_car_first
	if wl_volya_car_finger_first > 0: wl_volya['first_finger'] = wl_volya_car_finger_first
	if wl_drugs['sacha'] > 0: wl_sacha['status'] = wl_drugs['sacha']
	
	killvar 'wl_volya_car_first'
	killvar 'wl_volya_car_finger_first'
elseif $ARGS[0] = 'update_5':
	wl_save_update = 5
	if wl_drugs['status'] > 1 and wl_sacha['status'] = 0: wl_sacha['status'] = 1
elseif $ARGS[0] = 'update_6':
	wl_save_update = 6
	if noprotect > 0: noprotect = 0
	if sexcontra > 0: sexcontra = 0
elseif $ARGS[0] = 'update_7':
	wl_save_update = 7
	if wl_iosif['pissing'] = 1 and $wl_fetish['pissed_on'] ! '': wl_iosif['pissing'] = 2
	if wl_iosif['status'] = 5 and $wl_fetish['pissing'] = 'blocked': wl_iosif['status'] = 6
elseif $ARGS[0] = 'update_8':
	wl_save_update = 8
	if wl_sacha['status'] > 3: wl_status['main'] = 10
	wl_whore['client_behavior_chance'] = 70
end

--- mod_wlife_saveupdater ---------------------------------