사령부 UI 간결화, (구현은 아직), 일부 변수명 변경

This commit is contained in:
2018-11-24 22:22:27 +09:00
parent 1d3e29cea2
commit f6333ba304
17 changed files with 265 additions and 286 deletions
+17 -1
View File
@@ -925,7 +925,23 @@ function getItemCost($weap) : int {
return $weapcost;
}
function getNameColor(int $npcType):?string{
if($npcType >= 2){
return 'cyan';
}
if($npcType == 1){
return 'skyblue';
}
return null;
}
function getColoredName(string $name, int $npcType):string{
$color = nameColor($npcType);
if($color === null){
return $name;
}
//TODO: font 폐기.
return "<font color='{$color}'>{$name}</font>";
}
function ConvertLog(?string $str, $type=1) : string {
if(!$str){