ステータス関連のソースコード のバックアップ(No.1)



Game_System.prototype.createMainData = function() {

var lv = 1;

 

var str = 1;

var dex = 1;

var con = 1;

var spd = 1;

var luk = 1;

 

var hp =  102;

var hungry = 101;

 

$gameSystem.mainData = [lv, hp, hungry, str, dex, con, spd, luk];

$gameSystem.equipsData = [0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0];

$gameSystem.finalData = [0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0];

 

$gameSystem.mainDataExt = [];

 

$gameSystem.ScData = [0, 0, 0, 0];

$gameSystem.gTimer = 72000;

 

$gameSystem.saveTimer = 600;

$gameSystem.apiTimer  = 600;

$gameSystem.extTimer  = 600;

 

$gameSystem.GlobalcurrentAt = 0;

 

$gameSystem.GameCounts = [0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0];

 

$gameSystem.currentLifeObj = null;

 

this.refreshMainData();

};

 

Game_System.prototype.createSupporterData = function() {

$gameSystem.actJobData   = [0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0];

$gameSystem.actFriendly  = [0,0,0];

$gameSystem.actFriendlyLV= [0,0,0];

$gameSystem.actMaxJobLV  = [5,5,5];

$gameSystem.expTable=  [60, 60, 60, 60];

};

 

Game_System.prototype.paramMaxHp = function() {

return 100000;

};

 

Game_System.prototype.paramMaxHungry = function() {

return 10000;

};

 

Game_System.prototype.paramMaxStatus = function() {

return 1000;

};

 

Game_Party.prototype.maxItems = function(/*item*/) {

  return 100000000000000000;

};

 

Game_System.prototype.convertNumber = function(n) {

if(typeof n === "number"){

;

}else{

return n;

}

var n = n+"";

var p = "";

var t = n.replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1,');

var a = [];

 

a = t.split(',');

if(a.length <= 1){

return a[0];

}

 

if(a.length <= 2){

var f = n * 0.001;

f = f.toFixed(2);

p = "K";

return f+p;

}

 

if(a.length <= 3){

var f = n * 0.000001;

f = f.toFixed(2);

p = "M";

return f+p;

}

 

if(a.length <= 4){

var f = n * 0.000000001;

f = f.toFixed(2);

p = "B";

return f+p;

}

 

if(a.length <= 5){

var f = n * 0.000000000001;

f = f.toFixed(2);

p = "T";

return f+p;

}

 

if(a.length <= 6){

var f = n * 0.000000000000001;

f = f.toFixed(2);

p = "Aa";

return f+p;

}

 

if(a.length <= 7){

var f = n * 0.000000000000000001;

f = f.toFixed(2);

p = "Ab";

return f+p;

}

 

if(a.length <= 8){

var f = n * 0.000000000000000000001;

f = f.toFixed(2);

p = "Ac";

return f+p;

}

 

if(a.length <= 9){

var f = n * 0.000000000000000000000001;

f = f.toFixed(2);

p = "Ad";

return f+p;

}

 

if(a.length <= 10){

var f = n * 0.000000000000000000000000001;

f = f.toFixed(2);

p = "Ae";

return f+p;

}

 

if(a.length <= 11){

var f = n * 0.000000000000000000000000000001;

f = f.toFixed(2);

p = "Af";

return f+p;

}

};