### Stone Axe
id=xx
name=Stone hatchet
group=tool
icon=gfx\Stoneaxe.bmp
model=gfx\Stoneaxe.b3d
scale=0.8
behaviour=blade
mat=stone
weight=1300
info=good for wood. but it's weak than iron axe.
damage=5
healthchange=0
script=start
	on:impact {
		$tmp=impact_class();
		$tmp2=impact_id();
		//+10 Bonus Damage on Wood
		if (compare_material($tmp,$tmp2,"wood")==1){
			$tmp3=10;
			$tmp4=skillvalue("wood");
			if ($tmp4>=50){$tmp3+=7;}
			if ($tmp4>=100){$tmp3+=7;}
			if ($tmp4>=200){$tmp3+=7;}
			if ($tmp4>=400){$tmp3+=7;}
			if ($tmp4>=800){$tmp3+=70;}
			damage $tmp,$tmp2,$tmp3;
			freevar $tmp3;
			freevar $tmp4;
		}
		freevar $tmp;
		freevar $tmp2;
	}
script=end