LotGDocker/lotgd-web/lotgd/lib/increment_specialty.php

24 lines
615 B
PHP
Raw Normal View History

2020-08-17 19:16:42 -04:00
<?php
// translator ready
// addnews ready
// mail ready
function increment_specialty($colorcode, $spec=false){
global $session;
if ($spec !== false) {
$revertspec = $session['user']['specialty'];
$session['user']['specialty'] = $spec;
}
tlschema("skills");
if ($session['user']['specialty']!=""){
$specialties = modulehook("incrementspecialty",
array("color"=>$colorcode));
}else{
output("`7You have no direction in the world, you should rest and make some important decisions about your life.`0`n");
}
tlschema();
if ($spec !== false) {
$session['user']['specialty'] = $revertspec;
}
}
?>