:: Widgets Cafe [widget]
<<widget "eventschef">><<nobr>>

<<if $rng gte 81>>
<<generatey1>><<person1>>
You hear the back door squeak.
	<<if random(1, 1000) gte $skulduggery>>
	You turn to look, <span class="red">but don't see anything out of the ordinary.</span>
	<br><br>
<<endevent>>

<<chefwork>>
	<<else>>
	Trying to be inconspicuous, you glance over. At first nothing appears out of the ordinary. <span class="green">Then you spot a hand reach up from beneath a table,</span> and snatch one of the buns.
	<br><br>
		<<link [[Intervene|Chef Thief Intervene]]>><</link>><br>
		<<link [[Ignore|Chef Thief Ignore]]>><</link>><br>
	<</if>>
<<elseif $rng gte 61>>
<<generate1>><<person1>>
<<npc Sam>><<person1>>Sam comes in to check on you. You end up chatting for several minutes, before a shatter in the main room steals <<his>> attention.<<lstress>><<stress -6>><<ltrauma>><<trauma -6>>
<br><br>

<<endevent>>

<<chefwork>>

<<elseif $rng gte 41>>
<<generate1>><<person1>>
The back door opens. A <<person>> enters, ass first, carrying a large sack of flour. <<He>> places it on the ground, then fishes a notepad out of <<his>> pocket. "Mind signing this?" <<he>> says, holding it out.
<br><br>

	<<if random(1, 100) gte 61>>
		You reach out to sign, and <<he>> grabs your arm. <<He>> tugs you closer.
		<br><br>
		
		<<link [[Next|Chef Work Rape]]>><<set $molestationstart to 1>>>><</link>>
		<br>
	<<else>>
		You sign the paper. <<He>> thanks you and leaves the way <<he>> came.
		<br><br>
		
		<<endevent>>
		
		<<chefwork>>
	<</if>>

<<elseif $rng gte 21>>
	<<if random(1, 100) gte 51 and !$worn.upper.type.includes("naked")>>
		<<if $worn.upper.type.includes("naked")>>
			Your $worn.upper.name snags on a corner. It's made for such kitchen mishaps however, <span class="green">and remains sturdy.</span>
			<br><br>
		<<else>>
			<<set $worn.upper.integrity -= 5>>
			Your $worn.upper.name snags on a corner, tearing it.
			<br><br>
			<<if $worn.upper.integrity lte 0>>
				<span class="red">The worn fabric falls to pieces around you.</span>
				<<integritycheck>><<exposure>>
				<<if $exposed gte 1>>
					You cover up with a towel.<<towelup>>
				<</if>>
			<</if>>
			<br><br>		
		<</if>>
	<<else>>
		<<if $worn.lower.type.includes("naked")>>
			Your $worn.lower.name snags on a corner. It's made for such kitchen mishaps however, <span class="green">and remains sturdy.</span>
			<br><br>
		<<else>>
			<<set $worn.lower.integrity -= 5>>
			Your $worn.lower.name snags on a corner, tearing it.
			<br><br>
			<<if $worn.lower.integrity lte 0>>
				<span class="red">The worn fabric falls to pieces around you.</span>
				<<integritycheck>><<exposure>>
				<<if $exposed gte 1>>
					You cover up with a towel.<<towelup>>
				<</if>>
			<</if>>
			<br><br>		
		<</if>>
	<</if>>
	
<<chefwork>>

<<elseif $rng gte 11>>
	<<if $NPCName[$NPCNameList.indexOf("Sam")].love gte 30>>
		You spill a little. Sam appears, as if sensing the mistake, and cleans it up for you.
	<<else>>
		You spill a little, and have to divert attention to cleaning it up.<<gstress>><<stress 6>>
	<</if>>
	<br><br>
	
	<<chefwork>>	
<<else>>
	Getting the consistency right is a little troublesome, but you manage to balance the ingredients properly.
	<br><br>
	
	<<chefwork>>
<</if>>

<</nobr>><</widget>>

<<widget "chefwork">><<nobr>>

The dough prepared and in the oven, it's time to make the cream.
<br><br>

<<if $chef_job is "special">>
<<link [[Next|Chef Work Masturbation]]>><<set $masturbationstart to 1>><</link>>
<br>
<<else>>
<<link [[Next|Chef Work Regular]]>><</link>>
<br>
<</if>>

<</nobr>><</widget>>

<<widget "sellbuns">><<nobr>>
<<set _bun_money to (1000 + (($bun_value * $bun_cut) * _buns_sold))>>
Buns sold: _buns_sold<br>
Bun Value: £<<print ($bun_value / 100)>><br>
Your cut: <<print ($bun_cut * 100)>>%<br>
Labour value: £10<br>
Total earned: <span class="gold">£<<print (_bun_money / 100)>></span>
<<set $money += _bun_money>>
<<set $bunstat += _buns_sold>>
<br>
Suspicion:
<div class="meter">
	<<set $percent=Math.floor(($chef_sus / 100)*100)>>
	<<print '<div class="redbar" style="width:' + $percent + '%"></div>'>>
</div>
<br><br>
<<if $images is 1>>
	<<for _i to 0; _i lt _buns_sold; _i++>>
	<img id="icon" src="img/misc/icon/food_creambun.png">
	<</for>>
<br><br>
<</if>>


<</nobr>><</widget>>