refac: utilGame/getNPCColor

This commit is contained in:
2022-08-26 01:06:43 +09:00
parent 63771da876
commit 8a5a3b67f7
17 changed files with 52 additions and 30 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ import $ from 'jquery';
import { unwrap } from '@util/unwrap';
import axios from 'axios';
import { setAxiosXMLHttpRequest } from '@util/setAxiosXMLHttpRequest';
import { getNpcColor } from './common_legacy';
import { getNPCColor } from '@/utilGame';
declare const killturn: number;
declare const autorun_user: undefined|null|{
@@ -230,7 +230,7 @@ $(function () {
$obj.css('text-decoration', 'line-through');
+= 1;
}
const colorNPC = getNpcColor(val.NPC);
const colorNPC = getNPCColor(val.NPC);
if (colorNPC !== undefined) {
$obj.css('color', colorNPC);
}