Last active
July 22, 2018 13:04
-
-
Save Nishisonic/5602918914b0dc2c61f0e2c745ee39f9 to your computer and use it in GitHub Desktop.
改造全般のやつ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Version:1.0.3 | |
//Author:Nishisonic | |
// Nekopanda | |
load("script/utils.js"); | |
Ship = Java.type("logbook.internal.Ship"); | |
ExpTable = Java.type("logbook.internal.ExpTable"); | |
function header() { | |
return [ "改造可能","改造Lv","改造後ID","改造後名前","改造必要経験値" ]; | |
} | |
function begin(specdiff) { } | |
function body(ship) { | |
var afterlv = ship.shipInfo.afterlv; | |
var afterid = ship.shipInfo.aftershipid; | |
var canRemodel = (afterlv > 0); | |
if(canRemodel){ | |
var shipRemodel = (ship.lv >= afterlv) ? "可能" : null; | |
var shipData = Ship.get(afterid); | |
var expTable = ExpTable.get(); | |
var nowExp = ship.exp; | |
var remodelExp = expTable.get(afterlv); | |
var differenceExp = Math.max((remodelExp - nowExp), 0); | |
return toComparable([ shipRemodel, afterlv, afterid, shipData.name, differenceExp | 0 ]); | |
} | |
return toComparable([ null, null, null, null, null ]); | |
} | |
function end() { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment