|  |  | @@ -1,4 +1,4 @@ | 
		
	
		
			
			|  |  |  | import { StatusEffect, Damage, DamageType, Action, Condition } from '../combat' | 
		
	
		
			
			|  |  |  | import { StatusEffect, Damage, DamageType, Action, Condition, Vigor } from '../combat' | 
		
	
		
			
			|  |  |  | import { DynText, LiveText, ToBe, Verb } from '../language' | 
		
	
		
			
			|  |  |  | import { Creature } from "../creature" | 
		
	
		
			
			|  |  |  | import { LogLine, LogEntry, LogLines, FAElem, nilLog } from '../interface' | 
		
	
	
		
			
				|  |  | @@ -138,18 +138,23 @@ export class DazzlingEffect extends StatusEffect { | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | export class SurrenderEffect extends StatusEffect { | 
		
	
		
			
			|  |  |  | constructor () { | 
		
	
		
			
			|  |  |  | super('Surrendered', 'This creature has given up', 'fas fa-flag') | 
		
	
		
			
			|  |  |  | super('Surrendered', 'This creature has given up, and will fail most tests', 'fas fa-flag') | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | onApply (creature: Creature): LogEntry { | 
		
	
		
			
			|  |  |  | creature.takeDamage( | 
		
	
		
			
			|  |  |  | new Damage( | 
		
	
		
			
			|  |  |  | { amount: creature.vigors.Resolve, target: Vigor.Resolve, type: DamageType.Pure } | 
		
	
		
			
			|  |  |  | ) | 
		
	
		
			
			|  |  |  | ) | 
		
	
		
			
			|  |  |  | return new LogLine( | 
		
	
		
			
			|  |  |  | `${creature.name.capital} ${creature.name.conjugate(new Verb('surrender'))}!` | 
		
	
		
			
			|  |  |  | ) | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | preTurn (creature: Creature): { prevented: boolean; log: LogEntry } { | 
		
	
		
			
			|  |  |  | failTest (creature: Creature, opponent: Creature): { failed: boolean; log: LogEntry } { | 
		
	
		
			
			|  |  |  | return { | 
		
	
		
			
			|  |  |  | prevented: true, | 
		
	
		
			
			|  |  |  | failed: true, | 
		
	
		
			
			|  |  |  | log: nilLog | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | } | 
		
	
	
		
			
				|  |  | 
 |