1) { page_header("Dragon Points"); output("`@You earn one dragon point each time you slay the dragon."); output("Advancements made by spending dragon points are permanent!"); output("`n`nYou have `^%s`@ unspent dragon points.", $dkills-$dp); output("How do you wish to spend them?`n`n"); output("Be sure that your allocations add up to your total unspent dragon points."); $text = "\n"; rawoutput($text); addnav("Reset", "newday.php?pdk=0$resline"); $link = appendcount("newday.php?pdk=1$resline"); rawoutput("
"); reset($labels); $count = 0; foreach($labels as $type=>$label) { if ($count > 0) break; if (isset($canbuy[$type]) && $canbuy[$type]) { rawoutput(""); $count++; } } }else{ page_header("Dragon Points"); reset ($labels); $dist = array(); foreach ($labels as $type=>$label) { $dist[$type] = 0; // Initialize the distribution if (isset($canbuy[$type]) && $canbuy[$type]) { addnav($label, "newday.php?dk=$type$resline"); } } output("`@You have `&1`@ unspent dragon point."); output("How do you wish to spend it?`n`n"); output("You earn one dragon point each time you slay the dragon."); output("Advancements made by spending dragon points are permanent!"); for ($i=0; $i"); output($label); output_notl(":"); rawoutput(" | "); output_notl("`@%s", $dist[$type]); rawoutput(" |