◆少前百科是非盈利性、非官方的少女前线维基百科。
◆如果您发现某些内容错误/空缺,请勇于修正/添加!参与进来其实很容易!点这里 加入少前百科
◆有任何意见、建议、纠错,欢迎在 GFwiki:反馈与建议 提出和讨论。编辑事务讨论QQ群:597764980,微博@GFwiki少前百科
◆To foreigners,You can use twitter to contact us.
Icon Nyto Silver.png

“Widget:EnemyInfo/js”的版本间的差异

来自少前百科GFwiki
跳转至: 导航搜索
(测试)
 
(未显示2个用户的7个中间版本)
第45行: 第45行:
 
xmlhttp_standard_attribute.onreadystatechange = function() {
 
xmlhttp_standard_attribute.onreadystatechange = function() {
 
if (this.readyState == 4 && this.status == 200) {  
 
if (this.readyState == 4 && this.status == 200) {  
     Enemy_standard_attribute = JSON.parse(this.responseText.slice(`{"enemy_standard_attribute_info":`.length, this.responseText.length - 1));  
+
     Enemy_standard_attribute = JSON.parse(this.responseText);  
 
     loadstate ++; }
 
     loadstate ++; }
 
};
 
};
第63行: 第63行:
 
xmlhttp_Theater_area.onreadystatechange = function() {
 
xmlhttp_Theater_area.onreadystatechange = function() {
 
if (this.readyState == 4 && this.status == 200) {  
 
if (this.readyState == 4 && this.status == 200) {  
     Theater_area = JSON.parse(this.responseText.slice(`{"theater_area_info":`.length, this.responseText.length - 1));  
+
     Theater_area = JSON.parse(this.responseText);  
 
     loadstate ++; }
 
     loadstate ++; }
 
};
 
};
第90行: 第90行:
 
xmlhttp_charater_type.onreadystatechange = function() {
 
xmlhttp_charater_type.onreadystatechange = function() {
 
if (this.readyState == 4 && this.status == 200) {  
 
if (this.readyState == 4 && this.status == 200) {  
     Enemy_charater_type = JSON.parse(this.responseText.slice(`{"enemy_character_type_info":`.length, this.responseText.length - 1));  
+
     Enemy_charater_type = JSON.parse(this.responseText);  
 
     loadstate ++; }
 
     loadstate ++; }
 
};
 
};
第108行: 第108行:
 
xmlhttp_Team_ai.onreadystatechange = function() {
 
xmlhttp_Team_ai.onreadystatechange = function() {
 
if (this.readyState == 4 && this.status == 200) {  
 
if (this.readyState == 4 && this.status == 200) {  
     Team_ai = JSON.parse(this.responseText.slice(`{"team_ai_info":`.length, this.responseText.length - 1));  
+
     Team_ai = JSON.parse(this.responseText);  
 
     loadstate ++; }
 
     loadstate ++; }
 
};
 
};
第117行: 第117行:
 
xmlhttp_Mission_targettrain_enemy.onreadystatechange = function() {
 
xmlhttp_Mission_targettrain_enemy.onreadystatechange = function() {
 
if (this.readyState == 4 && this.status == 200) {  
 
if (this.readyState == 4 && this.status == 200) {  
     Mission_targettrain_enemy = JSON.parse(this.responseText.slice(`{"mission_targettrain_enemy_info":`.length, this.responseText.length - 1));  
+
     Mission_targettrain_enemy = JSON.parse(this.responseText);
 
     loadstate ++; }
 
     loadstate ++; }
 
};
 
};
第301行: 第301行:
 
             <option value="3041">[主线] 双联乱数<\/option>
 
             <option value="3041">[主线] 双联乱数<\/option>
 
             <option value="3044">[主线] 镜像论<\/option>
 
             <option value="3044">[主线] 镜像论<\/option>
 +
           <option value="3048">[主线] 熵减焓增<\/option>
 +
            <option value="3051">[主线] 静风点<\/option>
  
 
             <option value="4008">[联动] 猎兔行动<\/option>
 
             <option value="4008">[联动] 猎兔行动<\/option>
第308行: 第310行:
 
             <option value="4038">[联动] 梦间剧<\/option>
 
             <option value="4038">[联动] 梦间剧<\/option>
 
             <option value="4043">[联动] 暗金潮<\/option>
 
             <option value="4043">[联动] 暗金潮<\/option>
 +
           <option value="4046">[联动] 小邪神前线<\/option>
 
              
 
              
 
             <option value="5034">[支线] 诡异狂潮<\/option>
 
             <option value="5034">[支线] 诡异狂潮<\/option>
第314行: 第317行:
 
             <option value="5040">[支线] 碧海秘闻<\/option>
 
             <option value="5040">[支线] 碧海秘闻<\/option>
 
             <option value="5042">[支线] 茧中蝶影<\/option>
 
             <option value="5042">[支线] 茧中蝶影<\/option>
 +
            <option value="5047">[支线] 捩浪人<\/option>
 +
            <option value="5049">[支线] 一币之遥<\/option>
 
              
 
              
 
             <option value="6004">[战区] 第一版<\/option>
 
             <option value="6004">[战区] 第一版<\/option>
第414行: 第419行:
 
                 else if(thevalue == 3041 && camp != -41) continue;
 
                 else if(thevalue == 3041 && camp != -41) continue;
 
                 else if(thevalue == 3044 && camp != -44) continue;
 
                 else if(thevalue == 3044 && camp != -44) continue;
 +
                else if(thevalue == 3048 && camp != -48) continue;
 
                 /*-- 联动活动 --*/
 
                 /*-- 联动活动 --*/
 
                 else if(thevalue == 4008 && camp != -8  && camp != -30) continue;
 
                 else if(thevalue == 4008 && camp != -8  && camp != -30) continue;
第421行: 第427行:
 
                 else if(thevalue == 4038 && camp != -38) continue;
 
                 else if(thevalue == 4038 && camp != -38) continue;
 
                 else if(thevalue == 4043 && camp != -43) continue;
 
                 else if(thevalue == 4043 && camp != -43) continue;
 +
                else if(thevalue == 4046 && camp != -46) continue;
  
 
                 var op = document.createElement("OPTION");
 
                 var op = document.createElement("OPTION");
第502行: 第509行:
  
 
     /*-- canvas内鼠标缩放功能 --*/
 
     /*-- canvas内鼠标缩放功能 --*/
     missiondraw.onmousewheel = $("#missionmap").onwheel = function (event) {
+
     missiondraw.onmousewheel = $("#missionmap")[0].onwheel = function (event) {
 +
        event.preventDefault();
 
         var pos = windowToCanvas(event.clientX, event.clientY);
 
         var pos = windowToCanvas(event.clientX, event.clientY);
 
         var newPos = {x:((pos.x - xmove)/scale).toFixed(2) , y:((pos.y - ymove)/scale).toFixed(2)};
 
         var newPos = {x:((pos.x - xmove)/scale).toFixed(2) , y:((pos.y - ymove)/scale).toFixed(2)};
第649行: 第657行:
 
         thisline += Building[buildnum].defender + `<\/td><td width="140px">`;
 
         thisline += Building[buildnum].defender + `<\/td><td width="140px">`;
 
         thisline += Building[buildnum].is_destroy.replace("0", "不可破坏").replace("1", "重装打击").replace("2", "踩点破坏") + `<\/td><td width="60px">`;
 
         thisline += Building[buildnum].is_destroy.replace("0", "不可破坏").replace("1", "重装打击").replace("2", "踩点破坏") + `<\/td><td width="60px">`;
         thisline += Building[buildnum].initial_state.replace("0", "开启").replace("-1", "关闭") + `<\/td><td width="80px">`;
+
         thisline += String(Building[buildnum].initial_state).replace("0", "开启").replace("-1", "关闭") + `<\/td><td width="80px">`;
 
         thisline += Building[buildnum].battle_assist_range + `<\/td><td width="544px">`;
 
         thisline += Building[buildnum].battle_assist_range + `<\/td><td width="544px">`;
 
         thisline += ((buildsigndes) ? buildsigndes : "其他") + "<\/td><\/tr>";
 
         thisline += ((buildsigndes) ? buildsigndes : "其他") + "<\/td><\/tr>";

2022年1月21日 (五) 15:56的最新版本