Extract treasure/item probability to constant