 ; ###  Syntax for the Bracket-Formula ###
 ;
 ; Obviously: 
-; 		r = Red / b = Black / o = orange / y = yellow
+;		r = red / b = black / o = orange / y = yellow / w = white
 ;
 ; Maybe a little less obviously:
 ;
 ;		g / k = copy of gem in the BOTTOM-LEFT! corner of the 12*3 craftingfield
 ;
 ; Furthermore:   ### New Features ###
-; 		
+;		
 ;		the numerals 2 to 9 followed by any of the above = Corresponding color (or duplicate, respectively), upgraded 1 to 8 times 
 ;		
 ;		Examples: 9o / 2g = Orange upgraded 8 times (grade 9) / Base-gem (BottomLeft corner) upgraded once
 ;		(Needless to say, the upgrading happens via the "u"-button.) 
 ;
-; And: 			
+; And:
 ;
 ;		a / s / d  =  use (left / middle / right) gem in the top row of the 3*12 craftingfield
 ;		

	
	Reload
}
	else {
	FieldWidth := (BottomRightCornerX - TopLeftCornerX) / 3
	FieldHeight := (BottomRightCornerY - TopLeftCornerY) / 12
	CraftingField := [BottomRightCornerX -(FieldWidth / 2), BottomRightCornerY -(FieldHeight / 2)]
	
	SetDefaultMouseSpeed, 0
	i := 0
	j := 0
	StkCount := 1

		
		CustomTemp = CurrentCustom := "%CustomFormula%"
		if (ChosenCombine = "Custom") 
			PGScript := RegExReplace(PGScript, "CurrentCustom := "".*""", CustomTemp, , 1)
		
		LastDDLTemp = LastDDL := %LastDDL%
		PGScript := RegExReplace(PGScript, "LastDDL := [0-9]*", LastDDLTemp, , 1)
		
		if ((ChosenIniMode = 0) and (InitialMode = True))
			PGScript := RegExReplace(PGScript, "InitialMode := True  `; Init", "InitialMode := False `; Init", , 1)
		if ((ChosenIniMode = 1) and (InitialMode = False))
			PGScript := RegExReplace(PGScript, "InitialMode := False `; Init", "InitialMode := True  `; Init", , 1)	
	
		FileAppend, %PGScript%, Parent2Gem.ahk
		Gui, Destroy
	Reload
}
