{{#unless isBypassed}}
{{/unless}}
{{localize 'CoC7.DailyLoss'}}: {{actor.dailySanLoss}}
{{localize 'CoC7.Sanity'}}: {{actor.san}}/{{actor.sanMax}}
{{#if sanLossReasonEncountered}}
{{localize 'CoC7.AlreadyEncounteredInformation' reason=sanData.sanReason lost=sanLostToReason max=maxSanLoss}}
{{/if}}
{{localize 'CoC7.MaxPossibleSanLoss'}}: {{maxPossibleSanLoss}}
{{#if state.sanRolled}}
{{#if sanCheck.failed}}
{{localize 'CoC7.CheckFailed'}}
{{localize 'CoC7.InvoluntaryAction'}} {{#if state.involuntaryActionPerformed}}{{/if}}
{{else}}
{{localize 'CoC7.CheckPassed'}}
{{/if}}
{{#if state.sanLossRolled}}
{{ localize 'CoC7.SANLoss' }}: {{sanLoss}} {{#if state.sanLossApplied}}{{/if}}
{{/if}}
{{/if}}
{{#if state.insanity}}
{{localize 'CoC7.InsanityName'}}
{{/if}}
{{#if state.sane}}
{{localize 'CoC7.Sane'}}
{{/if}}
{{#if state.memoryRepressed}}
{{localize 'CoC7.CheckMemoryRepressed'}}
{{/if}}
{{#if state.inSanity}}
{{localize 'CoC7.InsanityName'}}
{{/if}}
{{#if state.temporaryInsane}}
{{localize 'CoC7.TemporaryInsanity'}}
{{/if}}
{{#if state.indefinitelyInsane}}
{{localize 'CoC7.IndefiniteInsanity'}}
{{/if}}
{{#if state.definitelyInsane}}
{{localize 'CoC7.DefinitelyInsane'}}
{{/if}}
{{#if state.finish}}
{{localize 'CoC7.FINISH'}}
{{/if}}
{{#if state.sanRolled}}
{{ localize 'CoC7.SanityCheckPerformed' }} {{#unless isBypassed}} {{{__inlineSanCheck}}} {{/unless}}
{{#if state.involuntaryActionPerformed}}
{{#unless sanCheck.passed}}
{{ localize 'CoC7.InvoluntaryActionPerformed' }}
{{/unless}}
{{#if state.sanLossRolled}}
{{#if state.sanLossApplied}}
{{#if state.actorLostSan}}
{{ localize 'CoC7.SanityLost' }}:
{{#if __inlineSanLossRoll}}
{{{__inlineSanLossRoll}}}
{{else}}
{{originalSanLoss}}
{{/if}}
{{#if state.limitedLossToCreature}}
{{ localize 'CoC7.GrowingAccustomedToAwfulness' }}: {{preHardenedSanLoss}}
{{/if}}
{{#if actor.useMythosHardened}}
{{ localize 'CoC7.BackgroundFlagsMythosHardened' }}: {{preHardenedSanLoss}} / 2 = {{sanLoss}}
{{/if}}
{{else}}
{{#if state.immuneAlreadyInBout}}
{{ localize 'CoC7.AlreadyInABout' }}
{{/if}}
{{#if state.immuneToCreature}}
{{ localize 'CoC7.ImmuneToAwfulness' }}
{{/if}}
{{/if}}
{{#if state.intRolled}}
{{#if state.memoryRepressed}}
{{{__inlineIntCheck}}} {{ localize 'CoC7.MemoryRepressed' }}
{{/if}}
{{#if state.temporaryInsane}}
{{{__inlineIntCheck}}} {{ localize 'CoC7.RememberEverything' }}
{{/if}}
{{#if state.insanity}}
{{#unless state.boutOfMadnessOver}}
{{ localize 'CoC7.EnteringBoutOfMadness' }}{{#if (and state.boutOfMadnessResolved actor.getTempoInsaneDurationText)}} ({{actor.getTempoInsaneDurationText}}){{/if}}
{{/unless}}
{{#if state.permanentlyInsane}}
{{ localize 'CoC7.GoodForAsylum' }}
{{/if}}
{{#if state.boutOfMadnessResolved}}
{{#if boutResult.phobia}}
{{ localize 'CoC7.PhobiaGained' }}: {{boutResult.name}}
{{/if}}
{{#if boutResult.mania}}
{{ localize 'CoC7.ManiaGained' }}: {{boutResult.name}}
{{/if}}
{{#if state.boutOfMadnessOver}}
{{ localize 'CoC7.BoutOfMadnesslasted' }} {{boutDuration}} {{#if boutRealTime}}{{ localize 'CoC7.rounds'}}{{/if}}{{#if boutSummary}}{{ localize 'CoC7.hours'}}{{/if}}
{{#if state.indefinitelyInsane}}
{{ localize 'CoC7.IndefinitelyInsane' }}
{{/if}}
{{#if state.temporaryInsane}}
{{ localize 'CoC7.TemporaryInsane' }}
{{/if}}
{{/if}}
{{/if}}
{{else}}
{{/if}}
{{else}}
{{/if}}
{{/if}}
{{else}}
{{/if}}
{{/if}}
{{else}}
{{#if state.permanentlyInsane}}
{{ localize 'CoC7.PlayerPermanentlyInsane' }}
{{else}}
{{/if}}
{{/if}}
{{#if state.cthulhuMythosAwarded}}
{{youGainCthulhuMythosString}}
{{/if}}
{{#if state.alreadyInsane}}
{{ localize 'CoC7.AlreadyUnderlyingInsanity'}}
{{/if}}
{{#if state.boutOfMadnessResolved}}
{{#if boutResult.phobia}}
{{ localize 'CoC7.InvestigatorPhobiaGained'}}
{{/if}}
{{#if boutResult.mania}}
{{/if}}
{{{boutResult.description}}}
{{#unless state.boutOfMadnessOver}}
{{/unless}}
{{/if}}
{{#if state.insanity}}
{{#if state.permanentlyInsane}}
{{ localize 'CoC7.PlayerPermanentlyInsane'}}
{{else}}
{{#unless state.boutOfMadnessResolved}}
{{/unless}}
{{/if}}
{{/if}}
{{#if sanCheck.failed}}
{{#unless state.involuntaryActionPerformed}}
{{/unless}}
{{/if}}
{{#if state.sanLossRolled}}
{{#unless state.sanLossApplied}}
{{/unless}}
{{/if}}
{{#if actor.hasTempoInsane}}
{{ localize 'CoC7.BoutActive'}}
{{/if}}
{{#if actor.useMythosHardened}}
{{ localize 'CoC7.BackgroundFlagsMythosHardened'}}
{{/if}}
{{#if sanData.sanReason}}
{{#if state.insanity}}
{{#if sanLoss}}
{{#unless state.cthulhuMythosAwarded}}
{{#if firstEncounter}}
{{else}}
{{/if}}
{{/unless}}
{{/if}}
{{/if}}
{{#if sanData.sanReason}}
{{#if sanLossReasonEncountered}}
{{localize 'CoC7.AlreadyEncountered'}} "{{sanData.sanReason}}"
{{ localize 'CoC7.AlreadyLost'}}: {{sanLostToReason}}
{{ localize 'CoC7.CreatureMaxLoss'}}: {{maxSanLoss}}
{{/if}}
{{/if}}
{{localize 'CoC7.MaxSanloss'}}: {{maxPossibleSanLoss}}
{{#unless state.keepCreatureSanData}}
{{#if sanLossReasonEncountered}}
{{/if}}
{{/unless}}
{{else}}
{{localize 'CoC7.MaxSanloss'}}: {{maxSanLoss}}
{{/if}}
{{#if mythosGain}}
{{localize 'CoC7.MythosGain'}}: {{mythosGain}}%
{{/if}}
{{#if state.finish}}
{{localize 'CoC7.CardResolved'}}
{{/if}}