class SetChancePrereqState extends PrereqState
{
}

class SetChancePrereq extends IScriptablePrereq
{
	var m_setChance : Float;

	protected const override function OnApplied( state : PrereqState, game : GameInstance, context : IScriptable )
	{
		var random : Float;
		random = RandRangeF( 0.0, 1.0 );
		( ( SetChancePrereqState )( state ) ).OnChanged( random < m_setChance );
	}

	protected override function Initialize( record : TweakDBID )
	{
		m_setChance = TweakDBInterface.GetFloat( record + T".setChance", 0.0 );
	}

}

