:: fame_macros[widget]
<<widget 'fame'>>
	<<set [_fameLocation, _fameType, _fameMagnitude] = _args>>

	<<set _currentFame = $pc.fame(_fameLocation,_fameType)>>
	<<run $pc.fameInc(_fameLocation, _fameType, _fameMagnitude)>>
	<<set _newFame = $pc.fame(_fameLocation,_fameType)>>
	<<set _effectiveChange = _newFame - _currentFame>>

	<<set _fameStyleClass = 'fame'>>
	<<set _fameDesc = ''>>

	<<switch _fameLocation>>
		<<case 'city'>>
			<<set _fameLocationOutput = 'St. Petersburg'>>
		<<case 'pav'>>
			<<set _fameLocationOutput = 'Pavlovsk'>>
		<<default>>
			<<set _fameLocationOutput = _fameLocation.toUpperFirst()>>
	<</switch>>

	<<switch _fameType>>
		<<case 'sex'>>
			<<set _fameTypeOutput = 'Sex'>>
			<<set _fameStyleClass += ' sex'>>
			<<set _fameDesc = 'Your sex reputation represents how people think about your sexual openness. A higher value will result in people viewing and treating you like a slut.'>>
		<<default>>
			<<set _fameTypeOutput = _fameType.toUpperFirst()>>
	<</switch>>


	<div @class="_fameStyleClass">
		<span class="effect"><<if _effectiveChange > 0>>+<</if>>_effectiveChange → _newFame</span>
		<span class="title">
			_fameTypeOutput in _fameLocationOutput
		</span>
		<span class="description">_fameDesc</span>
		<span class="symbols">
					<<textWithTooltip "✨">>
						<h3>Fame</h3>
						This is a fame-effect.
						<p>The most straight-forward way to acquire fame is to perform corresponding actions while getting noticed by others.</p>
						<p>Some types of fame can be acquired by making claims. For example, you will get fame as a slut by claiming to be one.</p>
						<p>The impact of actions decreases with an increasing amount of accumulated fame. Small actions won't have any effect if you are already well-known.</p>
						<p>You can lower your fame by performing opposing actions. For example, you can decrease your fame as a slut by praying at the church.</p>
						<p>Also, your fame will decrease over time.</p>
					<</textWithTooltip>>
		</span>
	</div>
<</widget>>

:: testFame[event]
<<fame 'pav' 'sex' 'huge'>>
<<fame 'pav' 'sex' 'huge'>>
<<fame 'pav' 'sex' 'huge'>>