/// <reference path="../../../playerCharacter/effects/drugs.ts" />
/// <reference path="../../../_system/inventory/Inventory.ts" />


setup.items['painkiller'] = {
	label: 'Painkiller',
	image: 'pc/items/painkiller.webp',
	passage:'Painkiller'
}

setup.drugs.painkiller = {
	deterioration: 0.0033, //~0.2/h
	effects:{
		small:{    	    condition:{min:0.1,max:0.2},	effect: 'painkiller_1'},
		mid:{			condition:{min:0.2,max:0.6},	effect: 'painkiller_2'},
        default:{		condition:{min:0.6,max:1.2},	effect: 'painkiller_3'},
		vstrong:{		condition:{min:1.2,max:2.0},	effect: 'painkiller_4'},
		overdose:{		condition:{min:2.0},			effect: 'painkiller_overdose'},
	}
};

setup.effects.painkiller_1 = {
	sidebar:true,
	desc: 'The effect of your painkiller is almost over.',
	image: 'system/icons/status/drugs.png',
    painReduction: 10,
}
setup.effects.painkiller_2 = {
	sidebar:true,
	desc: 'Your pain is somewhat reduced by the painkiller you took.',
	image: 'system/icons/status/drugs.png',
    painReduction: 20,
}
setup.effects.painkiller_3 = {
	sidebar:true,
	desc: 'Your pain is reduced by the painkiller you took.',
	image: 'system/icons/status/drugs.png',
    painReduction: 30,
}
setup.effects.painkiller_4 = {
	sidebar:true,
	desc: 'Your pain is greatly reduced by the painkiller you took.',
	image: 'system/icons/status/drugs.png',
    painReduction: 40,
}
setup.effects.painkiller_overdose = {
	sidebar:true,
	desc: 'Your pain is greatly reduced by the painkiller you took. You also feel dizzy, because you took too many painkillers.',
	image: 'system/icons/status/drugs.png',
    painReduction: 50,
	consciousness: 0.8,
}