code:
# generate_stock
!Generate new stock/slave
!Overhauled by crushboss

dynamic $clear_slave_instance, 'stock' &! clear any previous stock - ImperatorAugustus
stock_state = CONST_INT['slave_exist'] &! this is the only place in the game where this state change occurs for stock - ImperatorAugustus

$stock_features_list = ''

$stock_epithet = 'affordable'
$stock_occupation_auk = 'girl'
$stock_world_auk = 'a mysterious world'
$stock_family_auk = 'the orphan'

if special_stock > 0:
	!OPTIONAL OVERRIDE TO USE A SPECIFIC PRESET FROM JSON FILES (IT IS RECOMMENDED TO USE NUMBERS AFTER milf_last TO AVOID CHANCE OF RANDOM GENERATION)
	stock_type = special_stock
else
	!NO TYPE OVERRIDE
	!OPTIONAL OVERRIDES FOR AGE
	if $special_age ! '':
		seed_age = age_code[$special_age]
		if seed_age = CONST_INT['loli_age']: meta_type = 1
		if seed_age = CONST_INT['young_age']: meta_type = 2
		if seed_age = CONST_INT['milf_age']: meta_type = 3
		killvar '$special_age'
	elseif cheat_e = 1 and no_loli ! 1:
		meta_type = 1
		cheat_f = 0
		cheat_g = 0
	elseif cheat_f = 1:
		meta_type = 2
		cheat_e = 0
		cheat_g = 0
	elseif cheat_g = 1 and no_milf ! 1:
		meta_type = 3
		cheat_e = 0
		cheat_f = 0
	else
		!RANDOM AGE
		:loop_meta
			meta_type = rand(1,5)
			if meta_type = 4: meta_type = 2
			if meta_type = 5: meta_type = 3
		if no_loli = 1 and meta_type = 1: jump 'loop_meta'
		if no_milf = 1 and meta_type = 3: jump 'loop_meta'
	end

	!SELECT A RANDOM UNIQUE (PREVIOUSLY UNUSED) TYPE, OF APPROPRIATE AGE, FROM JSON FILES
	:loop_type
		if meta_type = 1: stock_type = rand(loli_first, loli_last)
		if meta_type = 2: stock_type = rand(young_first, young_last)
		if meta_type = 3: stock_type = rand(milf_first, milf_last)

		!Keeps track of slaves you’ve already had and doesn’t allow duplicates - crushboss
		!Reset num_count to avoid infinite loop, when there are no more new slaves
		if num_count >= 88:
			killvar 'num_count'
			killvar 'prev_num_type'
			num_count = 0
			prev_num_type = 0
		end
	for i = 0 to num_count step 1: if stock_type = prev_num_type[i]: jump 'loop_type'

	prev_num_type[num_count] = stock_type &! record that we have used this type
	num_count += 1 &! increment total number of unique types used
end &! AGE AND TYPE ARE NOW SET

!LOAD PRESET CHARACTERISTICS (must do this first to avoid overwriting)
gs 'get_stock_seed'

! OPTIONAL OVERRIDE FOR AGE IN COMBINATION WITH special_stock TYPE OVERRIDE
if special_stock > 0 and $special_age ! '': stock['age'] = age_code[$special_age]
killvar '$special_age'

!ROLL BASE STATS NOT ALREADY PRESET (3 in 15 chance for any stat to remain zero)
stat_count = arrsize('$stockatr')
attribute_sum = 12 &! do not overwrite non-zero stats from get_stock_seed on first pass - ImperatorAugustus
i = 0
:loop
	dynamic "
		if <<$stockatr[i]>> = 0 or attribute_sum < 12:
			gen = rand(-2,12) &! 3 out of 15 chance to leave unchanged - ImperatorAugustus
			if gen = 12:
				<<$stockatr[i]>> = 5
			elseif gen > 10:
				<<$stockatr[i]>> = 4
			elseif gen > 6:
				<<$stockatr[i]>> = 3
			elseif gen > 3:
				<<$stockatr[i]>> = 2
			elseif gen > 0:
				<<$stockatr[i]>> = 1
			end
		end
	"
	i += 1
if i < stat_count: jump 'loop'

!Added code to avoid having slaves with all bottomed out stats - crushboss (fixed, level 5 rolls were being overwritten - ImperatorAugustus)
attribute_sum = stock['stamina'] + stock['beauty'] + stock['sensitivity'] + stock['intellect'] + stock['temper'] + stock['ego']
if attribute_sum < 12:
	i = 0
	jump 'loop'
end

!TRANSLATE PRESET BEAUTY TO RATE (backgrounds can modify beauty rate)
if stock['beauty'] = 0: stock_rate['beauty'] = 0
if stock['beauty'] = 1: stock_rate['beauty'] = 10
if stock['beauty'] = 2: stock_rate['beauty'] = 20
if stock['beauty'] = 3: stock_rate['beauty'] = 40
if stock['beauty'] = 4: stock_rate['beauty'] = 80
if stock['beauty'] = 5: stock_rate['beauty'] = 160

!TRANSLATE PRESET EXOTICISM TO RATE (backgrounds can modify exotic rate)
if stock['exotic'] = 0: stock_rate['exotic'] = 0
if stock['exotic'] = 1: stock_rate['exotic'] = 10
if stock['exotic'] = 2: stock_rate['exotic'] = 20
if stock['exotic'] = 3: stock_rate['exotic'] = 40
if stock['exotic'] = 4: stock_rate['exotic'] = 80
if stock['exotic'] = 5: stock_rate['exotic'] = 160

!TRANSLATE PRESET WOUNDS TO RATE (backgrounds can modify wounds rate)
if stock['wounds'] = 0: stock_rate['wounds'] = 0
if stock['wounds'] = 1: stock_rate['wounds'] = 10
if stock['wounds'] = 2: stock_rate['wounds'] = 20
if stock['wounds'] = 3: stock_rate['wounds'] = 40
if stock['wounds'] = 4: stock_rate['wounds'] = 80
if stock['wounds'] = 5: stock_rate['wounds'] = 160

!TRANSLATE PRESET BRUISES TO RATE (backgrounds can modify bruises rate)
if stock['bruises'] = 0: stock_rate['bruises'] = 0
if stock['bruises'] = 1: stock_rate['bruises'] = 10
if stock['bruises'] = 2: stock_rate['bruises'] = 20
if stock['bruises'] = 3: stock_rate['bruises'] = 40
if stock['bruises'] = 4: stock_rate['bruises'] = 80
if stock['bruises'] = 5: stock_rate['bruises'] = 160

!TRANSLATE PRESET SCARS TO RATE (backgrounds can modify scars rate)
if stock['scars'] = 0: stock_rate['scars'] = 0
if stock['scars'] = 1: stock_rate['scars'] = 10
if stock['scars'] = 2: stock_rate['scars'] = 20
if stock['scars'] = 3: stock_rate['scars'] = 40
if stock['scars'] = 4: stock_rate['scars'] = 80
if stock['scars'] = 5: stock_rate['scars'] = 160

!TRANSLATE PRESET HYGIENE TO RATE (backgrounds can modify hygiene rate)
if stock['hygiene'] = 0: stock_rate['hygiene'] = 0
if stock['hygiene'] = 1: stock_rate['hygiene'] = 10
if stock['hygiene'] = 2: stock_rate['hygiene'] = 20
if stock['hygiene'] = 3: stock_rate['hygiene'] = 40
if stock['hygiene'] = 4: stock_rate['hygiene'] = 80
if stock['hygiene'] = 5: stock_rate['hygiene'] = 160

!CREATING RANDOM BACKGROUND IF NOT PRESET
if $stock_world_description = '':
	! -1, т.к. нет нулевого элемента в списке, далее та же фигня
	chance = rand(1, arrsize('$origin_world') - 1)
	$stock_world = $origin_world[chance]
	chance = rand(1,3)
	dynamic "$stock_world_description = $<<$stock_world>>_description[chance]"
end

if $stock_world = 'prehistoric':
	$namebase = 'prehistoric'
	$stock_world_auk = 'a prehistoric world'
	stock_rate['exotic'] += 10
	if stock['stamina'] < 5: stock['stamina'] += 1
	if stock['temper'] < 5: stock['temper'] += 1
	if stock['ego'] > 1: stock['ego'] -= 1
	if stock['intellect'] > 1: stock['intellect'] -= 1
elseif $stock_world = 'barbarian':
	$namebase = 'barbarian'
	$stock_world_auk = 'a barbarian world'
	if stock['stamina'] < 5: stock['stamina'] += 1
	if stock['temper'] < 5: stock['temper'] += 1
	if stock['ego'] > 1: stock['ego'] -= 1
	if stock['intellect'] > 1: stock['intellect'] -= 1
elseif $stock_world = 'sns':
	$namebase = 'barbarian'
	$stock_world_auk = 'a world of might and magic'
	if stock['stamina'] < 5: stock['stamina'] += 1
	if stock['ego'] > 1: stock['ego'] -= 1
	if stock['intellect'] > 1: stock['intellect'] -= 1
elseif $stock_world = 'medieval':
	$namebase = 'medieval'
	$stock_world_auk = 'a traditional agrarian world'
	if stock['temper'] < 5: stock['temper'] -= 1
	if stock['ego'] > 1: stock['ego'] -= 1
	if stock['intellect'] > 1: stock['intellect'] -= 1
	if stock['custom'] < 4: stock['custom'] += 1
elseif $stock_world = 'highfantasy':
	nc = rand(1,2)
	if nc = 1:
		$namebase = 'medieval'
	else
		$namebase = 'fantasy'
	end
	$stock_world_auk = 'a magical world'
	if stock['sensitivity'] < 5: stock['sensitivity'] += 1
	stock_rate['exotic'] += 10
elseif $stock_world = 'darkfantasy':
	nc = rand(1,2)
	if nc = 1:
		$namebase = 'medieval'
	else
		$namebase = 'barbarian'
	end
	$stock_world_auk = 'a world of dark magic'
	if stock['stamina'] > 1: stock['stamina'] -= 1
	if stock['temper'] > 1: stock['temper'] -= 1
	if stock['ego'] > 1: stock['ego'] -= 1
	if stock['sensitivity'] > 1: stock['sensitivity'] -= 1
	if stock['intellect'] > 1: stock['intellect'] -= 1
	if stock['pride'] > 1: stock['pride'] -= 1
	stock_rate['exotic'] += 10
	if stock['custom'] < 4: stock['custom'] += 2
elseif $stock_world = 'steampunk':
	$namebase = 'oldscool'
	$stock_world_auk = 'a steampunk world'
	if stock['custom'] < 4: stock['custom'] += 1
elseif $stock_world = 'industrial':
	nc = rand(1,2)
	if nc = 1:
		$namebase = 'oldscool'
	else
		$namebase = 'euro'
	end
	$stock_world_auk = 'an industrially developed world'
	if stock['custom'] < 4: stock['custom'] += 1
elseif $stock_world = 'modern':
	nc = rand(1,2)
	if nc = 1:
		$namebase = 'russian'
	else
		$namebase = 'euro'
	end
	$stock_world_auk = 'an economically developed world'
	if stock['ego'] < 5: stock['ego'] += 1
	if stock['pride'] < 5: stock['pride'] += 1
	if stock['intellect'] < 5: stock['intellect'] += 1
	if stock['stamina'] > 1: stock['stamina'] -= 1
elseif $stock_world = 'cyberpunk':
	nc = rand(1,2)
	if nc = 1:
		$namebase = 'russian'
	else
		$namebase = 'euro'
	end
	$stock_world_auk = 'a cyberpunk world'
	if stock['ego'] < 5: stock['ego'] += 1
	if stock['intellect'] < 5: stock['intellect'] += 1
	if stock['temper'] > 1: stock['temper'] -= 1
	if stock['stamina'] > 1: stock['stamina'] -= 1
elseif $stock_world = 'utopia':
	$namebase = 'utopia'
	$stock_world_auk = 'an idyllic utopia'
	if stock['spoil'] < 5: stock['spoil'] += 1
	if stock['intellect'] < 5: stock['intellect'] += 1
	stock_rate['exotic'] += 10
	if stock['sensitivity'] < 4: stock['sensitivity'] += 2
	if stock['pride'] < 5: stock['pride'] += 1
elseif $stock_world = 'darkfuture':
	$namebase = 'euro'
	$stock_world_auk = 'a totalitarian country'
	if stock['stamina'] > 1: stock['stamina'] -= 1
	if stock['temper'] > 1: stock['temper'] -= 1
	if stock['intellect'] < 5: stock['intellect'] += 1
	if stock['custom'] < 4: stock['custom'] += 2
	if stock['temper'] > 2: stock['temper'] -= 2
	if stock['ego'] > 2: stock['ego'] -= 2
	if stock['sensitivity'] > 1: stock['sensitivity'] -= 1
	if stock['pride'] > 1: stock['pride'] = 1
	if stock['fat'] > 1: stock['fat'] = 1
elseif $stock_world = 'space':
	nc = rand(1,2)
	if nc = 1:
		$namebase = 'utopia'
	else
		$namebase = 'euro'
	end
	$stock_world_auk = 'a highly advanced space civilization'
	if stock['stamina'] > 1: stock['stamina'] -= 1
	if stock['intellect'] < 5: stock['intellect'] += 1
	stock_rate['exotic'] += 10
	if stock['ego'] < 5: stock['ego'] += 1
	if stock['pride'] < 5: stock['pride'] += 1
end

!NAME (AFTER PICKING NAMEBASE)
if $stock_name = '':
	chance = rand(1, arrsize('$<<$namebase>>_name') - 1)
	dynamic "$stock_name = $<<$namebase>>_name[chance]"
end

!FAMILY BACKGROUND (AFTER PICKING WORLD)
if $stock_family_description = '':
	chance = rand(1, arrsize('$<<$stock_world>>_family') - 1)
	dynamic "$stock_family = $<<$stock_world>>_family[chance]"
	$stock_family_description = $family_description[$stock_family]
end

if $stock_family = 'tribe':
	$stock_family_auk = 'who grew up in tribe of savages'
	if stock['stamina'] < 5: stock['stamina'] += 1
	if stock['sensitivity'] > 1: stock['sensitivity'] -= 1
elseif $stock_family = 'amazon':
	$stock_family_auk = 'brought up by brave amazons'
	if stock['stamina'] < 5: stock['stamina'] += 1
	if stock['temper'] < 5: stock['temper'] += 1
	if stock['ego'] < 5: stock['ego'] += 1
	if stock['pride'] < 5: stock['pride'] += 1
	if stock['sensitivity'] > 1: stock['sensitivity'] -= 1
elseif $stock_family = 'nomad':
	$stock_family_auk = 'brought up by nomads'
	if stock['stamina'] < 5: stock['stamina'] += 1
elseif $stock_family = 'pesant':
	$stock_family_auk = 'peasant’s daughter'
	if stock['stamina'] < 3: stock['stamina'] += 1
	if stock['temper'] > 1: stock['temper'] -= 1
	if stock['ego'] > 1: stock['ego'] -= 1
	if stock['sensitivity'] > 1: stock['sensitivity'] -= 1
	if stock['custom'] < 3: stock['custom'] += 1
	if stock['intellect'] > 1: stock['intellect'] -= 1
	if stock['sensitivity'] > 1: stock['sensitivity'] -= 1
elseif $stock_family = 'hunter':
	if stock['temper'] < 4: stock['temper'] += 1
	if stock['stamina'] < 5: stock['stamina'] += 1
	if stock['intellect'] < 3: stock['intellect'] += 1
	$stock_family_auk = 'hunter’s daughter'
elseif $stock_family = 'fisher':
	if stock['temper'] > 1: stock['temper'] -= 1
	if stock['custom'] < 3: stock['custom'] += 1
	$stock_family_auk = 'fisherman’s daughter'
elseif $stock_family = 'viking':
	if stock['temper'] < 5: stock['temper'] += 1
	if stock['pride'] < 5: stock['pride'] += 1
	if stock['intellect'] > 1: stock['intellect'] -= 1
	if stock['sensitivity'] > 1: stock['sensitivity'] -= 1
	$stock_family_auk = 'daughter of a sea marauder'
elseif $stock_family = 'barbarian_king':
	if stock['temper'] < 5: stock['temper'] += 1
	if stock['ego'] < 5: stock['ego'] += 1
	if stock['pride'] < 5: stock['pride'] += 1
	if stock['spoil'] < 4: stock['spoil'] += 2
	if stock['custom'] > 0: stock['custom'] = 0
	$stock_family_auk = 'barbarian princess'
	$stock_occupation_auk = 'noblewoman'
elseif $stock_family = 'orphan':
	if stock['stamina'] > 1: stock['stamina'] -= 1
	if stock['temper'] < 5: stock['temper'] += 1
	if stock['pride'] > 1: stock['pride'] -= 1
	if stock['intellect'] > 1: stock['intellect'] -= 1
	$stock_family_auk = 'orphan'
elseif $stock_family = 'bondman':
	if stock['temper'] > 1: stock['temper'] -= 1
	if stock['ego'] > 1: stock['ego'] -= 1
	if stock['sensitivity'] > 1: stock['sensitivity'] -= 1
	if stock['custom'] < 3: stock['custom'] += 1
	if stock['intellect'] > 1: stock['intellect'] -= 1
	if stock['sensitivity'] > 1: stock['sensitivity'] -= 1
	$stock_family_auk = 'daughter of serf peasants'
elseif $stock_family = 'gypsy':
	stock_rate['exotic'] += 10
	if stock['temper'] < 5: stock['temper'] += 1
	$stock_family_auk = 'brought up in a gypsy camp'
elseif $stock_family = 'church':
	if stock['temper'] > 1: stock['temper'] -= 1
	if stock['ego'] > 1: stock['ego'] -= 1
	if stock['intellect'] < 3: stock['intellect'] += 1
	if stock['custom'] < 4: stock['custom'] += 1
	$stock_family_auk = 'student of a church orphanage'
elseif $stock_family = 'craftsman':
	$stock_family_auk = 'craftsman’s daughter'
elseif $stock_family = 'merchant':
	if stock['spoil'] < 5: stock['spoil'] += 1
	$stock_family_auk = 'merchant’s daughter'
elseif $stock_family = 'valetry':
	if stock['custom'] < 4: stock['custom'] += 2
	if stock['temper'] > 1: stock['temper'] -= 1
	if stock['ego'] > 1: stock['ego'] -= 1
	$stock_family_auk = 'maid’s daughter'
elseif $stock_family = 'knight':
	if stock['spoil'] < 5: stock['spoil'] += 1
	if stock['ego'] < 5: stock['ego'] += 1
	if stock['pride'] < 5: stock['pride'] += 1
	if stock['sensitivity'] < 5: stock['sensitivity'] += 1
	$stock_family_auk = 'daughter of a landed feudal'
elseif $stock_family = 'mprincess':
	if stock['temper'] < 5: stock['temper'] += 1
	if stock['ego'] < 5: stock['ego'] += 1
	if stock['pride'] < 5: stock['pride'] += 1
	if stock['spoil'] < 4: stock['spoil'] += 2
	if stock['custom'] > 0: stock['custom'] = 0
	$stock_family_auk = 'a princess'
elseif $stock_family = 'farmers':
	if stock['stamina'] < 5: stock['stamina'] += 1
	if stock['intellect'] > 1: stock['intellect'] -= 1
	if stock['pride'] > 1: stock['pride'] -= 1
	if stock['custom'] < 5: stock['custom'] += 1
	$stock_family_auk = 'farmer’s daughter'
elseif $stock_family = 'workhouse':
	if stock['stamina'] > 1: stock['stamina'] -= 1
	if stock['temper'] > 1: stock['temper'] -= 1
	if stock['ego'] > 1: stock['ego'] -= 1
	if stock['pride'] > 2: stock['pride'] -= 2
	if stock['custom'] < 4: stock['custom'] += 2
	if stock['sensitivity'] > 1: stock['sensitivity'] -= 1
	$stock_family_auk = 'homeless orphan worker'
elseif $stock_family = 'proletarian':
	if stock['stamina'] > 1: stock['stamina'] -= 1
	if stock['pride'] > 1: stock['pride'] -= 1
	$stock_family_auk = 'daughter of a factory worker'
elseif $stock_family = 'clerk':
	if stock['intellect'] < 4: stock['intellect'] += 1
	$stock_family_auk = 'daughter of an office worker'
elseif $stock_family = 'naturalist':
	if stock['intellect'] < 5: stock['intellect'] += 1
	$stock_family_auk = 'daughter of a scientist-naturalist'
elseif $stock_family = 'ingeneer':
	if stock['intellect'] < 5: stock['intellect'] += 1
	$stock_family_auk = 'daughter of an engineer'
elseif $stock_family = 'doctor':
	if stock['stamina'] < 5: stock['stamina'] += 1
	if stock['intellect'] < 5: stock['intellect'] += 1
	$stock_family_auk = 'daughter of a famous doctor'
elseif $stock_family = 'servant':
	if stock['custom'] < 4: stock['custom'] += 2
	if stock['temper'] > 1: stock['temper'] -= 1
	if stock['ego'] > 1: stock['ego'] -= 1
	$stock_family_auk = 'servant’s daughter of a rich house'
elseif $stock_family = 'magnat':
	if stock['spoil'] < 5: stock['spoil'] += 1
	if stock['ego'] < 5: stock['ego'] += 1
	if stock['pride'] < 5: stock['pride'] += 1
	if stock['sensitivity'] < 5: stock['sensitivity'] += 1
	$stock_family_auk = 'who grew up in a family of a tycoon'
elseif $stock_family = 'bankeer':
	if stock['spoil'] < 5: stock['spoil'] += 1
	if stock['ego'] < 5: stock['ego'] += 1
	if stock['pride'] < 5: stock['pride'] += 1
	if stock['sensitivity'] < 5: stock['sensitivity'] += 1
	$stock_family_auk = 'daughter of a wealthy banker'
elseif $stock_family = 'mayor':
	if stock['spoil'] < 5: stock['spoil'] += 1
	if stock['ego'] < 5: stock['ego'] += 1
	if stock['pride'] < 5: stock['pride'] += 1
	if stock['sensitivity'] < 5: stock['sensitivity'] += 1
	$stock_family_auk = 'daughter of an influential politician'
elseif $stock_family = 'mafiosi':
	if stock['spoil'] < 5: stock['spoil'] += 1
	if stock['temper'] < 5: stock['temper'] += 1
	if stock['pride'] < 5: stock['pride'] += 1
	if stock['sensitivity'] > 1: stock['sensitivity'] -= 1
	$stock_family_auk = 'who grew up in a mafia family'
elseif $stock_family = 'orpnange':
	if stock['ego'] > 1: stock['ego'] -= 1
	if stock['pride'] > 1: stock['pride'] -= 1
	if stock['custom'] < 5: stock['custom'] += 1
	if stock['sensitivity'] > 1: stock['sensitivity'] -= 1
	$stock_family_auk = 'ward of an orphanage'
elseif $stock_family = 'worker':
	$stock_family_auk = 'who grew up in a family of a simple hard workers'
elseif $stock_family = 'policeman':
	$stock_family_auk = 'daughter of a police officer'
elseif $stock_family = 'manager':
	$stock_family_auk = 'daughter of an office worker'
elseif $stock_family = 'biologist':
	if stock['intellect'] < 5: stock['intellect'] += 1
	$stock_family_auk = 'brought up in an intellectual family'
elseif $stock_family = 'programmer':
	if stock['intellect'] < 5: stock['intellect'] += 1
	$stock_family_auk = 'brought up in a middle class family'
elseif $stock_family = 'surgeon':
	if stock['stamina'] < 5: stock['stamina'] += 1
	if stock['beauty'] < 5: stock_rate['beauty'] += 20
	if stock['spoil'] < 5: stock['spoil'] += 1
	if stock['pride'] < 5: stock['pride'] += 1
	$stock_family_auk = 'daughter of a successful plastic surgeon'
elseif $stock_family = 'businessman':
	if stock['spoil'] < 5: stock['spoil'] += 1
	if stock['pride'] < 5: stock['pride'] += 1
	$stock_family_auk = 'daughter of a successful businessman'
elseif $stock_family = 'finance':
	if stock['spoil'] < 5: stock['spoil'] += 1
	if stock['pride'] < 5: stock['pride'] += 1
	$stock_family_auk = 'daughter of a successful financier'
elseif $stock_family = 'general':
	if stock['custom'] < 5: stock['custom'] += 1
	if stock['pride'] < 5: stock['pride'] += 1
	$stock_family_auk = 'general’s daughter'
elseif $stock_family = 'poet':
	if stock['sensitivity'] < 5: stock['sensitivity'] += 1
	if stock['expression'] < 4: stock['expression'] += 1
	$stock_family_auk = 'brought up in a family of poets'
elseif $stock_family = 'operator':
	if stock['intellect'] < 5: stock['intellect'] += 1
	$stock_family_auk = 'daughter of a production base operator'
elseif $stock_family = 'artist':
	if stock['sensitivity'] < 5: stock['sensitivity'] += 1
	if stock['art'] < 4: stock['art'] += 1
	$stock_family_auk = 'brought up in an artistic family'
elseif $stock_family = 'architect':
	if stock['intellect'] < 5: stock['intellect'] += 1
	$stock_family_auk = 'brought up in a family of architects'
elseif $stock_family = 'jailer':
	if stock['sensitivity'] > 1: stock['sensitivity'] -= 1
	$stock_family_auk = 'jailer’s daughter'
elseif $stock_family = 'bioreactor':
	if stock['sensitivity'] > 1: stock['sensitivity'] -= 1
	$stock_family_auk = 'daughter of a bioreactor operator'
elseif $stock_family = 'minitruth':
	if stock['intellect'] < 3: stock['intellect'] += 1
	$stock_family_auk = 'daughter of a functionary of the Ministry of Truth'
elseif $stock_family = 'anter':
	if stock['custom'] < 5: stock['custom'] += 1
	$stock_family_auk = 'who grew up in an industrial anthill'
elseif $stock_family = 'freetrader':
	if stock['secretary'] < 3: stock['secretary'] += 1
	if stock['intellect'] < 4: stock['intellect'] += 1
	$stock_family_auk = 'who grew up on a trade truck'
elseif $stock_family = 'asteroid':
	if stock['intellect'] < 5: stock['intellect'] += 1
	$stock_family_auk = 'who grew up on an asteroid drilling base'
elseif $stock_family = 'astrofarm':
	if stock['intellect'] < 5: stock['intellect'] += 1
	$stock_family_auk = 'raised on a space station'
elseif $stock_family = 'astrogator':
	if stock['intellect'] < 5: stock['intellect'] += 1
	$stock_family_auk = 'brought up on a developed planet'
elseif $stock_family = 'admiral':
	if stock['custom'] < 3: stock['custom'] += 1
	if stock['pride'] < 5: stock['pride'] += 1
	if stock['spoil'] < 5: stock['spoil'] += 1
	$stock_family_auk = 'admiral’s daughter'
elseif $stock_family = 'nanofarmacist':
	if stock['intellect'] < 5: stock['intellect'] += 1
	$stock_family_auk = 'raised on an orbital station'
elseif $stock_family = 'gendesigner':
	if stock['beauty'] < 5: stock_rate['beauty'] += 40
	if stock['intellect'] < 5: stock['intellect'] += 1
	$stock_family_auk = 'daughter of a famous genetic designer'
end

!OCCUPATION
if $stock_occupation_description = '' and stock['age'] ! CONST_INT['loli_age']:
	chance = rand(1, arrsize('$<<$stock_family>>_occupation') - 1)
	dynamic "$stock_occupation = $<<$stock_family>>_occupation[chance]"
	$stock_occupation_description = $occupation_description[$stock_occupation]
end

if $stock_occupation = 'tribal_girl':
	$stock_occupation_auk = 'girl'
	if stock['stamina'] < 3: stock['stamina'] += 1
	if stock['sensitivity'] > 1: stock['sensitivity'] -= 1
elseif $stock_occupation = 'shaman':
	$stock_occupation_auk = 'shaman'
	if stock['intellect'] < 3: stock['intellect'] += 1
	if stock['enchanter'] < 4: stock['enchanter'] += 1
	if stock['nurse'] < 5: stock['nurse'] += 1
elseif $stock_occupation = 'huntress':
	$stock_occupation_auk = 'huntress'
	if stock['stamina'] < 5: stock['stamina'] += 1
	if stock['gladiatrix'] < 5:  stock['gladiatrix'] += 1
	if stock['sensitivity'] > 1: stock['sensitivity'] -= 1
elseif $stock_occupation = 'heroine':
	$stock_occupation_auk = 'heroine-warrior'
	if stock['stamina'] < 5: stock['stamina'] += 1
	if stock['stamina'] < 3: stock['stamina'] = 3
	if stock['gladiatrix'] < 4: stock['gladiatrix'] = 4
	if stock['sensitivity'] > 1: stock['sensitivity'] -= 1
	if stock['temper'] < 5: stock['temper'] += 1
	if stock['ego'] < 5: stock['ego'] += 1
	if stock['pride'] < 5: stock['pride'] += 1
elseif $stock_occupation = 'bride':
	$stock_occupation_auk = 'virgin'
	stock['virginity'] = 0
	if stock['sensitivity'] < 5: stock['sensitivity'] += 1
	if stock['temper'] > 1: stock['temper'] -= 1
elseif $stock_occupation = 'viking_wife':
	$stock_occupation_auk = 'young wife of a viking'
	stock['virginity'] = 2
	if stock['temper'] > 1: stock['temper'] -= 1
	if stock['cook'] < 3: stock['cook'] += 1
	if stock['service'] < 3: stock['service'] += 1
	if stock['sub_hug'] < 4: stock['sub_hug'] += 1
	if stock['sub_kiss'] < 4: stock['sub_kiss'] += 2
	if stock['sub_vaginal'] < 4: stock['sub_vaginal'] += 2
	if stock['sub_masturbation'] < 4: stock['sub_masturbation'] += 1
	if stock['sub_exhibit'] < 4: stock['sub_exhibit'] += 1
	if stock['sub_humiliation'] < 4: stock['sub_humiliation'] += 1
elseif $stock_occupation = 'herbalist':
	$stock_occupation_auk = 'herbalist'
	if stock['nurse'] < 5: stock['nurse'] += 1
elseif $stock_occupation = 'witch':
	$stock_occupation_auk = 'witch'
	if stock['intellect'] < 2: stock['intellect'] += 2
	if stock['enchanter'] < 2: stock['enchanter'] += 2
	if stock['ego'] < 2: stock['ego'] += 2
elseif $stock_occupation = 'thief':
	$stock_occupation_auk = 'thief'
elseif $stock_occupation = 'beggar':
	if stock['expression'] < 4: stock['expression'] += 2
	if stock['pet'] < 4: stock['pet'] += 1
	if stock['stamina'] > 1: stock['stamina'] -= 1
	if stock['pride'] > 1: stock['pride'] = 1
	if stock['intellect'] > 1: stock['intellect'] -= 1
	stock['fat'] = 0
	stock['starvation'] += rand(0, 10)
	$stock_occupation_auk = 'beggar'
elseif $stock_occupation = 'gypsy':
	if stock['expression'] < 4: stock['expression'] += 2
	if stock['calisthenics'] < 4: stock['calisthenics'] += 2
	if stock['enchanter'] < 3: stock['enchanter'] += 1
	if stock['music'] < 3: stock['music'] += 1
	if stock['art'] < 2: stock['art'] += 1
	$stock_occupation_auk = 'soothsayer'
elseif $stock_occupation = 'whore':
	stock['virginity'] = 2
	if stock['stamina']> 1: stock['stamina'] -= 1
	if stock['pride']> 1: stock['pride'] -= 1
	if stock['pride']> 0: stock['pride'] -= 1
	if stock['sub_hug'] < 5: stock['sub_hug'] += 1
	if stock['sub_hug'] < 3: stock['sub_hug'] += 1
	if stock['sub_kiss'] < 5: stock['sub_kiss'] += 1
	if stock['sub_kiss'] < 2: stock['sub_kiss'] += 1
	if stock['sub_bj'] < 4: stock['sub_bj'] += 2
	if stock['sub_vaginal'] < 4: stock['sub_vaginal'] += 2
	if stock['sub_vaginal'] < 3: stock['sub_vaginal'] += 1
	if stock['sub_anal'] < 5: stock['sub_anal'] += 1
	if stock['sub_exhibit'] < 4: stock['sub_exhibit'] += 2
	if stock['sub_humiliation'] < 4: stock['sub_humiliation'] += 2
	$stock_occupation_auk = 'street whore'
elseif $stock_occupation = 'markitane':
	stock['virginity'] = 2
	if stock['pride']> 1: stock['pride'] -= 1
	if stock['temper'] < 5: stock['temper'] += 1
	if stock['sub_hug'] < 5: stock['sub_hug'] += 1
	if stock['sub_hug'] < 3: stock['sub_hug'] += 1
	if stock['sub_kiss'] < 5: stock['sub_kiss'] += 1
	if stock['sub_kiss'] < 2: stock['sub_kiss'] += 1
	if stock['sub_bj'] < 4: stock['sub_bj'] += 2
	if stock['sub_vaginal'] < 4: stock['sub_vaginal'] += 2
	if stock['sub_vaginal'] < 3: stock['sub_vaginal'] += 1
	if stock['sub_anal'] < 5: stock['sub_anal'] += 1
	if stock['sub_exhibit'] < 4: stock['sub_exhibit'] += 2
	if stock['sub_humiliation'] < 4: stock['sub_humiliation'] += 2
	$stock_occupation_auk = 'track whore'
elseif $stock_occupation = 'brothel':
	stock['virginity'] = 2
	if stock['custom'] < 5: stock['custom'] += 1
	if stock['sub_hug'] < 5: stock['sub_hug'] += 1
	if stock['sub_hug'] < 3: stock['sub_hug'] += 1
	if stock['sub_kiss'] < 5: stock['sub_kiss'] += 1
	if stock['sub_kiss'] < 2: stock['sub_kiss'] += 1
	if stock['sub_bj'] < 4: stock['sub_bj'] += 2
	if stock['sub_vaginal'] < 4: stock['sub_vaginal'] += 2
	if stock['sub_vaginal'] < 3: stock['sub_vaginal'] += 1
	if stock['sub_anal'] < 5: stock['sub_anal'] += 1
	if stock['sub_exhibit'] < 4: stock['sub_exhibit'] += 2
	if stock['sub_humiliation'] < 4: stock['sub_humiliation'] += 2
	$stock_occupation_auk = 'brothel whore'
elseif $stock_occupation = 'nun':
	stock['virginity'] = 0
	stock['sub_vaginal'] = 0
	stock['sub_anal'] = 0
	stock['sub_bj'] = 0
	if stock['nurse'] < 5: stock['nurse'] += 1
	if stock['service'] < 5: stock['service'] += 1
	if stock['secretary'] < 5: stock['secretary'] += 1
	$stock_occupation_auk = 'nun'
elseif $stock_occupation = 'valertry':
	if stock['service'] < 3: stock['service'] += 3
	if stock['custom'] < 5: stock['custom'] += 1
	if stock['pride'] > 1: stock['pride'] -= 1
	$stock_occupation_auk = 'maid'
elseif $stock_occupation = 'sorceress':
	stock['virginity'] = 0
	stock['sub_vaginal'] = 0
	stock['sub_anal'] = 0
	stock['sub_bj'] = 0
	if stock['intellect'] < 5: stock['intellect'] += 1
	if stock['custom'] < 5: stock['custom'] += 1
	if stock['service'] < 4: stock['service'] += 2
	if stock['cook'] < 5: stock['cook'] += 1
	if stock['enchanter'] < 4: stock['enchanter'] += 2
	$stock_occupation_auk = 'student of a sorceress'
elseif $stock_occupation = 'thug':
	if stock['stamina'] < 5: stock['stamina'] += 1
	if stock['stamina'] < 3: stock['stamina'] = 3
	if stock['gladiatrix'] < 3: stock['gladiatrix'] += 3
	if stock['intellect'] > 1: stock['intellect'] -= 1
	if stock['temper'] < 5: stock['temper'] += 1
	$stock_occupation_auk = 'street robber'
elseif $stock_occupation = 'poor_bride':
	if meta_type = 3:
		$stock_occupation = 'poor_wife'
	else
		stock['virginity'] = 0
		stock['sub_vaginal'] = 0
		stock['sub_anal'] = 0
		stock['sub_bj'] = 0
	end
	$stock_occupation_auk = 'commoner'
elseif $stock_occupation = 'poor_wife':
	stock['virginity'] = 2
	if stock['temper'] > 1: stock['temper'] -= 1
	if stock['cook'] < 5: stock['cook'] += 1
	if stock['service'] < 5: stock['service'] += 1
	if stock['sub_hug'] < 5: stock['sub_hug'] += 1
	if stock['sub_kiss'] < 4: stock['sub_kiss'] += 2
	if stock['sub_vaginal'] < 4: stock['sub_vaginal'] += 2
	$stock_occupation_auk = 'commoner wife'
elseif $stock_occupation = 'brigand':
	if stock['stamina'] < 5: stock['stamina'] += 1
	if stock['stamina'] < 3: stock['stamina'] = 3
	if stock['gladiatrix'] < 3: stock['gladiatrix'] += 3
	if stock['intellect'] > 1: stock['intellect'] -= 1
	if stock['temper'] < 5: stock['temper'] += 1
	$stock_occupation_auk = 'forest robber'
elseif $stock_occupation = 'noble_bride':
	if meta_type = 3:
		$stock_occupation = 'noble_wife'
	else
		stock['virginity'] = 0
		stock['sub_vaginal'] = 0
		stock['sub_anal'] = 0
		stock['sub_bj'] = 0
	end
	$stock_occupation_auk = 'noble girl'
elseif $stock_occupation = 'noble_wife':
	stock['virginity'] = 2
	if stock['temper'] > 1: stock['temper'] -= 1
	if stock['music'] < 5: stock['music'] += 1
	if stock[['art']] < 5: stock['art'] += 1
	if stock['sub_hug'] < 5: stock['sub_hug'] += 1
	if stock['sub_kiss'] < 4: stock['sub_kiss'] += 2
	if stock['sub_vaginal'] < 4: stock['sub_vaginal'] += 2
	$stock_occupation_auk = 'lord’s wife'
elseif $stock_occupation = 'mprincess':
	stock['virginity'] = 0
	stock['sub_vaginal'] = 0
	stock['sub_anal'] = 0
	stock['sub_bj'] = 0
	if stock['expression'] < 5: stock['expression'] += 1
	if stock['calisthenics'] < 5: stock['calisthenics'] += 1
	if stock['music'] < 5: stock['music'] += 1
	if stock['art'] < 5: stock['art'] += 1
	$stock_occupation_auk = 'daughter of a queen'
elseif $stock_occupation = 'farmer':
	if stock['service'] < 5: stock['service'] += 1
	if stock['cook'] < 5: stock['cook'] += 1
	$stock_occupation_auk = 'cotton picker'
elseif $stock_occupation = 'milker':
	if stock['service'] < 5: stock['service'] += 1
	if stock['cook'] < 5: stock['cook'] += 1
	$stock_occupation_auk = 'milkmaid'
elseif $stock_occupation = 'swiner':
	if stock['service'] < 5: stock['service'] += 1
	if stock['cook'] < 5: stock['cook'] += 1
	$stock_occupation_auk = 'swineherd'
elseif $stock_occupation = 'weaver':
	if stock['service'] < 5: stock['service'] += 1
	$stock_occupation_auk = 'weaver'
elseif $stock_occupation = 'freaser':
	if stock['service'] < 5: stock['service'] += 1
	$stock_occupation_auk = 'milling machine operator'
elseif $stock_occupation = 'maid':
	if stock['service'] < 3: stock['service'] += 3
	if stock['custom'] < 5: stock['custom'] += 1
	if stock['pride'] > 1: stock['pride'] -= 1
	$stock_occupation_auk = 'maid'
elseif $stock_occupation = 'sufragist':
	if stock['pride'] < 5: stock['pride'] += 1
	if stock['pride'] < 4: stock['pride'] += 1
	if stock['temper'] < 5: stock['temper'] += 1
	if stock['ego'] < 5: stock['ego'] += 1
	if stock['intellect'] < 5: stock['intellect'] += 1
	if stock['custom'] > 1: stock['custom'] -= 1
	if stock['expression'] < 4: stock['expression'] += 2
	$stock_occupation_auk = 'suffragette'
elseif $stock_occupation = 'nurse':
	if stock['nurse'] < 3: stock['nurse'] += 3
	if stock['service'] < 5: stock['service'] += 1
	if stock['cook'] < 5: stock['cook'] += 1
	if stock['secretary'] < 5: stock['secretary'] += 1
	$stock_occupation_auk = 'nurse'
elseif $stock_occupation = 'teacher':
	if stock['intellect'] < 5: stock['intellect'] += 1
	if stock['expression'] < 5: stock['expression'] += 1
	if stock['secretary'] < 5: stock['secretary'] += 1
	if stock['service'] < 5: stock['service'] += 1
	if stock['cook'] < 5: stock['cook'] += 1
	$stock_occupation_auk = 'primary school teacher'
elseif $stock_occupation = 'oficiant':
	if stock['expression'] < 5: stock['expression'] += 1
	if stock['service'] < 5: stock['service'] += 1
	if stock['cook'] < 5: stock['cook'] += 1
	$stock_occupation_auk = 'waitress'
elseif $stock_occupation = 'avanturiste':
	if stock['expression'] < 3: stock['expression'] += 3
	if stock['sub_seduce'] < 3: stock['sub_seduce'] += 3
	if stock['intellect'] < 5: stock['intellect'] += 1
	if stock['ego'] < 5: stock['ego'] += 1
	if stock['pride'] < 5: stock['pride'] += 1
	if stock['spoil'] < 5: stock['spoil'] +=1
	if stock['custom'] > 1: stock['custom'] -= 1
	if stock['sub_hug'] < 5: stock['sub_hug'] += 1
	if stock['sub_kiss'] < 5: stock['sub_kiss'] += 1
	$stock_occupation_auk = 'secular adventuress'
elseif $stock_occupation = 'rich_bride':
	if meta_type = 3:
		$stock_occupation = 'rich_wife'
	else
		stock['virginity'] = 0
		stock['sub_vaginal'] = 0
		stock['sub_anal'] = 0
		stock['sub_bj'] = 0
	end
	$stock_occupation_auk = 'rich bride'
elseif $stock_occupation = 'rich_wife':
	stock['virginity'] = 2
	if stock['temper'] > 1: stock['temper'] -= 1
	if stock['music'] < 5: stock['music'] += 1
	if stock['art'] < 5: stock['art'] += 1
	if stock['sub_hug'] < 5: stock['sub_hug'] += 1
	if stock['sub_kiss'] < 4: stock['sub_kiss'] += 2
	if stock['sub_vaginal'] < 4: stock['sub_vaginal'] += 2
	$stock_occupation_auk = 'wife of a rich man'
elseif $stock_occupation = 'punk':
	if stock['sensitivity'] > 1: stock['sensitivity'] -= 1
	if stock['custom'] > 1: stock['custom'] -= 1
	if stock['temper'] < 5: stock['temper'] += 1
	if stock['expression'] < 5: stock['expression'] += 1
	if stock['music'] < 5: stock['music'] += 1
	if stock['art'] < 5: stock['art'] += 1
	if stock['gladiatrix'] < 5: stock['gladiatrix'] += 1
	$stock_occupation_auk = 'punk'
elseif $stock_occupation = 'student':
	if stock['intellect'] < 5: stock['intellect'] += 1
	if stock['expression'] < 5: stock['expression'] += 1
	if stock['secretary'] < 5: stock['secretary'] += 1
	$stock_occupation_auk = 'student'
elseif $stock_occupation = 'secretary':
	if stock['expression'] < 5: stock['expression'] += 1
	if stock['secretary'] < 3: stock['secretary'] += 3
	if stock['service'] < 5: stock['service'] += 1
	if stock['ego'] > 1: stock['ego'] -= 1
	if stock['custom'] < 5: stock['custom'] += 1
	$stock_occupation_auk = 'secretary'
elseif $stock_occupation = 'voleyball':
	if stock['stamina'] < 5: stock['stamina'] += 1
	if stock['stamina'] < 4: stock['stamina'] = 4
	if stock['temper'] < 5: stock['temper'] += 1
	if stock['fat'] > 1: stock['fat'] = 1
	if stock['calisthenics'] < 5: stock['calisthenics'] += 1
	$stock_occupation_auk = 'volleyballer'
elseif $stock_occupation = 'karateka':
	if stock['stamina'] < 5: stock['stamina'] += 1
	if stock['stamina'] < 4: stock['stamina'] = 4
	if stock['temper'] < 5: stock['temper'] += 1
	if stock['gladiatrix'] < 3: stock['gladiatrix'] += 3
	$stock_occupation_auk = 'kickboxer'
elseif $stock_occupation = 'hymnast':
	if stock['stamina'] < 5: stock['stamina'] += 1
	if stock['stamina'] < 4: stock['stamina'] = 4
	if stock['temper'] < 5: stock['temper'] += 1
	if stock['fat'] > 1: stock['fat'] = 1
	if stock['calisthenics'] < 3: stock['calisthenics'] += 3
	if stock['sensitivity'] < 5: stock['sensitivity'] += 1
	$stock_occupation_auk = 'gymnast'
elseif $stock_occupation = 'policewoman':
	if stock['expression'] < 5: stock['expression'] += 1
	if stock['ego'] < 5: stock['ego'] += 1
	if stock['gladiatrix'] < 4: stock['gladiatrix'] += 2
	if stock['sensitivity'] > 1: stock['sensitivity'] -= 1
	if stock['secretary'] < 5: stock['secretary'] += 1
	if stock['nurse'] < 5: stock['nurse'] += 1
	$stock_occupation_auk = 'police worker'
elseif $stock_occupation = 'model':
	if stock['beauty'] < 4: stock_rate['beauty'] = 80
	if stock['expression'] < 5: stock['expression'] += 1
	if stock['calisthenics'] < 4: stock['calisthenics'] += 2
	if stock['pride'] < 5: stock['pride'] += 1
	if stock['dressage'] < 5: stock['dressage'] += 1
	if stock['fat'] > 0: stock['fat'] = 1
	$stock_occupation_auk = 'photo model'
elseif $stock_occupation = 'hacker':
	if stock['intellect'] < 5: stock['intellect'] += 1
	if stock['intellect'] < 4: stock['intellect'] = 4
	if stock['ego'] < 5: stock['ego'] += 1
	if stock['secretary'] < 5: stock['secretary'] += 1
	$stock_occupation_auk = 'hacker'
elseif $stock_occupation = 'writer':
	if stock['intellect'] < 5: stock['intellect'] += 1
	if stock['expression'] < 4: stock['expression'] += 2
	$stock_occupation_auk = 'author of women’s novels'
elseif $stock_occupation = 'major':
	if stock['temper'] < 5: stock['temper'] += 1
	if stock['ego'] < 5: stock['ego'] += 1
	if stock['pride'] < 5: stock['pride'] += 1
	if stock['calisthenics'] < 5: stock['calisthenics'] += 1
	if stock['sub_seduce'] < 5: stock['sub_seduce'] += 1
	if stock['sub_bj'] < 5: stock['sub_bj'] += 1
	if stock['sub_hug'] < 5: stock['sub_hug'] += 1
	if stock['sub_kiss'] < 5: stock['sub_kiss'] += 1
	$stock_occupation_auk = 'representative of the jet set'
elseif $stock_occupation = 'artist':
	if stock['stamina'] > 1: stock['stamina'] -= 1
	if stock['expression'] < 5: stock['expression'] += 1
	if stock['sensitivity'] < 5: stock['sensitivity'] += 1
	$stock_occupation_auk = 'an artist'
elseif $stock_occupation = 'mind_contol':
	if stock['ego'] < 5: stock['ego'] += 1
	if stock['secretary'] < 5: stock['secretary'] += 1
	if stock['enchanter'] < 5: stock['enchanter'] += 1
	$stock_occupation_auk = 'mind control police worker'
elseif $stock_occupation = 'time_plice':
	if stock['stamina'] < 5: stock['stamina'] += 1
	if stock['expression'] < 5: stock['expression'] += 1
	if stock['gladiatrix'] < 3: stock['gladiatrix'] += 3
	if stock['secretary'] < 5: stock['secretary'] += 1
	$stock_occupation_auk = 'time police worker'
elseif $stock_occupation = 'jailer':
	if stock['stamina'] < 5: stock['stamina'] += 1
	if stock['ego'] < 5: stock['ego'] += 1
	$stock_occupation_auk = 'wardeness'
elseif $stock_occupation = 'anter':
	if stock['stamina'] > 1: stock['stamina'] -= 1
	if stock['sensitivity'] > 1: stock['sensitivity'] -= 1
	if stock['temper'] > 1: stock['temper'] -= 1
	if stock['ego'] > 1: stock['ego'] -= 1
	if stock['pride'] > 1: stock['pride'] -= 1
	if stock['intellect'] > 1: stock['intellect'] -= 1
	if stock['custom'] < 5: stock['custom'] += 1
	if stock['service'] < 5: stock['service'] += 1
	$stock_occupation_auk = 'ordinary worker'
elseif $stock_occupation = 'academy':
	if stock['intellect'] < 5: stock['intellect'] += 1
	if stock['gladiatrix'] < 5: stock['gladiatrix'] += 1
	if stock['secretary'] < 5: stock['secretary'] += 1
	if stock['pride'] < 5: stock['pride'] += 1
	$stock_occupation_auk = 'graduate of Starfleet Academy'
elseif $stock_occupation = 'mech':
	if stock['stamina'] < 5: stock['stamina'] += 1
	if stock['temper'] < 5: stock['temper'] += 1
	if stock['gladiatrix'] < 4: stock['gladiatrix'] += 2
	if stock['service'] < 5: stock['service'] += 1
	$stock_occupation_auk = 'pilot of a giant humanoid battle robot'
elseif $stock_occupation = 'contraband':
	if stock['expression'] < 4: stock['expression'] += 2
	if stock['gladiatrix'] < 5: stock['gladiatrix'] += 1
	if stock['secretary'] < 5: stock['secretary'] += 1
	if stock['ego'] < 5: stock['ego'] += 1
	if stock['intellect'] < 5: stock['intellect'] += 1
	if stock['custom'] > 1: stock['custom'] -= 1
	$stock_occupation_auk = 'smuggler'
elseif $stock_occupation = 'astrofarmer':
	if stock['temper'] > 1: stock['temper'] -= 1
	if stock['service'] < 5: stock['service'] += 1
	if stock['cook'] < 5: stock['cook'] += 1
	$stock_occupation_auk = 'operator of an orbital farm'
elseif $stock_occupation = 'installer':
	if stock['stamina'] < 5: stock['stamina'] += 1
	if stock['service'] < 5: stock['service'] += 1
	$stock_occupation_auk = 'orbital fitter'
end

!FERTILITY
stock['cycle_day'] = rand(1,35)
if stock['age'] = CONST_INT['loli_age']:
	stock['fertility'] = -2 &! immature
elseif stock['fertility_revealed'] = 0 and stock['fertility'] = 0:
	if rand(1, 15) = 3:
		stock['fertility'] = -1 &! sterile
	else
		stock['fertility'] = 0 &! fertile
	end
end

if special_stock = 0:
	!Make slaves more unique - crushboss
	if stock['age'] = CONST_INT['loli_age']: a = 15
	if stock['age'] = CONST_INT['young_age']: a = 10
	if stock['age'] = CONST_INT['milf_age']: a = 8
	if rand(1, a) = 1: stock_rate['beauty'] += rand(10,50)
	if rand(1, a) = 1: stock_rate['exotic'] += rand(10,50)
	if rand(1, a) = 1: stock_rate['fame'] += rand(1,25)
	if rand(1, a) = 1: stock['stamina'] += rand(1,2)
	if rand(1, a) = 1: stock['sensitivity'] += rand(1,2)
	if rand(1, a) = 1: stock['temper'] += rand(1,2)
	if rand(1, a) = 1: stock['ego'] += rand(1,2)
	if rand(1, a) = 1: stock['pride'] -= rand(1,2)
	if rand(1, a) = 1: stock['intellect'] += rand(1,2)

	if rand(1, a) = 1: stock['service'] += rand(1,2)
	if rand(1, a) = 1: stock['expression'] += rand(1,2)
	if rand(1, a) = 1: stock['secretary'] += rand(1,2)
	if rand(1, a) = 1: stock['calisthenics'] += rand(1,2)
	if rand(1, a) = 1: stock['gladiatrix'] += rand(1,2)
	if rand(1, a) = 1: stock['cook'] += rand(1,2)
	if rand(1, a) = 1: stock['dressage'] += rand(1,2)
	if rand(1, a) = 1: stock['pet'] += rand(1,2)
	if rand(1, a) = 1: stock['cowSK'] += rand(1,2)
	if rand(1, a) = 1: stock['nurse'] += rand(1,2)
	if rand(1, a) = 1: stock['enchanter'] += rand(1,2)
	if rand(1, a) = 1: stock['art'] += rand(1,2)
	if rand(1, a) = 1: stock['music'] += rand(1,2)

	if meta_type = 2:
		!YOUNG SLAVES SOMETIMES HAVE SEXUAL EXPERIENCE
		if rand(1,2) = 1: stock['sub_masturbation'] += 1
		if rand(1,3) = 1: stock['sub_masturbation'] += 1
		if rand(1,4) = 1: stock['sub_anal'] += 1
		if rand(1,3) = 1: stock['sub_bj'] += 1
		if rand(1,4) = 1:
			stock['virginity'] = 2
			if stock['sub_hug'] < 2: stock['sub_hug'] += 1
			if stock['sub_kiss'] < 2: stock['sub_kiss'] += 1
			if stock['sub_vaginal'] < 1: stock['sub_vaginal'] += 1
			if rand(1,3) = 1: stock['sub_anal'] += 1
			if rand(1,3) = 1: stock['sub_bj'] += 1
		end
	elseif meta_type = 3:
		!ADULT SLAVES USUALLY HAVE SEXUAL EXPERIENCE
		if stock['sub_hug'] < 3: stock['sub_hug'] += 1
		if stock['sub_kiss'] < 3: stock['sub_kiss'] += 1
		if rand(1,2) = 1: stock['sub_masturbation'] += 1
		if rand(1,3) = 1: stock['sub_masturbation'] += 1
		if rand(1,4) = 1: stock['sub_masturbation'] += 1
		if rand(1,4) = 1: stock['sub_anal'] += 1
		if rand(1,3) = 1: stock['sub_bj'] += 1
		if rand(1,4) > 1:
			stock['virginity'] = 2
			if stock['sub_hug'] < 4: stock['sub_hug'] += 1
			if stock['sub_kiss'] < 4: stock['sub_kiss'] += 1
			if stock['sub_seduce'] < 3: stock['sub_seduce'] += 1
			if stock['sub_vaginal'] < 3: stock['sub_vaginal'] += 2
			if rand(1,3) = 1: stock['sub_anal'] += 1
			if rand(1,4) = 1: stock['sub_anal'] += 1
			if rand(1,2) = 1: stock['sub_bj'] += 1
			if rand(1,3) = 1: stock['sub_bj'] += 1
		end
	end

	!TRAITS - viginity chance - crushboss
	if stock['virginity'] = 0:
		if stock['age'] = CONST_INT['loli_age'] and rand(1,100) <= 20:
			stock['virginity'] = 2
		elseif stock['age'] = CONST_INT['young_age'] and rand(1,100) <= 50:
			stock['virginity'] = 2
		elseif stock['age'] = CONST_INT['milf_age'] and rand(1,100) <= 80:
			stock['virginity'] = 2
		end
	end

	!EXTRA SEXUAL EXPERIENCE FOR NON-VIRGINS
	if stock['virginity'] > 1:
		if rand(1, a) = 1: stock['sub_vaginal'] += rand(1,3)
		if rand(1, a) = 1: stock['sub_fisting'] += rand(1,3)
		if rand(1, a) = 1: stock['sub_threesome'] += rand(1,3)
		if rand(1, a) = 1: stock['sub_dp'] += rand(1,3)
		if rand(1, a) = 1: stock['sub_tp'] += rand(1,3)
		if rand(1, a) = 1: stock['sub_gangbang'] += rand(1,3)
		if rand(1, a) = 1: stock['sub_zoosex'] += rand(1,3)
		if rand(1, a) = 1: stock['sub_bestiality'] += rand(1,3)
		if rand(1, a) = 1: stock['sub_horse'] += rand(1,3)
		!if rand(1, a) = b: stock['sub_tentacles'] += rand(1,3) &! implausible as a random chance for all slaves, should be set for specific backgrounds only
		!if rand(1, a) = b: stock['sub_arachnidspider'] += rand(1,3) &! implausible as a random chance for all slaves, should be set for specific backgrounds only
		!if rand(1, a) = b: stock['sub_polypusvermin'] += rand(1,3) &! implausible as a random chance for all slaves, should be set for specific backgrounds only
		if rand(1, a) = 1: stock['sub_hug'] += rand(1,3)
		if rand(1, a) = 1: stock['sub_kiss'] += rand(1,3)
		if rand(1, a) = 1: stock['sub_bj'] += rand(1,3)
		if rand(1, a) = 1: stock['sub_anal'] += rand(1,3)
		if rand(1, a) = 1: stock['anal_stretch'] = rand(1,3)
		if rand(1, a) = 1: stock['sub_exhibit'] += rand(1,3)
		if rand(1, a) = 1: stock['sub_humiliation'] += rand(1,3)
		if rand(1, a) = 1: stock['sub_hj'] += rand(1,3)
		if rand(1, a) = 1: stock['sub_fj'] += rand(1,3)
		if rand(1, a) = 1: stock['sub_paizuri'] += rand(1,3)
		if rand(1, a) = 1: stock['sub_tongue'] += rand(1,3)
		if rand(1, a) = 1: stock['sub_dt'] += rand(1,3)
		if rand(1, a) = 1: stock['sub_asslik'] += rand(1,3)
		if rand(1, a) = 1: stock['sub_seduce'] += rand(1,3)
		if rand(1, a) = 1: stock['sub_masturbation'] += rand(1,3)
		if rand(1, a) = 1: stock['sub_dildo'] += rand(1,3)
		if rand(1, a) = 1: stock['sub_enema'] += rand(1,3)
		if rand(1, a) = 1: stock['sub_mazo'] += rand(1,3)
		if rand(1, a) = 1: stock['sub_selfpain'] += rand(1,3)
		if rand(1, a) = 1: stock['sub_piss'] += rand(1,3)
		if rand(1, a) = 1: stock['sub_kopro'] += rand(1,3)
		if rand(1, a) = 1: stock['sub_bukkake'] += rand(1,3)

		if rand(1, 8) = 4:
			!CHANCE OF A PARASITE IF HYMEN BROKEN
			stock['parasite'] = 1
		elseif stock['fertility'] = 0:
			!CHANCE OF NORMAL PREGNANCY IF FERTILE
			if rand(1, 12) = 6: stock['pregnant'] = 1
		end
	end

	!TRAITS
	stock['metabolism'] = rand(1,5)
	if rand(1, 10) = 1: stock['nymphomania'] = rand(-1,1)
	if rand(1, 10) = 1: stock['masochism'] = rand(-1,2)
	if rand(1, 10) = 1: stock['exhibitionism'] = rand(-1,2)
	if rand(1, 6) = 1: stock['perversion'] = rand(-1,2)
	if stock['perversion'] = 1: stock['perversion'] = 2 &! allowed values are -1, 0, 2, so change 1 to 2
	if rand(1, 7) = 1: stock['homosexualism'] = rand(-1,2)
	if rand(1, 6) = 1: stock['abuse_attitude'] = rand(-1,2)
	if rand(1, 6) = 1: stock['darkness_attitude'] = rand(-1,2)
	if rand(1, 6) = 1: stock['blood_attitude'] = rand(-1,2)
	if rand(1, 6) = 1: stock['fire_attitude'] = rand(-1,2)
	if rand(1, 6) = 1: stock['water_attitude'] = rand(-1,2)
	if rand(1, 6) = 1: stock['vermin_attitude'] = rand(-1,2)
	if rand(1, 6) = 1: stock['deprivation_attitude'] = rand(-1,2)
	if rand(1, 6) = 1: stock['passion_comfort'] = rand(-1,2)
	if rand(1, 6) = 1: stock['passion_luxury'] = rand(-1,2)
	if rand(1, 6) = 1: stock['passion_sweets'] = rand(-1,2)
	if rand(1, 6) = 1: stock['passion_fame'] = rand(-1,2)
	if rand(1, 6) = 1: stock['courage'] = rand(-1,2)
	if rand(1, 6) = 1: stock['grace'] = rand(-1,1)
	if rand(1, 6) = 1: stock['sport_affinity'] = rand(-1,1)

	if rand(1, 7) = 7: stock['expression_affinity'] = 1
	if rand(1, 7) = 7: stock['pet_affinity'] = 1
	if rand(1, 7) = 7: stock['dressage_affinity'] = 1
	if rand(1, 7) = 7: stock['cowSK_affinity'] = 1
	if rand(1, 7) = 7: stock['nurse_affinity'] = 1
	if rand(1, 7) = 7: stock['service_affinity'] = 1
	if rand(1, 7) = 7: stock['cook_affinity'] = 1
	if rand(1, 7) = 7: stock['gladiatrix_affinity'] = 1
	if rand(1, 7) = 7: stock['enchanter_affinity'] = 1
	if rand(1, 7) = 7: stock['art_affinity'] = 1
	if rand(1, 7) = 7: stock['music_affinity'] = 1
	if rand(1, 7) = 7: stock['calisthenics_affinity'] = 1
	if rand(1, 7) = 7: stock['secretary_affinity'] = 1

	!if a = 31:
	! chance = rand(1,2)
	! stock['memory'] = iif(chance = 1, -1, 1)
	!end

	if rand(1, 6) = 1: stock['meekness'] = rand(-2,5)
	if rand(1, 6) = 1: stock['selfesteem'] = rand(-1,1)
	if rand(1, 6) = 1: stock['dexterity'] = rand(-1,1)
	if rand(1, 6) = 1: stock['compassion'] = rand(-1,2)

	!ILLNESS
	if rand(1, 5) = 1: stock['ill'] = 1

	!CHARACTERISTICS THAT ARE DERIVED FROM RATE (BRUISES, SCARS, HYGIENE, AROUSAL, WOUNDS, FAME)
	if rand(1, 15) = 8:
		chance = rand(1,15)
		if chance > 0: s = 10
		if chance > 5: s = 20
		if chance > 9: s = 40
		if chance > 12: s = 80
		if chance = 15: s = 160
		stock_rate['wounds'] = s
	end

	if rand(1, 8) = 4 or stock_rate['wounds'] >= 80:
		chance = rand(1,15)
		if chance > 0: s = 10
		if chance > 5: s = 20
		if chance > 9: s = 40
		if chance > 12: s = 80
		if chance = 15: s = 160
		stock_rate['scars'] = s
	end

	if rand(1, 5) = 4 or stock_rate['wounds'] >= 20:
		chance = rand(1,15)
		if chance > 0: s = 10
		if chance > 5: s = 20
		if chance > 9: s = 40
		if chance > 12: s = 80
		if chance = 15: s = 160
		stock_rate['bruises'] = s
	end

	if rand(1,5) > 1: stock_rate['hygiene'] = rand(0,40) &! fixed to set rate instead of setting hygiene directly (but not too much of it) - ImperatorAugustus

	!BODY MODIFICATIONS
	if stock['age'] ! CONST_INT['loli_age']:
		if rand(1, a) = 1: stock['makeup'] = 3 &! tattoo makeup
		!if rand(1, a) = 1: stock['fiend_tattoo'] = 1 &! implausible as a random chance for all slaves, should be set for specific backgrounds only (slaves originating in the Eternal Rome)
		if rand(1, a) = 1: stock['tattoo'] = rand(1,5)
		if rand(1, a) = 1: stock['nipple_piercing'] = 1
		if rand(1, a) = 1: stock['clit_piercing'] = 1
		if rand(1, a) = 1: stock['ear_piercing'] = 1
		if rand(1, a) = 1: stock['tongue_piercing'] = 1
		if rand(1, a) = 1: stock['belly_piercing'] = 1
		if rand(1, a) = 1: stock['nostril_piercing'] = 1
		if rand(1, a) = 1: stock['nose_piercing'] = 1
		if rand(1, 20) = 3: stock['tongue_split'] = 1
		if rand(1, 20) = 3: stock['scarification'] = 1
	end
end &! end of randomization to make slaves more unique

!Code for testing the new better vanilla slave system - crushboss'
!stock['nymphomania_revealed'] = 2
!stock['masochism_revealed'] = 2
!stock['exhibitionism_revealed'] = 2
!stock['perversion_revealed'] = 2
!stock['homosexualism_revealed'] = 2
!stock['abuse_attitude_revealed'] = 2
!stock['darkness_attitude_revealed'] = 2
!stock['blood_attitude_revealed'] = 2
!stock['fire_attitude_revealed'] = 2
!stock['water_attitude_revealed'] = 2
!stock['vermin_attitude_revealed'] = 2
!stock['deprivation_attitude_revealed'] = 2
!stock['passion_comfort_revealed'] = 2
!stock['passion_luxury_revealed'] = 2
!stock['passion_sweets_revealed'] = 2
!stock['passion_fame_revealed'] = 2
!stock['courage_revealed'] = 2
!stock['metabolism_revealed'] = 2
!stock['sport_affinity_revealed'] = 2
!stock['expression_affinity_revealed'] = 2
!stock['pet_affinity_revealed'] = 2
!stock['dressage_affinity_revealed'] = 2
!stock['cowSK_affinity_revealed'] = 2
!stock['nurse_affinity_revealed'] = 2
!stock['service_affinity_revealed'] = 2
!stock['cook_affinity_revealed'] = 2
!stock['gladiatrix_affinity_revealed'] = 2
!stock['enchanter_affinity_revealed'] = 2
!stock['art_affinity_revealed'] = 2
!stock['music_affinity_revealed'] = 2
!stock['calisthenics_affinity_revealed'] = 2
!stock['secretary_affinity_revealed'] = 2
!stock['meekness_revealed'] = 2
!stock['selfesteem_revealed'] = 2
!stock['compassion_revealed'] = 2
!End of Testing Code'

!Makes it harder to train in both gladiatrix and pet or pony since they use opposing skills - crushboss | and cow added - Pianocat
if stock['gladiatrix'] > 2: stock['dressage'] = 0 & stock['pet'] = 0
if stock['dressage'] > 2 or stock['pet'] > 2 or stock['cowSK'] > 0: stock['gladiatrix'] = 0
if stock['gladiatrix_affinity'] = 1: stock['cowSK_affinity'] = 0 & stock['dressage_affinity'] = 0 & stock['pet_affinity'] = 0

!Testing Code - crushboss
if cheat_h = 1 and get_girl = 0: gs 'generate_stock_testing'
if cheat_j = 1 and get_girl = 0: gs 'generate_stock_maximum_testing'
if cheat_l = 1:
	stock['energy'] = 5
	stock['metabolism'] = 5
	if stock['stamina'] < 3: stock['stamina'] += 2
	if stock['beauty'] < 3: stock_rate['beauty'] += 40
	if stock['exotic'] < 1: stock_rate['exotic'] += rand(0,70)
	if stock['meekness'] <= 0: stock['meekness'] = rand(0,3)
	if rand(1,4) = 2:
		if stock['perversion'] <= 0: stock['perversion'] = 2
	end
	if stock['nymphomania'] < 0: stock['nymphomania'] = rand(0,1)
	if stock['homosexualism'] <= 0: stock['homosexualism'] = rand(0,1)
	if stock['selfesteem'] <= 0: stock['selfesteem'] = rand(0,1)
	if stock['abuse_attitude'] >= 0: stock['abuse_attitude'] = rand(-1,0)
	if stock['passion_fame'] <= 0: stock['passion_fame'] = rand(0,1)
	if stock['passion_comfort'] <= 0: stock['passion_comfort'] = rand(0,1)
	if stock['courage'] > 0: stock['courage'] = 0
	if stock['masochism'] > 0: stock['masochism'] = 0
	if stock['gladiatrix_affinity'] < 1 and stock['dressage_affinity'] < 1: stock['gladiatrix_affinity'] = rand(0,1)
	if stock['gladiatrix_affinity'] < 1 and stock['dressage_affinity'] < 1: stock['dressage_affinity'] = rand(0,1)
end
!End of Testing Code

!METABOLISM
if stock['stamina'] = 5: stock['metabolism'] += 1
if stock['stamina'] = 1: stock['metabolism'] -= 1
if stock['metabolism'] < 1: stock['metabolism'] = 1
if stock['metabolism'] > 5: stock['metabolism'] = 5

!Align characteristics (calculate attribute values from rates, enforce upper/lower bounds)
dynamic $replace($dyn_calc_slave_attrs, 'dyn'+'slave', 'stock')

!Record starting values
stock['weight_before'] = stock['fat']
stock['base_exotic'] = stock['exotic']
!APPLY EXOTICISM RATE FOR TATTOOS
if stock['tattoo'] > 0: stock_rate['exotic'] += 3
if stock['tattoo'] > 1: stock_rate['exotic'] += 2
if stock['tattoo'] > 2: stock_rate['exotic'] += 8
if stock['tattoo'] > 3: stock_rate['exotic'] += 14
if stock['tattoo'] > 4: stock_rate['exotic'] += 13
!TRANSLATE BEAUTY RATE TO BASE BEAUTY (converting this way because bruises and scars can impact it)
if stock_rate['beauty'] >= 0:   stock['base_beauty'] = 0
if stock_rate['beauty'] >= 10:  stock['base_beauty'] = 1
if stock_rate['beauty'] >= 20:  stock['base_beauty'] = 2
if stock_rate['beauty'] >= 40:  stock['base_beauty'] = 3
if stock_rate['beauty'] >= 80:  stock['base_beauty'] = 4
if stock_rate['beauty'] >= 160: stock['base_beauty'] = 5

!psy determination if not preset
if $stock_psy_basic = '':
	a = rand(1,4)
	if a = 1: $stock_psy_basic = 'reluctant'
	if a = 2: $stock_psy_basic = 'soft'
	if a = 3: $stock_psy_basic = 'optimistic'
	if a = 4: $stock_psy_basic = iif(stock['sensitivity'] >= 4, 'lachrymose', 'depresive')
end

!SELECT ONE EPITHET FOR DESCRIBING THE SLAVE (PRIORITIZED LOW TO HIGH)
if stock['exotic'] >= 2: $stock_epithet = 'exotic'
if stock['temper'] = 4: $stock_epithet = 'restive'
if stock['stamina'] = 4: $stock_epithet = 'strong and healthy'
if stock['fat'] = 1: $stock_epithet = 'slender like a cypress'
if stock['beauty'] = 3: $stock_epithet = 'charming'
if stock['beauty'] = 4: $stock_epithet = 'adorable'
if stock['stamina'] = 5: $stock_epithet = 'unusually strong and hardy'
if stock['sensitivity'] = 4: $stock_epithet = 'tender and sensitive'
if stock['sensitivity'] = 5: $stock_epithet = 'gentle like a beautiful flower'
if stock['beauty'] = 5: $stock_epithet = 'perfect as the stars themselves'
if stock['temper'] = 5: $stock_epithet = 'hot like fire'

!EQUIP
$stock['wpn'] = 'безоружный'
$stock['armor'] = 'без_брони'
$stock['scnd'] = ''

$stock['back_wpn'] = ''
$stock['left_wpn'] = ''
$stock['right_wpn'] = ''
$stock['arm_wpn'] = ''
$stock['leg_wpn'] = ''

$stock['cloth'] = 'голая'

stock['neg_slave'] = 1 + stock['pride'] + stock['temper'] + stock['ego'] + stock['intellect'] - stock['rational'] - stock['custom']
stock['newness'] = 10 - brand_reputation
stock['diet_portion'] = 2 &! stable diet

!ENERGY
stock['calories'] = stock['stamina']
stock['energy'] = stock['stamina']

!DEVOTION STARTS AT NEGATIVE TEN RATE SO FORCING RULES DOES NOT EXTEND DEVOTION RAMP
stock_rate['moral'] = -10

!SANITY CHECK
if (stock['temper'] + stock['ego'] + stock['pride']) < 3: stock['temper'] = 0 & stock['pride'] = 0 &! temper and pride would drop to zero at the next update, so take that into account for display - ImperatorAugustus

!PREPARE TRAIT LIST FOR DISPLAY (NOT EVERYTHING IS VISIBLE BEFORE ACQUISITION)
gs '$stock_traits'

!Fixes the starving message you get on the 2nd day of getting a new slave or assistant - crushboss
!stock_rate['fat'] = 2
!stock['starvation'] = -5

!Reset variables used - crushboss
chance = 0
a = 0
b = 0
s = 0

!Calculate stock rating and specializations - crushboss
gs '$slave_price', 'stock' &! merged $slave_price_stock into $slave_price - ImperatorAugustus

!gs '#txt'
!gs '#txt_2'

special_stock = 0

--- generate_stock ---------------------------------


code:
# generate_stock_maximum_testing
!Generate Stock Maximum Testing Cheat
!Created by crushboss

!Temporary code for testing - crushboss

!Slave Attributes and Skills
stock["fat"] = 1
stock["beauty"] = 5
stock["fame"] = 5
stock["sub_vaginal"] = 5
stock["sub_fisting"] = 5
stock["sub_threesome"] = 5
stock["sub_dp"] = 5
stock["sub_tp"] = 5
stock["sub_gangbang"] = 5
stock["sub_zoosex"] = 5
stock["sub_bestiality"] = 5
stock["sub_horse"] = 5
stock["sub_tentacles"] = 5
stock["sub_arachnidspider"] = 5
stock["sub_polypusvermin"] = 5
stock["sub_hug"] = 5
stock["sub_kiss"] = 5
stock["sub_bj"] = 5
stock["sub_anal"] = 5
stock["anal_stretch"] = 5
stock["sub_exhibit"] = 5
stock["sub_humiliation"] = 5
stock["sub_hj"] = 5
stock["sub_fj"] = 5
stock["sub_paizuri"] = 5
stock["sub_tongue"] = 5
stock["sub_dt"] = 5
stock["sub_asslik"] = 5
stock["sub_seduce"] = 5
stock["sub_masturbation"] = 5
stock["sub_dildo"] = 5
stock["sub_enema"] = 5
stock["sub_mazo"] = 5
stock["sub_selfpain"] = 5
stock["sub_piss"] = 5
stock["sub_kopro"] = 5
stock["sub_bukkake"] = 5
stock["stamina"] = 5
stock["sensitivity"] = 5
stock["temper"] = 5
stock["ego"] = 5
stock["pride"] = 0
stock["intellect"] = 5
stock["service"] = 5
stock["expression"] = 5
stock["secretary"] = 5
stock["calisthenics"] = 5
stock["gladiatrix"] = 5
stock["cook"] = 5
stock["dressage"] = 5
stock["pet"] = 5
stock["cowSK"] = 5
stock["nurse"] = 5
stock["alchemy"] = 5
stock["enchanter"] = 5
stock["art"] = 5
stock["music"] = 5
stock["custom"] = 5
stock["moral"] = 5
stock["rational"] = 5
stock["instinct"] = 5
stock["exotic"] = 4
stock['energy'] = 5
stock["bruises"] = 0
stock["scars"] = 0
stock["fear"] = 0
stock["angst"] = 0
stock["spoil"] = 0
stock["arousal"] = 0
stock["hygiene"] = 0
stock['ill'] = 0
stock['pregnant'] = 0
stock['parasite'] = 0
stock['issues'] = 0
stock["metabolism"] = 5

!Slave Piercings
stock["nipple_piercing"] = 1
stock["clit_piercing"] = 1
stock["ear_piercing"] = 1
stock["tongue_piercing"] = 1
stock["belly_piercing"] = 1
stock["nostril_piercing"] = 1
stock["nose_piercing"] = 1
stock["tongue_split"] = 1
stock["scarification"] = 1

!Slave Clothing Inventory
stock_inventory['maid_dress'] = 1
stock_inventory['apron'] = 1
stock_inventory['nurse_dress'] = 1
stock_inventory['sailor_foku'] = 1
stock_inventory['leotard'] = 1
stock_inventory['chainmail_bikini'] = 1
stock_inventory['sun_dress'] = 1
stock_inventory['leather_corset'] = 1
stock_inventory['fluffy_stepins'] = 1
stock_inventory['high_boots'] = 1
stock_inventory['sneakers'] = 1
stock_inventory['tabi'] = 1
stock_inventory['glasses'] = 1
stock_inventory['nekomimi'] = 1
stock_inventory['leather_gloves'] = 1
stock_inventory['fluffy_gloves'] = 1
stock_inventory['rubber_gloves'] = 1
stock_inventory['plain_headband'] = 1
stock_inventory['golden_collar'] = 1
stock_inventory['leather_collar'] = 1
stock_inventory['spiked_collar'] = 1
stock_inventory['common_apron'] = 1
stock_inventory['maid_dress'] = 1
stock_inventory['enchanter_robe'] = 1
stock_inventory['laced_underwear'] = 1
stock_inventory['bellydance'] = 1
stock_inventory['anal_tail'] = 1
stock_inventory['exotic_wig'] = 1
stock_inventory['pony_plume'] = 1
stock_inventory['ponygirl_harness'] = 1
stock_inventory['cow_gear'] = 1
stock_inventory['high_heels'] = 1
stock_inventory['high_boots'] = 1
stock_inventory['hoofed_boots'] = 1

!Slave Makeup and Tattoos
if stock['age'] ! CONST_INT['loli_age']:
	stock['makeup'] = 3
	stock['fiend_tattoo'] = 1
	stock['tattoo'] = 5
end
stock['manicure'] = 5
stock['perfume'] = 1
stock['hygiene'] = 0
stock_rate['hygiene'] = 0
stock['epilation'] = 12
stock['hairstyle'] = 7
stock['pos_gentle'] = 2
stock['pos_slave_clean'] = 1

!Slave Equipped Gear
$stock['earrings'] = 'incrusted_earrings'
$stock['collar'] = 'golden_collar'
$stock['headband'] = 'exotic_wig'
$stock['gloves'] = 'laced_gloves'
$stock['nipplerings'] = 'nipple_chain'
$stock['clitring'] = 'incrusted_earrings'
$stock['boots'] = 'high_boots'
$stock['ring_left'] = 'incrusted_ring'
$stock['ring_right'] = 'incrusted_ring'
$stock['navel'] = 'heavy_gauge_rings'
$stock['tongue'] = 'barbells'

!Pet Fiend
if pet_tentacle < 1:
	pet_tentacle = 1
	tentacle_hp = 0
	tentacle_size = 0
end

!Misc
stock["virginity"] = 2
stock["dressage_affinity"] = 1
stock["gladiatrix_affinity"] = 1

!Temporary Code for Testing - Makes slave very disobedient - crushboss'
stock["sub_vaginal"] = 0
stock["sub_fisting"] = 0
stock["sub_threesome"] = 0
stock["sub_dp"] = 0
stock["sub_tp"] = 0
stock["sub_gangbang"] = 0
stock["sub_zoosex"] = 0
stock["sub_bestiality"] = 0
stock["sub_horse"] = 0
stock["sub_tentacles"] = 0
stock["sub_arachnidspider"] = 0
stock["sub_polypusvermin"] = 0
stock["sub_hug"] = 0
stock["sub_kiss"] = 0
stock["sub_bj"] = 0
stock["sub_anal"] = 0
stock["anal_stretch"] = 0
stock["sub_exhibit"] = 0
stock["sub_humiliation"] = 0
stock["sub_hj"] = 0
stock["sub_fj"] = 0
stock["sub_paizuri"] = 0
stock["sub_tongue"] = 0
stock["sub_dt"] = 0
stock["sub_asslik"] = 0
stock["sub_seduce"] = 0
stock["sub_masturbation"] = 0
stock["sub_dildo"] = 0
stock["sub_enema"] = 0
stock["sub_mazo"] = 0
stock["sub_selfpain"] = 0
stock["sub_piss"] = 0
stock["sub_kopro"] = 0
stock["sub_bukkake"] = 0
stock["stamina"] = 5
stock["sensitivity"] = 3
stock["temper"] = 5
stock["ego"] = 5
stock["pride"] = 5
stock["intellect"] = 5
stock["service"] = 0
stock["expression"] = 0
stock["secretary"] = 0
stock["calisthenics"] = 0
stock["gladiatrix"] = 0
stock["cook"] = 0
stock["dressage"] = 0
stock["pet"] = 0
stock["cowSK"] = 0
stock["nurse"] = 0
stock["enchanter"] = 0
stock["art"] = 0
stock["music"] = 0
stock["custom"] = 0
stock_rate["custom"] = 0
stock["moral"] = 0
stock_rate["moral"] = 0
stock["rational"] = 0
stock_rate["rational"] = 0
stock["instinct"] = 0
stock_rate["instinct"] = 0
stock["exotic"] = 4
stock['energy'] = 5
stock["hygiene"] = 4
stock["meekness"] = 0
stock["selfesteem"] = 0
stock["abuse_attitude"] = 0
stock["passion_fame"] = 0
stock["passion_comfort"] = 0
if stock_virginity > 0: stock_virginity = 0
!End of Testing Code'

!Full Trophy Room - Testing Code
trophy_ogre = 1
trophy_warg = 1
trophy_werewolf = 1
trophy_hugefiend = 1
trophy_blackmedic = 1
trophy_maturefiend = 1
trophy_vampire = 1
trophy_lich = 1
trophy_beastmen = 1
trophy_paladin = 1
trophy_orc = 1
trophy_youngfiend = 1
trophy_scum = 1
trophy_goblins = 1
trophy_corvus = 1
trophy_camira = 1
trophy_serpis = 1
trophy_taurus = 1
trophy_vatican = 1
trophy_absolute = 1
trophy_slaves = 1
trophy_arenafiend = 1
trophy_racechampion = 1
trophy_racegrandchampion = 1
!End of Testing Code

--- generate_stock_maximum_testing ---------------------------------

repo_name: zaksynack/game

license: unknown


code:
# generate_stock_testing
!Generate Stock Testing Cheat
!Created by crushboss

!Temporary code for testing - crushboss

!Slave Attributes and Skills
stock['fat'] = rand(1,2)
stock['beauty'] += rand(2,3)
stock['fame'] = rand(1,3)
stock['sub_vaginal'] += rand(1,3)
stock['sub_fisting'] += rand(1,3)
stock['sub_anal'] += rand(1,4)
stock['anal_stretch'] = stock['sub_anal']
if stock['anal_stretch'] > 5: stock['anal_stretch'] = 5

stock['sub_threesome'] += rand(1,3)
stock['sub_dp'] += rand(1,3)
stock['sub_tp'] += rand(1,3)
stock['sub_gangbang'] += rand(1,3)
stock['sub_bukkake'] += rand(3,4)

!stock['sub_zoosex'] += rand(4,5)
!stock['sub_bestiality'] += rand(4,5)
!stock['sub_horse'] += rand(4,5)
!stock['sub_tentacles'] += rand(2,4)
!stock['sub_arachnidspider'] += rand(4,5)
!stock['sub_polypusvermin'] += rand(4,5)

stock['sub_hug'] += rand(3,5)
stock['sub_kiss'] += rand(3,5)
stock['sub_bj'] += rand(3,5)
stock['sub_exhibit'] += rand(3,5)
stock['sub_humiliation'] += rand(3,5)
stock['sub_hj'] += rand(3,5)
stock['sub_fj'] += rand(3,5)
stock['sub_paizuri'] += rand(3,5)
stock['sub_tongue'] += rand(3,5)
stock['sub_dt'] += rand(3,5)
stock['sub_asslik'] += rand(3,5)
stock['sub_seduce'] += rand(3,5)
stock['sub_masturbation'] += rand(3,5)
stock['sub_dildo'] += rand(3,5)

!stock['sub_enema'] += rand(4,5)
!stock['sub_mazo'] += rand(3,5)
!stock['sub_selfpain'] += rand(3,5)
!stock['sub_piss'] += rand(2,5)
!stock['sub_kopro'] += rand(2,5)

stock['stamina'] += rand(2,3)
stock['sensitivity'] += rand(2,3)
stock['temper'] += rand(2,3)
stock['ego'] += rand(2,3)
stock['pride'] -= rand(1,3)
stock['intellect'] += rand(2,3)
stock['service'] += rand(2,5)
stock['expression'] += rand(2,5)
stock['secretary'] += rand(2,5)
stock['calisthenics'] += rand(2,5)
if stock['age'] ! CONST_INT['loli_age']: stock['gladiatrix'] += rand(3,4)
stock['cook'] += rand(2,5)
if stock['age'] = CONST_INT['loli_age']: stock['dressage'] += rand(0,4)
if stock['age'] = CONST_INT['loli_age']: stock['pet'] += rand(0,4)
if stock['age'] = CONST_INT['loli_age']: stock['cowSK'] += rand(0,1)
stock['nurse'] += rand(3,4)
stock['alchemy'] += rand(3,4)
stock['enchanter'] += rand(3,4)
stock['art'] += rand(2,4)
stock['music'] += rand(2,4)
stock['custom'] += rand(2,3)
stock['moral'] = rand(2,3)
stock['rational'] += rand(2,3)
stock['instinct'] += rand(2,3)
stock['exotic'] += rand(2,3)

!Slave Piercings
stock['nipple_piercing'] = 1
stock['clit_piercing'] = 1
stock['ear_piercing'] = 1
stock['tongue_piercing'] = 1
stock['belly_piercing'] = 1
stock['nostril_piercing'] = 1
stock['nose_piercing'] = 1
stock['tongue_split'] = 1
stock['scarification'] = 1

!Slave Makeup and Tattoos
if stock['age'] ! CONST_INT['loli_age']:
	stock['makeup'] = 3
	stock['fiend_tattoo'] = 1
	stock['tattoo'] = 5
end
stock['manicure'] = 5
stock['perfume'] = 1
stock['hygiene'] = 0
stock_rate['hygiene'] = 0
stock['epilation'] = 12
stock['hairstyle'] = 7
stock['pos_gentle'] = 2
stock['pos_slave_clean'] = 1

!Slave Clothing Inventory
stock_inventory['maid_dress'] = 1
stock_inventory['apron'] = 1
stock_inventory['nurse_dress'] = 1
stock_inventory['sailor_foku'] = 1
stock_inventory['leotard'] = 1
stock_inventory['chainmail_bikini'] = 1
stock_inventory['sun_dress'] = 1
stock_inventory['leather_corset'] = 1
stock_inventory['fluffy_stepins'] = 1
stock_inventory['high_boots'] = 1
stock_inventory['sneakers'] = 1
stock_inventory['tabi'] = 1
stock_inventory['glasses'] = 1
stock_inventory['nekomimi'] = 1
stock_inventory['leather_gloves'] = 1
stock_inventory['fluffy_gloves'] = 1
stock_inventory['rubber_gloves'] = 1
stock_inventory['plain_headband'] = 1
stock_inventory['golden_collar'] = 1
stock_inventory['leather_collar'] = 1
stock_inventory['spiked_collar'] = 1
stock_inventory['common_apron'] = 1
stock_inventory['maid_dress'] = 1
stock_inventory['enchanter_robe'] = 1
stock_inventory['laced_underwear'] = 1
stock_inventory['bellydance'] = 1
stock_inventory['anal_tail'] = 1
stock_inventory['exotic_wig'] = 1
stock_inventory['pony_plume'] = 1
stock_inventory['ponygirl_harness'] = 1
stock_inventory['cow_gear'] = 1
stock_inventory['high_heels'] = 1
stock_inventory['high_boots'] = 1
stock_inventory['hoofed_boots'] = 1

!Slave Equipped Gear
$stock['earrings'] = 'incrusted_earrings'
$stock['collar'] = 'golden_collar'
$stock['headband'] = 'exotic_wig'
$stock['gloves'] = 'laced_gloves'
$stock['nipplerings'] = 'nipple_chain'
$stock['clitring'] = 'incrusted_earrings'
$stock['boots'] = 'high_boots'
$stock['ring_left'] = 'incrusted_ring'
$stock['ring_right'] = 'incrusted_ring'
$stock['navel'] = 'heavy_gauge_rings'
$stock['tongue'] = 'barbells'

--- generate_stock_testing ---------------------------------


code:
# get_special_assistant
!special assistant activation

isabella_met = 1
special_stock = 2571 &! Isabella
gs 'generate_stock'
dynamic $swap_slave_instances, 'stock', 'assistant'

assistant['brand'] = 2 &! tattoo brand
assistant['neg_slave'] = 0

$assistant['cloth'] = 'leather_corset'
assistant['newness'] = 1

!Testing Code - crushboss
if cheat_i = 1: gs 'assistant_testing'
!End of Testing Code

--- get_special_assistant ---------------------------------


code:
# get_stock_seed
!Get Stock Seed
!Written by crushboss
!Gets slave data from slave.json files in the json folder

!Age
stock['age'] = seed_age[stock_type]

!Stats
stock['beauty'] = seed_beauty[stock_type]
stock['stamina'] = seed_stamina[stock_type]
stock['sensitivity'] = seed_sensitivity[stock_type]
stock['temper'] = seed_temper[stock_type]
stock['ego'] = seed_ego[stock_type]
stock['pride'] = seed_pride[stock_type]
stock['intellect'] = seed_intellect[stock_type]

stock['fat'] = seed_fat[stock_type]
stock['exotic'] = seed_exotic[stock_type]
stock['base_exotic'] = seed_exotic[stock_type]
stock_rate['fame'] = seed_fame_rate[stock_type]
stock['fertility'] = seed_fertility[stock_type]
stock['fertility_revealed'] = seed_fertility_revealed[stock_type]

stock['custom'] = seed_custom[stock_type]
stock['moral'] = seed_moral[stock_type]
stock['instinct'] = seed_instinct[stock_type]
stock['rational'] = seed_rational[stock_type]
stock['spoil'] = seed_spoil[stock_type]
stock['angst'] = seed_angst[stock_type]

!Obedience difficulty override (see #static_base)
stock['obedience_bonus'] = seed_obedience_bonus[stock_type]

!Skills
stock['service'] = seed_service[stock_type]
stock['cook'] = seed_cook[stock_type]
stock['secretary'] = seed_secretary[stock_type]
stock['expression'] = seed_expression[stock_type]
stock['nurse'] = seed_nurse[stock_type]
stock['alchemy'] = seed_alchemy[stock_type]
stock['enchanter'] = seed_enchanter[stock_type]
stock['gladiatrix'] = seed_gladiatrix[stock_type]
stock['calisthenics'] = seed_calisthenics[stock_type]
stock['music'] = seed_music[stock_type]
stock['art'] = seed_art[stock_type]
stock['pet'] = seed_pet[stock_type]
stock['cowSK'] = seed_cowSK[stock_type]
stock['dressage'] = seed_dressage[stock_type]

stock['sub_hj'] = seed_sub_hj[stock_type]
stock['sub_fj'] = seed_sub_fj[stock_type]
stock['sub_hug'] = seed_sub_hug[stock_type]
stock['sub_paizuri'] = seed_sub_paizuri[stock_type]
stock['sub_kiss'] = seed_sub_kiss[stock_type]
stock['sub_tongue'] = seed_sub_tongue[stock_type]
stock['sub_bj'] = seed_sub_bj[stock_type]
stock['sub_dt'] = seed_sub_dt[stock_type]
stock['sub_asslik'] = seed_sub_asslik[stock_type]
stock['sub_vaginal'] = seed_sub_vaginal[stock_type]
stock['sub_anal'] = seed_sub_anal[stock_type]
stock['sub_fisting'] = seed_sub_fisting[stock_type]
stock['anal_stretch']= seed_anal_stretch[stock_type]
stock['sub_seduce'] = seed_sub_seduce[stock_type]
stock['sub_masturbation'] = seed_sub_masturbation[stock_type]
stock['sub_dildo'] = seed_sub_dildo[stock_type]
stock['sub_exhibit'] = seed_sub_exhibit[stock_type]
stock['sub_humiliation'] = seed_sub_humiliation[stock_type]
stock['sub_enema'] = seed_sub_enema[stock_type]
stock['sub_mazo'] = seed_sub_mazo[stock_type]
stock['sub_selfpain'] = seed_sub_selfpain[stock_type]
stock['sub_piss'] = seed_sub_piss[stock_type]
stock['sub_kopro'] = seed_sub_kopro[stock_type]
stock['sub_threesome'] = seed_sub_threesome[stock_type]
stock['sub_dp'] = seed_sub_dp[stock_type]
stock['sub_tp'] = seed_sub_tp[stock_type]
stock['sub_gangbang'] = seed_sub_gangbang[stock_type]
stock['sub_bukkake'] = seed_sub_bukkake[stock_type]
stock['sub_zoosex'] = seed_sub_zoosex[stock_type]
stock['sub_bestiality'] = seed_sub_bestiality[stock_type]
stock['sub_horse'] = seed_sub_horse[stock_type]
stock['sub_tentacles'] = seed_sub_tentacles[stock_type]
stock['sub_arachnidspider'] = seed_sub_arachnidSpider[stock_type]
stock['sub_polypusvermin'] = seed_sub_polypusvermin[stock_type]

!Trait Affinities
stock['sport_affinity'] = seed_sport_affinity[stock_type]
stock['expression_affinity'] = seed_expression_affinity[stock_type]
stock['pet_affinity'] = seed_pet_affinity[stock_type]
stock['dressage_affinity'] = seed_dressage_affinity[stock_type]
stock['cowSK_affinity'] = seed_cowSK_affinity[stock_type]
stock['nurse_affinity'] = seed_nurse_affinity[stock_type]
stock['service_affinity'] = seed_service_affinity[stock_type]
stock['cook_affinity'] = seed_cook_affinity[stock_type]
stock['gladiatrix_affinity'] = seed_gladiatrix_affinity[stock_type]
stock['enchanter_affinity'] = seed_enchanter_affinity[stock_type]
stock['art_affinity'] = seed_art_affinity[stock_type]
stock['music_affinity'] = seed_music_affinity[stock_type]
stock['calisthenics_affinity'] = seed_calisthenics_affinity[stock_type]
stock['secretary_affinity'] = seed_secretary_affinity[stock_type]
stock['sport_affinity_revealed'] = seed_sport_affinity_revealed[stock_type]
stock['expression_affinity_revealed'] = seed_expression_affinity_revealed[stock_type]
stock['pet_affinity_revealed'] = seed_pet_affinity_revealed[stock_type]
stock['dressage_affinity_revealed'] = seed_dressage_affinity_revealed[stock_type]
stock['cowSK_affinity_revealed'] = seed_cowSK_affinity_revealed[stock_type]
stock['nurse_affinity_revealed'] = seed_nurse_affinity_revealed[stock_type]
stock['service_affinity_revealed'] = seed_service_affinity_revealed[stock_type]
stock['cook_affinity_revealed'] = seed_cook_affinity_revealed[stock_type]
stock['gladiatrix_affinity_revealed'] = seed_gladiatrix_affinity_revealed[stock_type]
stock['enchanter_affinity_revealed'] = seed_enchanter_affinity_revealed[stock_type]
stock['art_affinity_revealed'] = seed_art_affinity_revealed[stock_type]
stock['music_affinity_revealed'] = seed_music_affinity_revealed[stock_type]
stock['calisthenics_affinity_revealed'] = seed_calisthenics_affinity_revealed[stock_type]
stock['secretary_affinity_revealed'] = seed_secretary_affinity_revealed[stock_type]

!Traits Specials
stock['metabolism'] = seed_metabolism[stock_type]
stock['metabolism_revealed'] = seed_metabolism_revealed[stock_type]

stock['memory'] = seed_memory[stock_type]
stock['memory_revealed'] = seed_memory_revealed[stock_type]

stock['meekness'] = seed_meekness[stock_type]
stock['meekness_revealed'] = seed_meekness_revealed[stock_type]

stock['selfesteem'] = seed_selfesteem[stock_type]
stock['selfesteem_revealed'] = seed_selfesteem_revealed[stock_type]

stock['dexterity'] = seed_dexterity[stock_type]
stock['dexterity_revealed'] = seed_dexterity_revealed[stock_type]

stock['compassion'] = seed_compassion[stock_type]
stock['compassion_revealed'] = seed_compassion_revealed[stock_type]

stock['courage'] = seed_courage[stock_type]
stock['courage_revealed'] = seed_courage_revealed[stock_type]

stock['grace'] = seed_grace[stock_type]
stock['grace_revealed'] = seed_grace_revealed[stock_type]

stock['nymphomania'] = seed_nymphomania[stock_type]
stock['nymphomania_revealed'] = seed_nymphomania_revealed[stock_type]

stock['exhibitionism'] = seed_exhibitionism[stock_type]
stock['exhibitionism_revealed'] = seed_exhibitionism_revealed[stock_type]

stock['perversion'] = seed_perversion[stock_type]
stock['perversion_revealed'] = seed_perversion_revealed[stock_type]

stock['masochism'] = seed_masochism[stock_type]
stock['masochism_revealed'] = seed_masochism_revealed[stock_type]

stock['homosexualism'] = seed_homosexualism[stock_type]
stock['homosexualism_revealed'] = seed_homosexualism_revealed[stock_type]

stock['abuse_attitude'] = seed_abuse_attitude[stock_type]
stock['abuse_attitude_revealed'] = seed_abuse_attitude_revealed[stock_type]

stock['blood_attitude'] = seed_blood_attitude[stock_type]
stock['blood_attitude_revealed'] = seed_blood_attitude_revealed[stock_type]

stock['darkness_attitude'] = seed_darkness_attitude[stock_type]
stock['darkness_attitude_revealed'] = seed_darkness_attitude_revealed[stock_type]

stock['fire_attitude'] = seed_fire_attitude[stock_type]
stock['fire_attitude_revealed'] = seed_fire_attitude_revealed[stock_type]

stock['water_attitude'] = seed_water_attitude[stock_type]
stock['water_attitude_revealed'] = seed_water_attitude_revealed[stock_type]

stock['vermin_attitude'] = seed_vermin_attitude[stock_type]
stock['vermin_attitude_revealed'] = seed_vermin_attitude_revealed[stock_type]

stock['passion_fame'] = seed_passion_fame[stock_type]
stock['passion_fame_revealed'] = seed_passion_fame_revealed[stock_type]

stock['passion_sweets'] = seed_passion_sweets[stock_type]
stock['passion_sweets_revealed'] = seed_passion_sweets_revealed[stock_type]

stock['passion_comfort'] = seed_passion_comfort[stock_type]
stock['passion_comfort_revealed'] = seed_passion_comfort_revealed[stock_type]

stock['passion_luxury'] = seed_passion_luxury[stock_type]
stock['passion_luxury_revealed'] = seed_passion_luxury_revealed[stock_type]

!Illness, Parasite, Scars, Bruises, Starvation
stock['ill'] = seed_ill[stock_type]
stock['parasite'] = seed_parasite[stock_type]
stock['scars'] = seed_scars[stock_type]
stock['bruises'] = seed_bruises[stock_type]
stock['starvation'] = seed_starvation[stock_type]

!Anatomy
stock['boobs'] = seed_boobs[stock_type]
stock['virginity'] = seed_virginity[stock_type]
$stock['boobs_img'] = $seed_boobs_img[stock_type]
$stock['pussy_img'] = $seed_pussy_img[stock_type]

!BACKGROUND
$stock_name = $seed_name[stock_type]
$stock_psy_basic = $seed_psy_basic[stock_type]
$stock_world_description = $seed_world_description[stock_type]
$stock_family_description = $seed_family_description[stock_type]
$stock_occupation_description = $seed_occupation_description[stock_type]

!Images
$stock['fullimage'] = $fullimage[stock_type]
$stock['ava'] = $seed_ava[stock_type]
$stock['ava_gray'] = $seed_ava_gray[stock_type]
$stock['ava_clear'] = $seed_ava_clear[stock_type]

!Equipment
$stock['wpn'] = 'безоружный'
$stock['armor'] = 'без_брони'
$stock['scnd'] = ''

$stock['back_wpn'] = ''
$stock['left_wpn'] = ''
$stock['right_wpn'] = ''
$stock['arm_wpn'] = ''
$stock['leg_wpn'] = ''

$stock['cloth'] = 'голая'

stock['newness'] = 10

--- get_stock_seed ---------------------------------


code:
# guild
if expert_give_slave = 1:
	expert_give_slave = 0
	gs 'expert_to_slave'
end

!SLAVERS GUILD
gs '_layout'
gs '$slave_price'
npc = 0
$place = 'guild_hall'
$text_display = '
'

if sp_txt = 1:
	func('$menu', '===BEGIN===', 'column_0')
	if contract['active'] = 1: func('$menu', 'interaction_city', $menu_item_close_contract, menu_close_contract, 'Turn in Contract/ANGELIKA')
	if contract['active'] = 2: func('$menu', 'location_gray', $menu_item_close_contract_gray, empty, 'Turn in Contract/ANGELIKA')
	if contract['active'] = 0 and slave_state ! CONST_INT['no_slave']: func('$menu', 'interaction_city', $menu_item_contract_work, menu_contract_work, 'Contract Work')
	if contract['active'] = 0 and slave_state = CONST_INT['no_slave']: func('$menu', 'exec_options', $menu_item_contract_list, 'sp_txt = 2 & gt $curloc', 'Contract List')
	if slave_state = CONST_INT['slave_exist'] and slave['brand'] > 0:
		func('$menu', 'interaction_city', $menu_item_subpurchaser, menu_subpurchaser, 'Talk to Subpurchaser')
	else
		func('$menu', 'location_gray_tooltip', $menu_item_subpurchaser_gray, empty, 'Talk to Subpurchaser', 'You do not have a branded slave to offer')
	end
	func('$menu', 'interaction_city', $menu_item_Talk_expert, menu_Talk_expert, 'Talk to Expert')
	if auction_count = 0:
		if slave_state = CONST_INT['slave_exist'] and slave['brand'] > 0 and rating > 0:
			func('$menu', 'interaction_city', $menu_item_Auction_slaves, menu_Auction_slaves, 'Auction of Branded Slaves')
		else
			func('$menu', 'location_gray_tooltip', $menu_item_Auction_slaves_gray, empty, 'Auction of Branded Slaves', 'You do not have a trained, branded slave to offer')
		end
	else
		func('$menu', 'location_gray', $menu_item_Auction_slaves_gray, empty, 'Days to Auction: <<auction_count>>')
	end

	if is_gangbang > 0:
		func('$menu', 'interaction_city', $menu_item_gangbang, menu_guild_gangbang, 'Group Training ')
	elseif is_gangbang = 0:
		func('$menu', 'location_gray', $menu_item_gangbang_gray, empty, 'No Training Sessions Today')
	else
		func('$menu', 'location_gray', $menu_item_gangbang_gray, empty, 'Group Training Finished')
	end

	func('$menu', 'city_form', $menu_item_Leaveguild, menu_Leaveguild, 'Leave')
	func('$menu', '===END===')
end

if sp_txt = 2:
	gs '$calculate_attributes' &! updates master attributes so that if guild reputation rose after an auction or turning in a contract, it will be reflected when trying to take a new contract
	func('$menu', 'spacer', 1)
	func('$menu', '===BEGIN===', 'column_0')
	if guild_reputation >= 0 and contract['active'] = 0 and slave_state = CONST_INT['no_slave']: func('$menu', 'interaction_city', $menu_item_D1_rank, menu_D1_rank, 'Contract work - D- rank')
	if guild_reputation >= 1 and contract['active'] = 0 and slave_state = CONST_INT['no_slave']: func('$menu', 'interaction_city', $menu_item_D2_rank, menu_D2_rank, 'Contract work - D+ rank')
	if guild_reputation >= 2 and contract['active'] = 0 and slave_state = CONST_INT['no_slave']: func('$menu', 'interaction_city', $menu_item_C1_rank, menu_C1_rank, 'Contract work - C- rank')
	if guild_reputation >= 2 and contract['active'] = 0 and slave_state = CONST_INT['no_slave']: func('$menu', 'interaction_city', $menu_item_C2_rank, menu_C2_rank, 'Contract work - C+ rank')
	if guild_reputation >= 3 and contract['active'] = 0 and slave_state = CONST_INT['no_slave']: func('$menu', 'interaction_city', $menu_item_B1_rank, menu_B1_rank, 'Contract work - B- rank')
	func('$menu', 'exec_options', $menu_item_Contracts_back, 'sp_txt = 1 & gt $curloc', 'Back')
	func('$menu', '===END===')
	func('$menu', '===BEGIN===', 'column_1')
	if guild_reputation >= 3 and contract['active'] = 0 and slave_state = CONST_INT['no_slave']: func('$menu', 'interaction_city', $menu_item_B2_rank, menu_B2_rank, 'Contract work - B+ rank')
	if guild_reputation >= 4 and contract['active'] = 0 and slave_state = CONST_INT['no_slave']: func('$menu', 'interaction_city', $menu_item_A1_rank, menu_A1_rank, 'Contract work - A- rank')
	if guild_reputation >= 4 and contract['active'] = 0 and slave_state = CONST_INT['no_slave']: func('$menu', 'interaction_city', $menu_item_A2_rank, menu_A2_rank, 'Contract work - A+ rank')
	if guild_reputation >= 5 and contract['active'] = 0 and slave_state = CONST_INT['no_slave']: func('$menu', 'interaction_city', $menu_item_S1_rank, menu_S1_rank, 'Contract work - S- rank')
	if guild_reputation >= 5 and contract['active'] = 0 and slave_state = CONST_INT['no_slave']: func('$menu', 'interaction_city', $menu_item_S2_rank, menu_S2_rank, 'Contract work - S+ rank')
	func('$menu', '===END===')
end

$text[txt] = $guild[sp_txt]

*p '
<img src="content\pic\bg\<<$bg[$place]>>.png">
'
*p '
<<$text[txt]>>
'
*p '
<<$text_display>>
'

if npc = 0:
	$info_bar = ''
	*p '

<<$place_name[$place]>>
<<$place_location[$place]>>
'
	*nl 'Information for consideration:
'
	*p '
<<$place_info[$place]>>
'
else
	$info_bar = ''
	*p '

<<$npc_name[$npc_id]>>
<<$npc_status[$npc_id]>>
'
	*nl 'Information for consideration:
'
	*p '
<<$npc_attitude[npc_attitude[$npc_id]]>>'
	*nl '<<$npc_info[$npc_id]>>
'
end

if sound_on = 1 and $play_sound[txt] ! '': play 'content\snd\<<$play_sound[txt]>>.wav', sound_volume
if $play_sound[txt] ! '': $play_sound[txt] = ''

--- guild ---------------------------------


code:
# guild_board
!BILLBOARDS IN SLAVERS GUILD
$place = 'guild_board'
txt_count = notes_count
$text_display = $guild_board[txt]
$text[txt] = ''

*p '

'
*p '
<<$text[txt]>>
'
*p '
<<$text_display>>
'
*p '

'

if npc = 0:
	$info_bar = ''
	*p '

<<$place_name[$place]>>
<<$place_location[$place]>>
'
	*nl 'Information for consideration:
'
	*p '
<<$place_info[$place]>>
'
else
	$info_bar = ''
	if nsfw = 0 and $npc_image[$npc_id] ! '': *p '
<img src="content\pic\characters\<<$npc_image[$npc_id]>>.png">
'
	*p '

<<$npc_name[$npc_id]>>
<<$npc_status[$npc_id]>>
'
	*nl 'Information for consideration:
'
	*p '
<<$npc_attitude[npc_attitude[$npc_id]]>>'
	*nl '<<$npc_info[$npc_id]>>
'
end

if slave_state = CONST_INT['no_slave'] and contract['time'] = 0:
	*p '

'
else
	*p '

'
end

if txt > 1:
	addobj ''
else
	addobj ''
end
addobj ''

--- guild_board ---------------------------------


code:
# hard_return
!Hard return - Easy Game Difficulty - get_initial_slave
!Overhauled by crushboss
!Return through the extra location for the benefit of proper display characteristics
sbros = 1

if get_initial_slave = 1:
	slave['base_beauty'] = rand(2,5)
	slave_rate['beauty'] = cont_atr_threshold[slave['base_beauty']]
	slave['sensitivity'] = rand(3,5)
	slave['intellect'] = rand(3,5)
	slave['pride'] = 0
	slave['ego'] = rand(3,4)
	slave['stamina'] = 5
	slave['temper'] = rand(3,4)
	slave['custom'] = 5
	slave['instinct'] = 5
	slave['rational'] = 5
	slave['moral'] = 5
	slave['cook'] = rand(3,5)
	slave['secretary'] = rand(3,5)
	slave['expression'] = rand(3,5)
	slave['service'] = rand(3,5)
	slave['nurse'] = rand(3,5)

	slave['sub_hj'] += rand(1,4)
	slave['sub_fj'] += rand(1,4)
	slave['sub_hug'] += rand(1,4)
	slave['sub_paizuri'] += rand(1,4)
	slave['sub_kiss'] += rand(1,4)
	slave['sub_tongue'] += rand(1,4)
	slave['sub_bj'] += rand(1,4)
	slave['sub_dt'] += rand(1,4)
	slave['sub_asslik'] += rand(1,4)
	slave['sub_seduce'] += rand(1,4)
	slave['sub_masturbation'] += rand(1,4)
	slave['sub_exhibit'] += rand(1,4)
	slave['sub_humiliation'] += rand(1,4)

	slave['age_count'] = 100
	slave['neg_slave'] = 0
	slave['parasite'] = 0
	slave['pregnant'] = 0
	slave['fear'] = 0
	slave['angst'] = 0
	slave['spoil'] = 0
	slave['arousal'] = 3
	slave['ill'] = 0
	slave['issues'] = 0
	slave['scars'] = 0
	slave['bruises'] = 0
	slave_rate['scars'] = 0
	slave_rate['bruises'] = 0
	slave['energy'] = 5

	slave['grace'] = rand(0,1)
	slave['dexterity'] = rand(0,1)
	slave['homosexualism'] = rand(0,1)
	slave['nurse_affinity'] = rand(0,1)
	slave['service_affinity'] = rand(0,1)
	slave['cook_affinity'] = rand(0,1)
	slave['art_affinity'] = rand(0,1)
	slave['calisthenics_affinity'] = rand(0,1)
	slave['nymphomania'] = 0

	slave['brand'] = 2
	slave['fat'] = rand(1,3)
	slave['metabolism'] = rand(3,5)
	if slave['virginity'] <= 0:
		a = rand(1,20)
		if a > 10: slave['virginity'] = 2
		a = 0
	end
	if slave['virginity'] <= 0:
		slave['ill'] = 0
		slave['parasite'] = 0
		slave['pregnant'] = 0
		slave['sub_vaginal'] = 0
		slave['sub_vaginal_xp'] = 0
		slave['sub_fisting'] = 0
		slave['sub_fisting_xp'] = 0
		slave['sub_threesome'] = 0
		slave['sub_threesome_xp'] = 0
		slave['sub_dp'] = 0
		slave['sub_dp_xp'] = 0
		slave['sub_tp'] = 0
		slave['sub_tp_xp'] = 0
		slave['sub_gangbang'] = 0
		slave['sub_gangbang_xp'] = 0
		slave['sub_bukkake'] = 0
		slave['sub_bukkake_xp'] = 0
		slave['sub_anal'] = 0
		slave['sub_anal_xp'] = 0
		slave['anal_stretch'] = 0
		slave['sub_zoosex'] = 0
		slave['sub_zoosex_xp'] = 0
		slave['sub_bestiality'] = 0
		slave['sub_bestiality_xp'] = 0
		slave['sub_horse'] = 0
		slave['sub_horse_xp'] = 0
		slave['sub_tentacles'] = 0
		slave['sub_tentacles_xp'] = 0
		slave['sub_arachnidspider'] = 0
		slave['sub_arachnidspider_xp'] = 0
		slave['sub_polypusvermin'] = 0
		slave['sub_polypusvermin_xp'] = 0
	else
		slave['sub_anal'] += rand(1,4)
		slave['anal_stretch'] = slave['sub_anal']
		slave['sub_vaginal'] += rand(1,4)
		slave['sub_fisting'] += rand(1,4)
		!slave['sub_threesome'] += rand(1,4)
		!slave['sub_dp'] += rand(1,4)
		!slave['sub_tp'] += rand(1,4)
		!slave['sub_gangbang'] += rand(1,4)
	end

	!Slave Piercings
	slave['nipple_piercing'] = 1
	slave['clit_piercing'] = 1
	slave['ear_piercing'] = 1
	slave['tongue_piercing'] = 1
	slave['belly_piercing'] = 1
	slave['nostril_piercing'] = 1
	slave['nose_piercing'] = 1
	slave['tongue_split'] = 1
	slave['scarification'] = 1

	!Slave Clothing Inventory
	slave_inventory['common_apron'] = 1
	slave_inventory['maid_dress'] = 1
	slave_inventory['nurse_dress'] = 1
	slave_inventory['enchanter_robe'] = 1
	slave_inventory['leotard'] = 1
	slave_inventory['chainmail_bikini'] = 1
	slave_inventory['bellydance'] = 1
	slave_inventory['leather_corset'] = 1
	slave_inventory['anal_tail'] = 1
	slave_inventory['exotic_wig'] = 1
	slave_inventory['pony_plume'] = 1
	slave_inventory['golden_collar'] = 1
	slave_inventory['leather_gloves'] = 1
	slave_inventory['ponygirl_harness'] = 1
	slave_inventory['high_heels'] = 1
	slave_inventory['high_boots'] = 1
	slave_inventory['hoofed_boots'] = 1

	!Slave Makeup and Tattoos
	if slave['age'] ! CONST_INT['loli_age']: slave['makeup'] = 3
	slave['fiend_tattoo'] = 1
	slave['tattoo'] = 5
	!APPLY EXOTICISM RATE FOR TATTOOS
	if slave['tattoo'] > 0: slave_rate['exotic'] += 3
	if slave['tattoo'] > 1: slave_rate['exotic'] += 2
	if slave['tattoo'] > 2: slave_rate['exotic'] += 8
	if slave['tattoo'] > 3: slave_rate['exotic'] += 14
	if slave['tattoo'] > 4: slave_rate['exotic'] += 13
	slave['manicure'] = 5
	slave['perfume'] = 1
	slave['hygiene'] = 0
	slave_rate['hygiene'] = 0
	slave['epilation'] = 12
	slave['hairstyle'] = 7
	slave['pos_gentle'] = 2
	slave['pos_slave_clean'] = 1

	!Slave Equipped Gear
	$slave['cloth'] = 'laced_underwear'
	$slave['earrings'] = 'incrusted_earrings'
	$slave['gloves'] = 'laced_gloves'
	$slave['nipplerings'] = 'nipple_chain'
	$slave['clitring'] = 'incrusted_earrings'
	$slave['boots'] = 'high_boots'
	$slave['ring_left'] = 'incrusted_ring'
	$slave['ring_right'] = 'incrusted_ring'

	!Weapon and Armor Inventory
	плейт = 2
	бастард = 2
	катана = 2
	кинжал = 2
	стилет = 2
	тесак = 2
	фламберг = 2
	нагината = 2

	!Master Clothing Inventory
	regal_suit = 1
	formal_suit = 1
	aketon = 1
	livery = 1
	medic_robes = 1
	wizard_robes = 1

	!Extended Rental
	if $estate ! 'slum_house':
		lab = 1
		dungeon = 1
		barn = 1
		bath = 1
		kitchen = 1
		pen = 1
		arachnidSpider = 1
		polypusvermin = 1
	end

	!Master fridge Inventory
	fridge['vegetables'] = 10
	fridge['grain'] = 10
	fridge['spice'] = 10
	fridge['cheese'] = 10
	fridge['eggs'] = 10
	fridge['milk'] = 10
	fridge['cream'] = 10
	fridge['mince'] = 10
	fridge['meat'] = 20
	fridge['alcohol'] = 20
	spawn_semen = 120

	!Lab Inventory
	lab_store['slime'] = 5
	lab_store['kanabis'] = 5
	lab_store['koffe'] = 5
	lab_store['meth'] = 5
	lab_store['opium'] = 5

	!BSDM Inventory
	inventory['deprivation_suit'] = 1
	inventory['vaginal_balls'] = 1
	inventory['anal_plug'] = 1
	inventory['secure_gag'] = 1
	inventory['chastity_belt'] = 1
	inventory['pissuar_stable'] = 1
	inventory['toilet_stable'] = 1
	inventory['stethoscope'] = 1
	vibrator = 1

	noble_status = 1
	npc_reveal['realtor'] = 1
	active[$quest[3]] = 0
	faction_fame['neutral'] = 1
	faction_fame['taurus'] = 1
	faction_fame['serpis'] = 1
	faction_fame['korvus'] = 1
	faction_fame['kamira'] = 1

	!Master equipped inventory
	$master_wpn = 'бастард' &! bastard sword
	$master_scnd = ''
	$master_cloth = 'aketon'
	$master_armor = 'плейт' &! gothic plate
	$master_back_wpn = 'грейтекс' &! greataxe
	$master_left_wpn = 'демократизатор' &! baton
	$master_right_wpn = 'бастард' &! bastard sword
	$master_arm_wpn = 'нагайка' &! lash
	$master_leg_wpn = 'кинжал' &! dagger

	gs 'new_estate'

	!Extended Rental
	if $estate ! 'slum_house':
		lab = 1
		dungeon = 1
		barn = 1
		bath = 1
		kitchen = 1
		pen = 1
		arachnidSpider = 1
		polypusvermin = 1
	end

	if $estate = 'slum_house': $interior = 'slum_house'
	if $estate = 'kamira_house': $interior = 'basic'
	if $estate = 'serpis_house': $interior = 'econom'
	if $estate = 'taurus_house': $interior = 'fort'
	if $estate = 'korvus_house': $interior = 'gothic'
	if $estate = 'white_house': $interior = 'elite'

	gs 'slave_to_assistant'
end

gt $return_lock

--- hard_return ---------------------------------