「シム/オブジェクト」の編集履歴(バックアップ)一覧はこちら
シム/オブジェクト - (2012/06/10 (日) 16:27:10) の1つ前との変更点
追加された行は緑色になります。
削除された行は赤色になります。
#javascript(){{
<script language="JavaScript"><!--
var chars = {
'code':[ 'rank','gen','name','sex','class', ['Lv','hp','str','mgc','skl','spd','luk','def','mdf','mov'],['str','mgc','skl','spd','luk','def','mdf','sum'],['swd','lnc','axe','bow','bok','wan','stn'],'skill',['C001','C017','C002','C003','C004','C005','C006','C007','C008','C009','C010','C011','C012','C013','C014','C015','C016','C202','C203','C204','C201','C206','C207','C208'],'child','parent',['C001','C017','C002','C003','C004','C005','C006','C007','C008','C009','C010','C011','C012','C013','C014','C015','C016','C202','C203','C204','C201','C207','C208'],['spouses']]
, 'U1003':[ 3,1,'マイユニ女', 2,'C002', [ 1,19, 6, 5, 5, 8, 4, 6, 3, 5],[ , , , , , , , 3],[ 5, , , , 5, , ],'C002S1', [ , , 2, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , , ,-1,-1, 1],'U2013', , [ , , 1, 1, 1, 3, 3, 1, 1, 1, 1, 4, 1, 4, 1, 1, 1, , , , , , ],['U1001','U1019','U1020','U1021','U1022','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1030','U1031','U1032','U1033','U2007','U2008','U2009','U2010','U2011','U2012',],]
, 'U1004':[ 4,1,'リズ', 2,'C014', [ 1,17, 1, 5, 4, 4, 8, 3, 4, 5],[-2, 2,-1, 0, 2,-1, 1, 1],[ , , , , , 5, ],'C014S1', [ , , , , , , , , , , , 1, , 1, 2, , , , , , ,-1,-1, 1],'U2007', , [ , , , , , 3, 3, , , , , 4, , 4, 1, , , , , , , , ],['U1002','U1019','U1020','U1022','U1021','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1031',],]
, 'U1005':[ 6,1,'ソワレ', 2,'C003', [ 2,20, 7, 1, 8, 8, 6, 7, 2, 7],[-1,-1, 2, 2, 0,-1, 0, 1],[ 5, 4, , , , , ],'C003S1', [ , , , 2, , , , , , 1, , , 1, , , , , , , , ,-1,-1, 1],'U2002', , [ , , , 1, , , , , , 1, , , 1, , , , , , , , , , ],['U1002','U1001','U1019','U1020','U1022','U1021','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1031',],]
, 'U1006':[ 10,1,'ミリエル', 2,'C015', [ 1,18, 0, 6, 5, 7, 6, 3, 4, 5],[-2, 3, 1, 1, 0,-2, 0, 3],[ , , , , 5, , ],'C015S1', [ , , , , , , , , , , , , , 1, , 2, 1, , , , ,-1,-1, 1],'U2012', , [ , , , , , 3, , , , , , , , 4, , 1, 1, , , , , , ],['U1002','U1019','U1020','U1022','U1021','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1031',],]
, 'U1007':[ 11,1,'スミア', 2,'C011', [ 1,18, 6, 3,11,11, 8, 5, 7, 7],[-2, 0, 2, 3, 0,-2, 1, 2],[ , 4, , , , , ],'C011S1', [ , , , , 1, , , , , , , 2, , , 1, , , , , , ,-1,-1, 1],'U2003', , [ , , , , 1, , , , , , , 1, , , 1, , , , , , , , ],['U1002','U1001','U1019','U1026','U1029',],]
, 'U1008':[ 15,1,'マリアベル', 2,'C013', [ 3,18, 0, 5, 4, 6, 5, 3, 6, 7],[-3, 2, 1, 0, 3,-3, 2, 2],[ , , , , , 4, ],'C013S1', [ , , , , , , , , , , , 1, , 2, , 1, , , , , ,-1,-1, 1],'U2009', , [ , , , 3, , , , , , , , 4, , 4, 3, 1, , , , , , , ],['U1002','U1001','U1019','U1020','U1022','U1021','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1031',],]
, 'U1009':[ 17,1,'ベルベット', 2,'C202', [ 6,28, 8, 1, 9,10, 8, 7, 3, 6],[ 2,-1, 2, 3,-1, 1,-1, 4],[ , , , , , , 9],'C202S1', [ , , , , , , , , , , 1, , 1, , , , , 2, , , ,-1,-1, 1],'U2011', , [ , , , , , 3, , , , , 1, , 4, , , , , 1, , , , , ],['U1002','U1019','U1020','U1022','U1021','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1031',],]
, 'U1010':[ 18,1,'ティアモ', 2,'C011', [ 7,25, 9, 3,13,12, 9, 8, 8, 7],[ 1,-1, 2, 2,-1, 0,-1, 2],[ , 3, , , , , ],'C011S1', [ , , , , , , , 1, , , , 2, , , , , 1, , , , ,-1,-1, 1],'U2004', , [ , , , , , , , 1, , , , 1, , , , , 1, , , , , , ],['U1002','U1019','U1020','U1022','U1021','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1031',],]
, 'U1011':[ 19,1,'ノノ', 2,'C203', [ 3,18, 4, 0, 2, 3, 8, 2, 2, 6],[ 1, 1,-1,-2, 1, 3, 2, 5],[ , , , , , , 9],'C203S1', [ , , , , , , , , , , , , 1, , , 1, , , 2, , ,-1,-1, 1],'U2006', , [ , , , , , , , , , , , , 1, , , 1, , , 1, , , , ],['U1002','U1019','U1020','U1022','U1021','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1031',],]
, 'U1012':[ 22,1,'サーリャ', 2,'C016', [10,25, 4,11, 5,12, 3,10, 7, 5],[ 0, 3,-1, 1,-3, 1, 0, 1],[ , , , , 4, , ],'C016S1 C016S2', [ , , , , 1, , , , 1, , , , , , , , 2, , , , ,-1,-1, 1],'U2005', , [ , , , , 1, , , , 1, , , , , , , , 1, , , , , , ],['U1002','U1019','U1020','U1022','U1021','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1031',],]
, 'U1013':[ 23,1,'オリヴィエ', 2,'C204', [ 1,18, 3, 1, 8, 9, 5, 3, 2, 5],[ 0, 0, 1, 1, 0,-1,-1, 0],[ 4, , , , , , ],'C204S1', [ , , , , , , , , , 1, , 1, , , , , , , , 2, ,-1,-1, 1],'U2008', , [ , , , , , 3, , 3, , 1, , 4, , , , , , , ,-2, , , ],['U1002','U1001','U1019','U1020','U1022','U1021','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1031',],]
, 'U1014':[ 24,1,'セルジュ', 2,'C012', [12,31,15, 1,13,12, 9,16, 2, 7],[ 3, 0,-1,-1, 0, 2,-2, 1],[ , , 3, , , , ],'C012S1 C012S2', [ , , , , , , , , , , , , 2, 1, 1, , , , , , ,-1,-1, 1],'U2010', , [ , , , , , 1, , , , , , , 1, 4, 1, , , , , , , , ],['U1002','U1019','U1020','U1022','U1021','U1023','U1024','U1025','U1026','U1027','U1028','U1029','U1031',],]
, 'U1015':[ 27,1,'サイリ', 2,'C111', [ 1,41,18, 7,24,27,21,13,11, 6],[ 1,-1, 1, 1,-1, 0, 1, 2],[ 2, , , , , , ],'C009S1 C009S2', [ , , , , , , , , , 2, , 1, 1, , , , , , , , ,-1,-1, 1], , , [ , , , , , , , , , 1, , 1, 1, , , , , , , , , , ],['U1002',],]
, 'U1016':[ 29,1,'フラヴィア', 2,'C108', [10,53,28, 6,32,30,24,25,13, 6],[ 1,-1, 1, 1, 0,-1, 0, 1],[ 1, , 2, , , , ],'C007S1 C007S2 C108S1', [ , , , , 1, , , 2, , , 1, , , , , , , , , , ,-1,-1, 1], , , [ , , , , 1, , , 1, , , 1, , , , , , , , , , , , ],['U1002',],]
, 'U1017':[ 31,1,'アンナ', 2,'C113', [ 1,35,12,17,23,22,26, 8,10, 6],[-1, 0, 1, 0, 3,-1, 0, 1],[ 3, , , , , 4, ],'C010S2 C010S1', [ , , , , , , , , 1, , 2, , , , , 1, , , , , ,-1,-1, 1], , , [ , , , , , , , , 1, , 1, , , , , 1, , , , , , , ],['U1002',],]
, 'U1018':[ 45,1,'チキ', 2,'C203', [20,44,20,12,17,19,21,17,14, 6],[ 0,-1, 0, 1, 2, 1, 2, 5],[ , , , , , , 9],'C203S1', [ , , , , , , , , , , , , 1, , , 1, , , 2, , ,-1,-1, 1], , , [ , , , , , , , , , , , , 1, , , 1, , , 1, , , , ],['U1002',],]
, 'U1034':[ 48,1,'エメリナ', 2,'C120', [10,42, 5,26,23,25,13,12,20, 6],[-2, 4, 0, 1, 0,-2, 1, 2],[ , , , , , , ],'C015S1 C015S2', [ , , , , , , , , , , , 1, , 1, 2, , , , , , ,-1,-1, 1], , , [ , , , , , , , , , , , 1, , 1, 1, , , , , , , , ],['U1002',],]
//, 'U1036':[ 50,1,'インバース', 2,'C115', [ , , , , , , , , , ],[ , , , , , , , ],[ , , , , , , ],'', [ , , , , , , , , , , , 1, , , , , , , , , ,-1,-1, 1], , , [ , , , , , , , , , , , 1, , , , , , , , , , , ],['U1002',],]
, 'U1001':[ 1,1,'クロム', 1,'C001', [ 1,20, 7, 1, 8, 8, 5, 7, 1, 6],[ 1, 0, 1, 1, 1,-1,-1, 2],[ 5, , , , , , ],'C001S1', [ 2, , , 1, , , , , 1, , , , , , , , , , , , , 1,-1,-1],'U2001', , [ 9, , , 1, , , , , 1, , , , , , , , , , , , , , ],['U1003','U1007','U1008','U1005','U1013'],]
, 'U1002':[ 2,1,'マイユニ男', 1,'C002', [ 1,19, 6, 5, 5, 8, 4, 6, 3, 5],[ 1, 2,-3, 0, 4,-1, 0, 3],[ 5, , , , 5, , ],'C002S1', [ , , 2, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, , , , , 1,-1,-1],'U2014', , [ , , 1, 1, 1, 3, 3, 1, 1, 1, 1, 4, 1, 4, 1, 1, 1, , , , , , ],['U1004','U1005','U1006','U1007','U1008','U1009','U1010','U1011','U1012','U1013','U1014','U1015','U1016','U1017','U1018','U2001','U2002','U2003','U2004','U2005','U2006','U1034'],]
, 'U1019':[ 5,1,'フレデリク', 1,'C104', [ 1,28,13, 2,12,10, 6,14, 3, 7],[ 2,-2, 2,-2, 0, 2, 0, 2],[ 4, 2, 4, , , , ],'C003S1 C003S2', [ , , , 2, 1, , , , , , , , 1, , , , , , , , , 1,-1,-1], , , [ , , , 1, 1, , , , , , , , 1, , , , , , , , , , ],['U1003','U1004','U1005','U1006','U1007','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1020':[ 7,1,'ヴィオール', 1,'C008', [ 2,19, 6, 0, 9, 5, 7, 6, 1, 5],[ 0, 0, 2, 2,-1,-2, 0, 1],[ , , , 4, , , ],'C008S1', [ , , , , , , , , 2, , , , 1, , , 1, , , , , , 1,-1,-1], , , [ , , , , , , , , 1, , , , 1, , , 1, , , , , , , ],['U1003','U1004','U1005','U1006','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1021':[ 8,1,'ソール', 1,'C003', [ 2,22, 8, 0, 7, 6, 5, 8, 1, 7],[ 2,-1, 1, 0,-2, 2,-1, 1],[ 5, 5, , , , , ],'C003S1', [ , , , 2, , , , , 1, 1, , , , , , , , , , , , 1,-1,-1], , , [ , , , 1, , , , , 1, 1, , , , , , , , , , , , , ],['U1003','U1004','U1005','U1006','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1022':[ 9,1,'ヴェイク', 1,'C006', [ 3,29, 9, 0, 8, 6, 4, 5, 0, 5],[ 3,-2, 1, 1,-1, 0,-2, 0],[ , , 4, , , , ],'C006S1', [ , , , , , 1, 2, , , , 1, , , , , , , , , , , 1,-1,-1], , , [ , , , , 4, 3, 3, 4, , , 1, , , , , , , , , , , , ],['U1003','U1004','U1005','U1006','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1023':[ 12,1,'カラム', 1,'C004', [ 5,21,10, 0, 7, 5, 3,12, 2, 4],[ 1, 0, 1,-2,-2, 3, 0, 1],[ , 4, , , , , ],'C004S1', [ , , , , 2, , , , , , 1, , , , 1, , , , , , , 1,-1,-1], , , [ , , , , 1, , , , , , 1, , , , 1, , , , , , , , ],['U1003','U1004','U1005','U1006','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1024':[ 13,1,'ロンクー', 1,'C009', [ 4,20, 6, 1,12,13, 7, 7, 2, 5],[ 0, 0, 3, 3, 0,-2,-2, 2],[ 3, , , , , , ],'C009S1', [ , , , , , , , , , 2, 1, , 1, , , , , , , , , 1,-1,-1], , , [ , , , , , , , , , 1, 1, , 1, , , , , , , , , , ],['U1003','U1004','U1005','U1006','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1025':[ 14,1,'リヒト', 1,'C015', [ 3,20, 3, 8, 6, 5,10, 6, 3, 5],[-1, 2, 0, 0, 1,-1, 0, 1],[ , , , , 4, , ],'C015S1', [ , , , 1, , , , , 1, , , , , , , 2, , , , , , 1,-1,-1], , , [ , , , 1, , , , , 1, , , , , , , 1, , , , , , , ],['U1003','U1004','U1005','U1006','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1026':[ 16,1,'ガイア', 1,'C010', [ 6,22, 7, 0,13,15, 6, 5, 2, 5],[ 1,-1, 2, 2,-2,-1, 0, 0],[ 4, , , , , , ],'C010S1', [ , , , , , , 1, , , 1, 2, , , , , , , , , , , 1,-1,-1], , , [ , , , , , , 3, , , 1, 1, 4, , , , , , , , , , , ],['U1003','U1004','U1005','U1006','U1007','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1027':[ 20,1,'グレゴ', 1,'C007', [10,30,12, 0,13,11, 8,10, 2, 5],[ 2,-1, 1, 1,-1, 1,-2, 1],[ 3, , , , , , ],'C007S1 C007S2', [ , , , , , 1, , 2, , 1, , , , , , , , , , , , 1,-1,-1], , , [ , , , , , 3, , 1, , 1, , , , 4, , , , , , , , , ],['U1003','U1004','U1005','U1006','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1028':[ 21,1,'リベラ', 1,'C119', [ 1,39,14,16,13,14,10,11,16, 6],[ 0, 1, 1, 0,-1, 0, 1, 2],[ , , 3, , , 3, ],'C014S2 C014S1', [ , , , , , , , , , , , , , , 2, 1, 1, , , , , 1,-1,-1], , , [ , , , , , , , , , , , , , , 1, 1, 1, , , , , , ],['U1003','U1004','U1005','U1006','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1029':[ 25,1,'ヘンリー', 1,'C016', [12,29, 6,14,15, 9,10,13, 5, 5],[ 1, 1, 2, 0,-2, 1,-1, 2],[ , , , , 3, , ],'C016S1 C016S2', [ , , , , , 1, , , , , 1, , , , , , 2, , , , , 1,-1,-1], , , [ , , , , , 3, , , , , 1, , , 4, , , 1, , , , , , ],['U1003','U1004','U1005','U1006','U1007','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1030':[ 28,1,'バジーリオ', 1,'C107', [10,62,34, 4,28,25,20,23, 9, 6],[ 3,-2, 1, 1,-1, 1,-1, 2],[ , , 1, 2, , , ],'C006S1 C006S2 C107S1', [ , , , , 1, 1, 2, , , , , , , , , , , , , , , 1,-1,-1], , , [ , , , , 1, 1, 1, , , , , , , , , , , , , , , , ],['U1003',],]
, 'U1031':[ 30,1,'ドニ', 1,'C201', [ 1,16, 4, 0, 2, 3,11, 3, 0, 5],[ 1,-1,-1,-1, 3, 1,-1, 1],[ , 5, , , , , ],'C201S1', [ , , , , , , 1, 1, , , , , , , , , , , , , 2, 1,-1,-1], , , [ , , , , , , 3, 1, , , , 4, , 4, , , , , , , 3, , ],['U1003','U1004','U1005','U1006','U1008','U1009','U1010','U1011','U1012','U1013','U1014',],]
, 'U1032':[ 46,1,'ギャンレル', 1,'C113', [ , , , , , , , , , ],[-2, 0, 3, 3,-1,-1, 0, 2],[ , , , , , , ],'C010S2 C010S1 C113S1 C113S2', [ , , , , , 1, , , , , 2, , , , , , 1, , , , , 1,-1,-1], , , [ , , , , , 1, , , , , 1, , , , , , 1, , , , , , ],['U1003',],]
, 'U1033':[ 47,1,'ヴァルハルト', 1,'C207', [30,79,44,16,36,35,33,38,21, 8],[ 4,-2, 0,-1,-1, 4,-2, 2],[ 1, 1, 1, , , , ],'C999S2', [ , , , , 1, , , , , , , , 1, , , , , , , , , 1, 2,-1], , , [ , , , , 1, , , , , , , , 1, , , , , , , , , , ],['U1003',],]
//, 'U1037':[ 49,1,'レンハ', 1,'C015', [ , , , , , , , , , ],[ , , , , , , , ],[ , , , , , , ], , [ , , , , , 1, , , , , ,-1, ,-1, , 2, 1,-1,-1,-1, , 1,-1,-1], , , [ , , , , , , , , , 2, , , , , , , , , , , , , ],['U1003',],]
, 'U2001':[ 26,2,'ルキナ', 2,'C017', [10, , , , , , , , , 5],[ 2, 1, 2, 2, 2, 0, 0, 9],[ 3, , , , , , ], , [-1, 2, , 1, ,-1,-1, , 1, , , , , , , , ,-1,-1,-1,-1,-1,-1, 1], ,'U1001', [-1,-1, , 1, ,-1,-1, , 1, , , , , , , , ,-1,-1,-1,-1, , ],['U1002','U2007','U2008','U2009','U2010','U2013','U2011','U2012',],]
, 'U2002':[ 35,2,'デジェル', 2,'C004', [10, , , , , , , , , 4],[ 0, 0, 3, 3, 1, 0, 1, 8],[ , , , , , , ], , [-1,-1, , 1, 2,-1,-1, , , 1, , , 1, , , , ,-1,-1,-1, ,-1,-1, 1], ,'U1005', [-1,-1, , 1, 2,-1,-1, , , 1, , , 1, , , , ,-1,-1,-1, , , ],['U1002','U2007','U2008','U2009','U2010','U2013','U2011','U2012',],]
, 'U2003':[ 36,2,'シンシア', 2,'C011', [10, , , , , , , , , 7],[-1, 1, 3, 4, 1,-1, 2, 9],[ , , , , , , ], , [-1,-1, , , 1,-1,-1, , , , , 2, , , 1, , ,-1,-1,-1, ,-1,-1, 1], ,'U1007', [-1,-1, , , 1,-1,-1, , , , , 2, , , 1, , ,-1,-1,-1, , , ],['U1002','U2007','U2008','U2009','U2010','U2013','U2011','U2012',],]
, 'U2004':[ 37,2,'セレナ', 2,'C007', [10, , , , , , , , , 5],[ 2, 0, 3, 3, 0, 1, 0, 9],[ , , , , , , ], , [-1,-1, , , ,-1,-1, 2, , , , 1, , , , , 1,-1,-1,-1, ,-1,-1, 1], ,'U1010', [-1,-1, , , ,-1,-1, 2, , , , 1, , , , , 1,-1,-1,-1, , , ],['U1002','U2007','U2008','U2009','U2010','U2013','U2011','U2012',],]
, 'U2014':[ 40,2,'マーク女', 2,'', [10, , , , , , , , , ],[ 2, 3,-2, 1, 5, 0, 1,10],[ , , , , , , ], , [-1,-1, 2, 1, 1,-1,-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , ,-1, ,-1,-1, 1], ,'U1002', [-1,-1, 2, 1, 1,-1,-1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , ,-1, , , ],['U2007','U2008','U2009','U2010','U2013','U2011','U2012',],]
, 'U2005':[ 43,2,'ノワール', 2,'C008', [10, , , , , , , , , 5],[ 1, 4, 0, 2,-2, 2, 1, 8],[ , , , , , , ], , [-1,-1, , , 1,-1,-1, , 2, , , , , , , , 1,-1,-1,-1, ,-1,-1, 1], ,'U1012', [-1,-1, , , 1,-1,-1, , 2, , , , , , , , 1,-1,-1,-1, , , ],['U1002','U2007','U2008','U2009','U2010','U2013','U2011','U2012',],]
, 'U2006':[ 44,2,'ンン', 2,'C203', [10, , , , , , , , , 6],[ 2, 2, 0,-1, 2, 4, 3,12],[ , , , , , , ], , [-1,-1, , , ,-1,-1, , , , , , 1, , , 1, ,-1, 2,-1, ,-1,-1, 1], ,'U1011', [-1,-1, , , ,-1,-1, , , , , , 1, , , 1, ,-1, 2,-1, , , ],['U1002','U2007','U2008','U2009','U2010','U2013','U2011','U2012',],]
, 'U2007':[ 32,2,'ウード', 1,'C009', [10, , , , , , , , , 5],[-1, 3, 0, 1, 3, 0, 2, 8],[ , , , , , , ], , [-1,-1, , , , 1, , , , 2, ,-1, ,-1, 1, , ,-1,-1,-1, , 1,-1,-1], ,'U1004', [-1,-1, , , , 1, , , , 2, ,-1, ,-1, 1, , ,-1,-1,-1, , , ],['U1003','U2001','U2002','U2003','U2004','U2014','U2005','U2006',],]
, 'U2008':[ 33,2,'アズール', 1,'C007', [10, , , , , , , , , 5],[ 1, 1, 2, 2, 1, 0, 0, 7],[ , , , , , , ], , [-1,-1, , , , 1, , 2, , 1, ,-1, ,-1, , , ,-1,-1,-1, , 1,-1,-1], ,'U1013', [-1,-1, , , , 1, , 2, , 1, ,-1, ,-1, , , ,-1,-1,-1, , , ],['U1003','U2001','U2002','U2003','U2004','U2014','U2005','U2006',],]
, 'U2009':[ 34,2,'ブレディ', 1,'C014', [10, , , , , , , , , 5],[-2, 3, 2, 1, 4,-2, 3, 9],[ , , , , , , ], , [-1,-1, , 1, , , , , , , ,-1, ,-1, 2, 1, ,-1,-1,-1, , 1,-1,-1], ,'U1008', [-1,-1, , 1, , , , , , , ,-1, ,-1, 2, 1, ,-1,-1,-1, , , ],['U1003','U2001','U2002','U2003','U2004','U2014','U2005','U2006',],]
, 'U2010':[ 38,2,'ジェローム', 1,'C012', [10, , , , , , , , , 7],[ 4, 1, 0, 0, 1, 3,-1, 8],[ , , , , , , ], , [-1,-1, , , , , 1, , , , ,-1, 2,-1, 1, , ,-1,-1,-1, , 1,-1,-1], ,'U1014', [-1,-1, , , , , 1, , , , ,-1, 2,-1, 1, , ,-1,-1,-1, , , ],['U1003','U2001','U2002','U2003','U2004','U2014','U2005','U2006',],]
, 'U2013':[ 39,2,'マーク男', 1,'', [10, , , , , , , , , ],[ 1, 1, 1, 1, 1, 1, 1, 7],[ , , , , , , ], , [-1,-1, 2, 1, 1, 1, 1, 1, 1, 1, 1,-1, 1,-1, 1, 1, 1, , ,-1, , 1,-1,-1], ,'U1003', [-1,-1, 2, 1, 1, 1, 1, 1, 1, 1, 1,-1, 1,-1, 1, 1, 1, , ,-1, , , ],['U2001','U2002','U2003','U2004','U2014','U2005','U2006',],]
, 'U2011':[ 41,2,'シャンブレー', 1,'C202', [10, , , , , , , , , 6],[ 3, 0, 3, 4, 0, 2,-1,11],[ , , , , , , ], , [-1,-1, , , , 1, , , , , 1,-1, ,-1, , , , 2,-1,-1, , 1,-1,-1], ,'U1009', [-1,-1, , , , 1, , , , , 1,-1, ,-1, , , , 2,-1,-1, , , ],['U1003','U2001','U2002','U2003','U2004','U2014','U2005','U2006',],]
, 'U2012':[ 42,2,'ロラン', 1,'C015', [10, , , , , , , , , 5],[ 1, 4, 2, 2, 1,-1, 1,10],[ , , , , , , ], , [-1,-1, , , , 1, , , , , ,-1, ,-1, , 2, 1,-1,-1,-1, , 1,-1,-1], ,'U1006', [-1,-1, , , , 1, , , , , ,-1, ,-1, , 2, 1,-1,-1,-1, , , ],['U1003','U2001','U2002','U2003','U2004','U2014','U2005','U2006',],]
};
var myuniadj = {
'sample': ['str','mgc','skl','spd','luk','def','mdf',]
, 'plus': {
'hp': [ 1, 1, , , 2, 2, 2,]
, 'str':[ 4, , 2, , , 2, ,]
, 'mgc':[ , 4, , 2, , , 2,]
, 'skl':[ 2, , 4, , , 2, ,]
, 'spd':[ , , 2, 4, 2, , ,]
, 'luk':[ 2, 2, , , 4, , ,]
, 'def':[ , , , , 2, 4, 2,]
, 'mdf':[ , 2, , 2, , , 4,]
}
, 'minus': {
'hp': [-1,-1, , ,-1,-1,-1,]
, 'str':[-3, ,-1, , ,-1, ,]
, 'mgc':[ ,-3, ,-1, , ,-1,]
, 'skl':[-1, ,-3, , ,-1, ,]
, 'spd':[ , ,-1,-3,-1, , ,]
, 'luk':[-1,-1, , ,-3, , ,]
, 'def':[ , , , ,-1,-3,-1,]
, 'mdf':[ ,-1, ,-1, , ,-3,]
}
};
//-->
</script>
}}
#javascript(){{
<script language="JavaScript"><!--
//////////////////////////////////////////////////
function num(arg){
return isNaN(arg)?0:arg;
}
function _debug(msg,lbl){
// return;
dbg = $('#debugmsg');
if(!dbg.length){
$('body').append('<div id="debugmsg" style="display:none;"></div>');
dbg = $('#debugmsg');
}
if(dbg) dbg.html(dbg.html()+(lbl?'['+lbl+'] '+msg:msg)+"<br />\n");
if (lbl) console.log('['+lbl+'] '+msg);
if ('object' ==typeof msg) console.dir(msg);
}
//////////////////////////////////////////////////
function to_local_key(key){
var ret = '';
switch(key){
// スロットに保存しないキーを列挙
case 'slot':
case 'fs':
break;
default:
var t = $('#slot');
// var t = document.getElementById('slot');
if (t && t.length){
ret = t.val();
if ('0'==ret) ret = '';
}
}
ret = ret?ret+'/'+key:key;
return ret;
}
//////////////////////////////////////////////////
var local_data = {};
function save_local(name,value){
name = to_local_key(name);
// _debug(value,name);
if (undefined==value){
delete_local(name);
}
switch(true){
case $.browser.mozilla:
case $.browser.opera:
case $.browser.safari:
case $.browser.msie:
return localStorage.setItem(name,value);
break;
default:
return localStorage.setItem(name,value);
}
}
//////////////////////////////////////////////////
function load_local(name,defval){
name = to_local_key(name);
switch(true){
case $.browser.mozilla:
case $.browser.opera:
case $.browser.safari:
case $.browser.msie:
ret = localStorage.getItem(name);
break;
default:
ret = localStorage.getItem(name);
}
// _debug(ret,name);
if (ret) return ret;
return defval;
}
//////////////////////////////////////////////////
function delete_local(name){
name = to_local_key(name);
localStorage.removeItem(name);
}
//////////////////////////////////////////////////
function clear_local(){
localStorage.clear();
}
//////////////////////////////////////////////////
function keep_max(max,chk){
if(max && chk){
for(var i in max){
if (max[i] < chk[i]) max[i] = chk[i];
}
}
return max;
}
//////////////////////////////////////////////////
//////////////////////////////////////////////////
//////////////////////////////////////////////////
//////////////////////////////////////////////////
//////////////////////////////////////////////////
// スキルオブジェクト
var skls = {};
function CSkill(skcode){
if (!skcode) return ;
if (skls[skcode]) return skls[skcode];
var skl = skills[skcode];
if (!skl) return ;
skls[skcode] = this;
this.code = skcode;
this.name = skl[2];
}
function Skill(skcode){
if (!skcode) return null;
if (skls[skcode]) return skls[skcode];
var ins = new CSkill(skcode);
if (ins.code) return skls[skcode] = ins;
return null;
}
function getSkill(skcode){return Skill(skcode);}
function get_skill(skcode){return Skill(skcode);}
//////////////////////////////////////////////////
// ユニットクラスオブジェクト
function CJobclass(clcode,unit){
if (!clcode) return ;
if (jobs[clcode]) return jobs[clcode];
var cls = classes[clcode];
if (!cls) return ;
//////////////////////////////////////////////////
this.adj_params = function(type,adj){
var ret = null;
var prm = null;
switch(type){
case 'limit': prm = this.params.limit; break;
case 'buffer': prm = this.params.buffer; break;
case 'basic': prm = this.params.basic; break;
case 'enhance': prm = this.params.enhance; break;
}
if (prm){
ret = {};
for(var idx in prm){
ret[idx] = prm[idx] + num(adj[idx]);
}
}
return ret;
}
//////////////////////////////////////////////////
this.label = function(sex){
switch(this.code){
case 'C014': return 2==sex?'シスター':'僧侶';
case 'C119': if (2==sex) return 'バトルシスター'; // 女性の場合はバトルモンク→バトルシスターに修正
}
return this.name;
}
//////////////////////////////////////////////////
var label = classes['code'];
jobs[clcode] = this;
this.code = clcode;
this.type = cls[0];
this.name = cls[1];
this.maxLv = cls[2];
var key = '';
switch(this.type){
case 0: key = 'upperJobClasses'; break; // 下級職
case 1: key = 'lowerJobClasses'; break; // 上級職
case 2: // 特殊職
}
if (key){
this[key] = {};
if(cls[3] && cls[3].length){
ccd = cls[3];
this[key][ccd] = Jobclass(ccd);
}
if(cls[4] && cls[4].length){
ccd = cls[4];
this[key][ccd] = Jobclass(ccd);
}
}
this.sex = cls[5];
this.skills = {};
for(i=6;i<=7;i++){
if(cls[i] && cls[i].length){
skcode = cls[i];
this.skills[skcode] = Skill(skcode);
}
}
this.weapons = {};
var lst = label[8];
for(var idx in lst){
var v = lst[idx];
if (v) this.weapons[v] = cls[8][idx];
}
this.params = {limit:{},basic:{},buffer:{},enhance:{}};
var lst = label[9];
for(var idx in lst){
var v = lst[idx];
if (v){
this.params.limit[v] = cls[ 9][idx]; // 上限値
this.params.basic[v] = cls[10][idx]; // 最低パラメータ
this.params.buffer[v] = this.params.limit[v] - this.params.basic[v];
this.params.enhance[v] = cls[11][idx]; // ダブル時強化パラメータ
}
}
return this;
}
var jobs = {};
function Jobclass(clcode,unit){
if (!clcode) return ;
if (jobs[clcode]) return jobs[clcode];
var ins = new CJobclass(clcode);
if (ins.code) return jobs[clcode] = ins;
return null;
}
function getJobclass(clcode,unit){return Jobclass(clcode,unit);}
function get_jobclass(clcode,unit){return Jobclass(clcode,unit);}
//////////////////////////////////////////////////
// ユニットパラメータオブジェクト
function CParams(type,prm){
// _debug(typeof prm);
// _debug(prm);
var lst = ['hp','str','mgc','skl','spd','luk','def','mdf'];
var i = 0;
var sum = 0;
switch(type){
case 'adj': lst = ['str','mgc','skl','spd','luk','def','mdf']; break;
case 'init': lst = ['Lv','hp','str','mgc','skl','spd','luk','def','mdf','mov']; break;
default:
}
for(var idx in lst){
this[lst[idx]] = prm[idx];
sum += prm[idx];
}
switch(type){
case 'adj': this.sum = sum; break;
}
return this;
}
function Params(type,prm){return new CParams(type,prm);}
// var Unit_count=0;
//////////////////////////////////////////////////
// ユニットオブジェクト
function CUnit(code,spscode,vpcode){
// _debug(spscode+':'+vpcode,code);
//////////////////////////////////////////////////
this.toString = function(){
return '[' + this.code + ']'
+ this.name;
}
//////////////////////////////////////////////////
this.toBoolean = function(){return this.code?true:false;}
this.valid = function(){
return this.code?true:false;
}
//////////////////////////////////////////////////
// 自由親を設定する
this.set_variable_parent = function(vpcode,vpvpcode){
if (1==this.gen) return null;
// _debug('['+this.code+']'+vpcode+':'+vpvpcode,'set_variable_parent');
if (!vpcode) return null;
if (this.parents.variable && this.parents.variable.code==vpcode) return this;
this.parents.variable = null; // 自由親をリセット
var vp = Unit(vpcode);
if (!vp) return null;
var index = vpcode;
if (vpvpcode) index += vpvpcode;
vp.set_variable_parent(vpvpcode); // 自由親に、自由祖父母を設定しておく
this.parents.variable = vp; // 一時的に自分の自由親を上書き
if (this.variations[vpcode]) return this.variations[vpcode]; // 既に設定済み(すぐに参照可能)
if (vp.valid()){
this.variations[vpcode] = {limit_adj:{},stuff_cls:{},skills:{}};
var p = this.variations[vpcode]; // ポインタ
// 上限値補正継承
for(var idx in this.variations.init.limit_adj){
p.limit_adj[idx] = num(this.variations.init.limit_adj[idx]) + (vp.limit_adj[idx]);
}
// 習得可能スキルコピー
for(var idx in this.variations.init.skills){
p.skills[idx] = this.variations.init.skills[idx];
}
// 転職可能クラスコピー
for(var idx in this.stuff.class){ // 親の継承クラスのフラグを確認
p.stuff_cls[idx] = this.stuff.class[idx];
this.add_skill(2,idx,p.skills);
}
// 転職可能クラス継承
for(var idx in vp.stuff.inherit_flg){ // 親の継承クラスのフラグを確認
var flg = vp.stuff.inherit_flg[idx];
var inheritable = false;
switch(flg){
case -1: break; // マイナスは継承不可
case 1: case 2: inheritable = true; break; // 継承可能
case 3: if (1==this.sex)inheritable = true; break; // 息子にのみ継承
case 4: if (2==this.sex)inheritable = true; break; // 娘にのみ継承
case 9: // クロムのロードのみ。考慮不要
}
if (inheritable){
p.stuff_cls[idx] = Jobclass(idx);
this.add_skill(2,idx,p.skills);
}else{ // 自由親の習得スキル継承チェックは別途行う
// this.add_skill(2+vp.sex,idx,p.skills);
}
}
// 自由親の習得可能スキルを継承(継承できないクラス用)
var type = 2+vp.sex;
for(var idx in vp.skills){
this.add_skill(type,idx,p.skills);
}
}
}
//////////////////////////////////////////////////
this.set_spouse = function(spscode,vpcode){
if (!spscode) return null;
// _debug('['+this.code+']'+spscode+':'+vpcode,'set_spouse');
if (this.spouse && this.spouse.code == spscode) return this;
if (vpcode){ // 自由親が指定されている場合はまず自分の自由親を設定
this.set_variable_parent(vpcode);
}
this.spouse = null;
// 配偶者を処理
if (spouse = Unit(spscode)){
this.spouse = spouse;
this.children.variable = null;
spouse.children.variable = null;
// 固定子供がいる場合は配偶者の情報を上乗せ
if (this.children.fixed){
this.children.fixed.set_variable_parent(spscode);
spouse.children.variable = this.children.fixed;
}
if (spouse.children.fixed){
spouse.children.fixed.set_variable_parent(this.code,vpcode); // 配偶者の子供には自分のコードと自分の自由親のコードを指定
this.children.variable = spouse.children.fixed;
}
spouse.set_spouse(this.code);
}
}
//////////////////////////////////////////////////
// このユニットに配偶者を指定して子供(配列オブジェクト)を取得する
this.get_children = function(spouse_code){
ret = {}; // 子供がいなくてもオブジェクトを返す
if (spouse_code){ // 配偶者が指定されている場合
spouse = Unit(spouse_code); // 配偶者コードから配偶者情報を取得
}else{
// spouse =
}
if (this.children.fixed){ // 固定の子供がいる場合
}
if (spouse_code){ // 配偶者が指定されている場合
spouse = Unit(spouse_code); // 配偶者コードから配偶者情報を取得
if (spouse && spouse.length){
}
}
return ret;
}
//////////////////////////////////////////////////
this.prop = function(name){
var ret = null;
var vp = this.parents.variable;
// _debug(vp);
switch(name){
case 'limit_adj':
case 'skills':
if (vp && vp.valid){
ret = this.variations[vp.code][name];
}else{
ret = this[name];
}
break;
case 'stuff_cls':
if (vp && vp.valid){
ret = this.variations[vp.code].stuff_cls;
}else{
ret = this.stuff.class;
}
break;
default:
ret = this[name];
}
return ret;
}
//////////////////////////////////////////////////
this.add_skill = function(type,code,p){
if (!code) return;
if (!this.skills) this.skills = {};
if (!p) p = this.skills;
var skls = {};
switch(typeof code){
case 'string':
if (4==code.length){
var cls = CJobclass(code);
var i = 0;
for(var idx in cls.skills) if (cls.skills[idx]) skls[i++] = cls.skills[idx].code;
if (cls.upperJobClasses) for(var idx in cls.upperJobClasses) this.add_skill(type,idx,p);
}else{
skls[0] = code;
}
case 'object':
var i=0;
for(var idx in code.skills) if (code.skills[idx]) skls[i++] = code.skills[idx].code;
if (code.upperJobClasses) for(var idx in code.upperJobClasses) this.add_skill(type,idx,p);
}
for(var idx in skls){
switch(type){
case 3: case 4: // 継承出来ないスキルの設定
switch(skls[idx]){
case 'C206S1': // 魔防+10
case 'C206S2': // 居合一閃
case 'C204S2': // 特別な踊り
case 'C208S1': // 愛の叫び
case 'C208S2': // 絆
case 'C001S1': // デュアルアタック+
case 'C001S2': // カリスマ
continue; // 上記スキルの場合は継承不可
case 'C101S2': // 王の器
if (2==this.sex) continue; break;
case 'C101S1': // 天空
if (1==this.sex) continue; break;
}
}
if (!p[skls[idx]] || type <p[skls[idx]]) p[skls[idx]] = type;
}
}
//////////////////////////////////////////////////
// プロパティ設定
if (!code) return null;
var label = chars['code'];
var base = chars[code];
if (!base) return;
if (!units[code] || units[code].valid()){
units[code] = this;
this.code = code; // 内部コード
this.id = base[0]; // 内部ID
this.generation = base[1]; // 世代
this.gen = base[1]; // 世代
this.name = base[2]; // ユニット名
this.sex = base[3]; // 性別
this.init_class = Jobclass(base[4]); // 初期クラス
this.init_param = Params('init',base[5]); // 初期パラメータ
this.limit_adj = Params('adj',base[6]); // 上限値補正
this.weapon_levels = {}; // 初期武器レベル
var weapons = base[7];
var lst = label[7];
for(var idx in lst){
this.weapon_levels[lst[idx]] = num(weapons[idx]);
}
this.skills = {}; // 習得可能スキル
this.init_skills = {}; // 初期スキル
lst = base[8]?base[8].split(','):[];
for(var idx in lst){
var skcode = lst[idx];
this.add_skill(1,skcode); // 初期スキル
this.init_skills[skcode] = Skill(skcode); // lst[idx];
}
this.add_skill(2,'C300S1'); // 全能力+2
this.add_skill(2,'C300S2'); // エリート
// 素質
this.stuff = {flg:{},class:{},inherit:{}}
lst = base[9];
for(var idx in lst){
var v = lst[idx];
var clcode = label[9][idx];
this.stuff.flg[clcode] = v;
if (!v) continue;
switch(v){
case 1: // 転職可能クラス
case 2: // 初期クラス
var jc = Jobclass(clcode); // lst[idx];
this.add_skill(2,jc);
this.stuff.class[clcode] = jc;
case -1: // 転職不可クラス
}
}
// 素質(継承)
this.stuff.inherit = {};
this.stuff.inherit_flg = {};
lst = base[12];
for(var idx in lst){
var v = lst[idx];
var clcode = label[12][idx];
this.stuff.inherit_flg[clcode] = v;
if (!v) continue;
switch(v){
case 1: // 転職可能クラス
case 2: // 初期クラス
this.stuff.inherit[clcode] = Jobclass(clcode); // lst[idx];
case -1: // 転職不可クラス
switch(clcode){
case 'C207': // オーバーロード
this.add_skill(3,'C999S2'); // 覇王
break;
// case 'C204': // 踊り子
// this.add_skill(4,'C204S1'); // 幸運+4
}
}
}
// 配偶者一覧
this.spouses = {};
lst = base[13];
for(var idx in lst){
var v = lst[idx];
if (!v) continue;
// this.spouses[v] = Unit(v);
this.spouses[idx] = v;
}
this.variations = {init:{}};
this.variations.init.limit_adj = this.limit_adj;
this.variations.init.stuff_cls = this.stuff.class;
this.variations.init.skills = this.skills;
// 親・子供処理
this.children = {fixed:null,variable:null};
this.parents = {fixed:null,variable:null};
if (base[10]) this.children.fixed = Unit(base[10]); // 固定子供
if (base[11]){
var p = this.parents.fixed = Unit(base[11]); // 固定親
for(var idx in p.stuff.class){
this.add_skill(2+p.sex,idx); // 継承限定スキル
}
}
}// if (units[code]){
// 自由親が指定されている場合
// _debug(this.generation+':'+vpcode,this.name);
// _debug(ret,name);
if (1<this.generation && vpcode) this.set_variable_parent(vpcode);
this.set_spouse(spscode,vpcode);
//////////////////////////////////////////////////
this.get_name = function(prop_name){
switch(prop_name){
case 'sex': return 1==this.sex?'male':'female';
case 'gen': return 1==this.gen?'gen1':'gen2';
}
return '';
}
//////////////////////////////////////////////////
}
var units = {};
function Unit(code,spscode,vpcode){
if (!code) return null;
var index = code;
if (!units[index]){
var ins = new CUnit(code,spscode,vpcode);
if (ins.code) units[index] = ins;
}
var u = units[index];
if (!u) return null;
if (1<u.generation && vpcode){
if (!u.parents.variable || u.parents.variable.code!=vpcode){
u.set_variable_parent(vpcode);
}
}
if (spscode){
if (!u.spouse || u.spouse.code!=spscode){ // 指定した配偶者が設定されていない場合
u.set_spouse(spscode,vpcode);
}
}
return u;
}
function getUnit(code,spscode,vpcode){return Unit(code,spscode,vpcode);}
function get_unit(code,spscode,vpcode){return Unit(code,spscode,vpcode);}
////////////////////////////////////////////////////////////////////////////////////////////////////
function CBlock(id){
var d = $('#'+id);
if (!d.length) return ;
this.d = d;
//////////////////////////////////////////////////
this.clearFormat = function(){
var d = this.d;
this.name.removeClass('male female gen1 gen2');
d.find('.skill').removeClass('iht dis ena iht1 bold acq');
}
//////////////////////////////////////////////////
this.clear = function(){
this.clearFormat();
var d = this.d;
// this.name.html(' ').removeClass('male female gen1 gen2');
this.name.html(' ');
d.hide();
// d.find('.skill').removeClass('iht dis ena iht1 bold acq');
d.find('.num').removeClass('maxval');
clear_selectors = ['.name'];
for(var idx in clear_selectors){
selector = clear_selectors[idx];
tmp = this.d.find(selector);
if (tmp){
tmp.html(' ');
}
}
this.lmtadj.html('<td class="num str">0</td><td class="num mgc">0</td><td class="num skl">0</td><td class="num spd">0</td><td class="num luk">0</td><td class="num def">0</td><td class="num mdf">0</td><td class="num bold">0</td>');
d.find('.class_stuff').empty();
d.find('.class_buf').empty();
return this;
}
//////////////////////////////////////////////////
this.init = function(){
this.d.hide();
var base = $('#chara_info');
var d = this.d;
this.valid = true;
this.id = id;
this.name = d.find('.name').text('');
this.lmtadj = d.find('.lmtadj');
this.skills = d.find('.skills').html(base.find('.skills').html());
this.classes = {};
this.classes.stuff = d.find('.class_stuff').empty();
this.classes.buf = d.find('.class_buf').empty();
this.sum = {};
this.sum.lowerclasses = d.find('.sumlowcls').text('');;
this.sum.upperclasses = d.find('.sumupcls').text('');;
if (this.skills.length){
this.skill = {};
for(var idx in skills){
var blk = d.find('.'+idx);
if (blk.length) this.skill[idx] = blk;
}
}
this.clear();
return this;
}
//////////////////////////////////////////////////
this.init();
//////////////////////////////////////////////////
this.class = function(type,value){
var ret = '';
switch(type){
case 'sex': return ('object'==typeof value && value.sex)||value==1?'male':'female'; break;
case 'gen': return ('object'==typeof value && value.gen)||value==1?'gen1':'gen2'; break;
case 'fam': return value.children.fixed?'parent':'';
case 'num': return 0==num(value)?' neutral ':(0<value?' positive ':' negative '); break;
case 'cls':
ret = value;
var ini_cls = this.u.init_class;
if (ini_cls && ini_cls.code==value) ret +=' ini';
var key = 'acq/'+this.u.code+'/'+value;
if (load_local(key)) ret +=' acquired';
break;
case 'unit':
// _debug(value,type);
ret = this.class('sex',value.sex);
ret += ' '+this.class('gen',value.gen);
ret += ' '+this.class('fam',value);
}
return ret;
}
//////////////////////////////////////////////////
this.setSkill = function(type,code){
if (!code) return;
var t = null;
if (code.match(/^C\d\d\d$/)){ // クラスコードの場合
var jc = Jobclass(code);
if (jc){
t = [];
for(var idx in jc.skills) if (idx) t.push(idx);
}
}else if(code.match(/^C\d\d\dS\d$/)){ // スキルコードの場合
t = [code];
}
if (t){
var cls = type;
for(var idx in t){
var skcode = t[idx];
var p = this.skill[skcode];
if (p){
switch(type){
case 'enable': case 'ena': add_class = 'ena'; break;
case 'disable': case 'dis': add_class = 'dis'; break;
case 'inherit': case 'iht': case 'iht1':
p.removeClass('iht dis ena iht1');
add_class = 'iht1'==type?'iht1':'iht';
break;
case 'acquired': case 'acq': add_class = 'acq'; break;
case 'forget': case 'fgt': p.removeClass('acq'); break;
}
p.addClass(cls);
}
}
}
}
//////////////////////////////////////////////////
this.setUnit = function(u){
this.init();
// this.clear();
if (!u) return ;
this.u = u;
var d = this.d;
var adj = u.prop('limit_adj')
this.name.text(u.name)
.addClass(u.get_name('sex'))
.addClass(u.get_name('gen'))
.attr('code',u.code);
if (adj){
var html = '';
for(var idx in adj){
html += '<td class="num str'+this.class('num',adj[idx])+'">'+num(adj[idx])+'</td>';
}
}
// 上限値補正表示
this.lmtadj.html(html);
// スキル表示
var skls = u.prop('skills');
for(var idx in skls){
var cls = '';
switch(skls[idx]){
case 1: case 2: cls = 'ena'; break;
case 3: cls = 'iht1'; break;
case 4: cls = 'iht'; break;
}
this.setSkill(cls,idx);
}
// 素質表示
var stfs = u.prop('stuff_cls');
var tr = [];
var row = 0;
var col = 0;
var lst = chars['code'][9];
for(var i in lst){
idx = lst[i];
if (!stfs[idx]) continue;
var inf = stfs[idx];
if (inf.upperJobClasses){
for(var ccd in inf.upperJobClasses){
tr[row++] = {0:inf.code,1:ccd};
}
}else{
tr[row] = 2==inf.type?{0:null,1:inf.code}:{0:inf.code,1:null};
}
}
var pn = ['hp','str','mgc','skl','spd','luk','def','mdf']; // 表示する項目一覧
var emp = '<tr><td colspan="9" class=""></td>';
var vs = [
{adj:'limit',prop:'stuff',pn:['hp','str','mgc','skl','spd','luk','def','mdf']}
,{adj:'buffer',prop:'buf',pn:['hp','str','mgc','skl','spd','luk','def','mdf']}
];
var rstr=[['',''],['','']];
var maxs = [{},{}]; // [[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];
for(var k in vs){
for(var l in vs[k].pn){
var pn=vs[k].pn[l];
maxs[k][pn] = 0;
}
}
var sumcls = [0,0];
for(var i=0;i<tr.length;i++){
var r = tr[i];
rstr=[['',''],['','']];
for(var j=0;j<2;j++){ // 下級職->上級職 loop
var rs = 1; // rowspan
if (!r[j]){
for(var k in vs) rstr[k][j] = emp;
}else if (i==0 || (tr[i-1] && tr[i-1][j]!=r[j])){
var rs = (tr[i+1] && tr[i+1][j]==r[j])?2:1;
var jc = Jobclass(r[j]);
var cls1 = this.class('cls',jc.code);
var cls2 = cls1.replace('acquired','');
var atr_class = '';
for(var k in vs){ // 出力するビューの分ループ(標準では上限値一覧と伸び代一覧)
rstr[k][j] = rstr[1][j] = '<td rowspan="'+rs+'" class="'+cls1+' class_name'+atr_class+'">'+jc.label(u.sex)+'</td>';
var lmt = jc.adj_params(vs[k].adj,adj);
maxs[k] = keep_max(maxs[k],lmt);
for(var n in vs[k].pn){ idx = vs[k].pn[n]; // パラメータループ
rstr[k][j] += '<td rowspan="'+rs+'" class="'+cls2+' num '+idx+' n'+lmt[idx]+atr_class+'">'+lmt[idx]+'</td>';
}
}
sumcls[j]++;
}else{ // 空のとき
}
}
for(var k in vs){ // ビューごとの表示処理
this.classes[vs[k].prop].append('<tr>'+rstr[k][0]+rstr[k][1]+'</tr>');
}
}
for(var k in vs){ // ビューごとの表示処理
var v = this.classes[vs[k].prop];
for(var n in vs[k].pn){ idx = vs[k].pn[n];
var c_pn = '.'+idx;
var c_n = '.n'+maxs[k][idx];
v.find('.num' + c_pn + c_n).addClass('maxval');
}
}
this.sum.lowerclasses.text(sumcls[0]);
this.sum.upperclasses.text(sumcls[1]);
d.show();
}
}
blocks = {};
function Block(id){
if (!id) return null;
if (!blocks[id]){
var ins = new CBlock(id);
if (ins && ins.valid) return blocks[id] = ins;
}
var p = blocks[id];
if (p && p.d){
return p;
}
return null;
}
//-->
</script>
}}
表示オプション
横に並べて表示:
変化行の前後のみ表示: