");
$(".toolchip").css({'font-size':'1.2em','font-weight':'bold','width':'210px','display':'none','position':'absolute','z-index':'9999'});
$(".tcparts").css({'width':'100%','padding':'0.3em 0.5em','box-sizing':'border-box'});
$(".toolchip_title").css({'color':'#FFFFFF','background':'#101010','border-radius':'0.5em 0.5em 0em 0em'});
$(".toolchip_text").css({'border-left':'solid thin','border-right':'solid thin','color':'#000000','background':'#FFFFFF','border-radius':'0em 0em 0em 0em','text-align':'left'});
$(".toolchip_foot0").css({'font-size':'0.6em','border-left':'solid thin','border-right':'solid thin','border-bottom':'solid thin','color':'#000000','background':'#F6EEA5','border-radius':'0em 0em 0.5em 0.5em','text-align':'center'});
//メモ機能
$("body form[name='fmMiniForum']").attr("id","text_section0");
$("#text_section0 td:contains('You can leave a message for other players')").text($("#text_section0 td:contains('You can leave a message for other players')").text().replace(/You can leave a message for other players/,"他のプレーヤーにメッセージを残すことができます"));
$("#text_section0 table tbody").append("
自分の戦略用にメモを残すことができます.
");
$("#text_section0 table tbody").append("
メモ1メモ2メモ3
");
$("#save_btn").click(function(){save_memo();});
$("#text_section2 input[name='memo_text']:radio").change(function(){load_memo();});
var a=$(".clTexteFort:contains('Game')").text().replace(/\s+/g,"").split(" ");var b=a[0].split("-");
var storage = localStorage;
load_memo();
function save_memo(){storage.setItem("bruxelles_"+b[0]+$("#text_section2 input[name='memo_text']:checked").val(),$("#miniforumTextarea").val());}
function load_memo(){$("#miniforumTextarea").val(storage.getItem("bruxelles_"+b[0]+$("#text_section2 input[name='memo_text']:checked").val()));}
//ニュースエリア
$("#text_section0 table tbody").append("
");
//グローバル変数
var chkdom = [
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,
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,
];
//Infoエリアのメッセージ日本語化
var infotext_en = [
"Choose the card to activate",
"Move an military unit and\\/or confirm",
"Choose a place where to activate the card",
"Number of resources to choose",
"Choose a god for the offering",
"Choose other cards to discard or make the offering",
"Please wait your turn !",
"Choose a card to play or to discard",
"Building activation - Number of buildings to choose",
"End of your turn",
"Select how you want to pay this building",
"Place your new building on the board",
"Building activation",
"Your stock",
"Cost",
"Your Choice",
];
var infotext_jp = [
"活性化するカードを選んでください",
"軍事ユニットを動かすか、または決定(CONFIRM)を選んでください",
"カードを活性化させる場所を選んでください",
"選択できる資源の数",
"捧げる神を選んでください",
"他の捨て札を選ぶか神への捧げ物を実行してください",
"あなたのターンをお待ちください",
"プレイするカードを選ぶか、もしくは捨ててください",
"建物の活性化 - 選択できる建物の数",
"ターン終了します",
"この建物建設の支払い方法を選んでください",
"ボード上に新しい建物を置いてください",
"建物活性化",
"あなたの資源",
"コスト",
"選択済み",
];
var helptext_en = [
"Gain 2 gold per discarded card. Also gain 1 wooden maritime building.",
"Gain 1 resource of your choice per discarded card. Also gain 1 wooden production building.",
"Gain 1 wooden scientific building. You can draw 1 additional card per discarded card.",
"Gain 1 VP if you have discarded 1 card; 2 VP \\(total\\) if you have discarded more than 1. Also gain 1 wooden civil building.",
"Gain 1 wooden building of your choice per discarded card. You do not have to take a military building.",
"Use the power of one of the 5 other gods. Jupiter acts as a \\“wild\\”. You can only invoke one god per offering.",
];
var helptext_jp = [
"捨て札1枚につき2ゴールドを得る。加えて海事施設コマ1つを得る",
"捨て札1枚につき任意の資源1つを得る。加えて生産施設コマ1つを得る",
"科学施設コマ1つを得る。加えて捨て札1枚につき追加で1枚カードをドローする",
"捨て札1枚で1VPを得る。捨て札が2枚以上で合計2VPを得る。加えて公共施設コマ1つを得る",
"捨て札1枚につき好きな施設を1つ得る。軍隊である必要はない",
"他の5人の神のうち1人の能力を使うワイルドカードとして使用する",
];
var helpname_en = [
"Neptune",
"Ceres",
"Minerva",
"Vesta",
"Mars",
"Jupiter",
];
var helpname_jp = [
"ネプチューン",
"セレス",
"ミネルバ",
"ベスタ",
"マーズ",
"ジュピター",
];
var btntext_en = [
"RESTART YOUR TURN",
// "CONFIRM",
"MAKE THE OFFERING",
"RESTART THE SELECTION",
"RESTART THE SALE",
"RESTART THE MOVE",
"",
];
var btntext_jp = [
"ターンをやり直す",
// "決定",
"捧げ物をする",
"選択をやり直す",
"売却をやり直す",
"移動をやり直す",
"",
];
var itemname_en = [
"Gain 2 gold per discarded card. Also gain 1 wooden maritime building.",
"Gain 1 resource of your choice per discarded card. Also gain 1 wooden production building.",
"Gain 1 wooden scientific building. You can draw 1 additional card per discarded card.",
"Gain 1 VP if you have discarded 1 card; 2 VP \\(total\\) if you have discarded more than 1. Also gain 1 wooden civil building.",
"Gain 1 wooden building of your choice per discarded card. You do not have to take a military building.",
"Use the power of one of the 5 other gods. Jupiter acts as a \\“wild\\”. You can only invoke one god per offering.",
"Wood",
"Clay",
"Stone",
"Wheat",
"Gold",
"Cards in hand",
"VP",
"Personnal supply of maritime buildings",
"Personnal supply of production buildings",
"Personnal supply of scientific buildings",
"Personnal supply of civil buildings",
"Personnal supply of military buildings",
"General supply of temples",
"Draw pile",
"Discard pile",
"show this player board",
"First player",
];
var itemname_jp = [
"捨て札1枚につき2ゴールドを得る。加えて海事施設コマ1つを得る",
"捨て札1枚につき任意の資源1つを得る。加えて生産施設コマ1つを得る",
"科学施設コマ1つを得る。加えて捨て札1枚につき追加で1枚カードをドローする",
"捨て札1枚で1VPを得る。捨て札が2枚以上で合計2VPを得る。加えて公共施設コマ1つを得る",
"捨て札1枚につき好きな施設を1つ得る。軍隊である必要はない",
"他の5人の神のうち1人の能力を使うワイルドカードとして使用する",
"木材",
"粘土",
"石材",
"麦",
"ゴールド",
"手札",
"勝利点",
"海事施設の個人ストック",
"生産施設の個人ストック",
"科学施設の個人ストック",
"公共施設の個人ストック",
"軍事施設の個人ストック",
"寺院の共通ストック",
"山札",
"捨て札",
"このプレーヤーのボードを見る",
"ファーストプレーヤー",
];
var chiptitle = [
["0",""],
["製材業者","あなたが占有している森1つにつき1勝利点を得る"],
["レンガ職人ギルド","あなたが占有している湿地1つにつき1勝利点を得る"],
["パン屋のギルド","あなたが占有している畑1つにつき1勝利点を得る"],
["石工ギルド","あなたが占有している山脈1つにつき1勝利点を得る"],
["交易所","あなたが占有している畑1つにつき3ゴールドを得る"], //5
["交易所","あなたが占有している森1つにつき3ゴールドを得る"],
["交易所","あなたが占有している湿地1つにつき3ゴールドを得る"],
["交易所","あなたが占有している山脈1つにつき3ゴールドを得る"],
["醸造所","2つ以上の建物で占有している土地1つにつき3ゴールドを得る"],
["醸造所","3つ以上の建物で占有している土地1つにつき5ゴールドを得る"], //10
["醸造所","4つ以上の建物で占有している土地1つにつき8ゴールドを得る"],
["醸造所","5つ以上の建物で占有している土地1つにつき10ゴールドを得る"],
["集会所","それぞれが2つ以上の建物で占有している土地のペア1つにつき勝利点1を得る"],
["集会所","3つ以上の建物で占有している土地1つにつき勝利点1を得る"],
["凱旋門","4つ以上の建物で占有している土地1つにつき勝利点2を得る"], //15
["凱旋門","5つ以上の建物で占有している土地1つにつき勝利点3を得る"],
["小規模生産施設","正確にあなたの生産施設のうち1つは、その土地に関連した資源を1つ生産する"],
["共同住宅","畑に建設された生産施設1つにつき麦2を得る"],
["共同住宅","森に建設された生産施設1つにつき木材2を得る"],
["共同住宅","湿地に建設された生産施設1つにつき粘土2を得る"], //20
["共同住宅","山脈に建設された生産施設1つにつき石材2を得る"],
["レンガ工場","生産施設がある湿地を選ぶ。この湿地の建物1つにつき粘土1を得る"],
["採石場","生産施設がある山脈を選ぶ。この山脈の建物1つにつき石材1を得る"],
["製材所","生産施設がある森を選ぶ。この森の建物1つにつき木材1を得る"],
["農場","生産施設がある畑を選ぶ。この畑の建物1つにつき麦1を得る"], //25
["商業帆船","麦を4ゴールドで売却する"],
["商業帆船","木材を4ゴールドで売却する"],
["商業帆船","粘土を4ゴールドで売却する"],
["商業帆船","石材を4ゴールドで売却する"],
["小さな港","麦1つを勝利点1で売却する(最大6)"], //30
["小さな港","木材1つを勝利点1で売却する(最大6)"],
["小さな港","粘土1つを勝利点1で売却する(最大6)"],
["小さな港","石材1つを勝利点1で売却する(最大6)"],
["商業港","石材1と木材1のペアを1ロットとして最大2ロットまで売却し、各ロットごとに3勝利点得る"],
["商業港","粘土1と麦1のペアを1ロットとして最大2ロットまで売却し、各ロットごとに3勝利点得る"],
["商業港","粘土1と石材1のペアを1ロットとして最大2ロットまで売却し、各ロットごとに3勝利点得る"],
["商業港","石材1と麦1のペアを1ロットとして最大2ロットまで売却し、各ロットごとに3勝利点得る"],
["ガレー船","任意の資源1つにつき1ゴールドで購入できる(最大3)"],
["学校","あなたの色の建物が2つ以上ある土地1つにつきカード1枚をドローする"],
["大学","あなたの色の建物が3つ以上ある土地1つにつきカード2枚をドローする"],
["作業場","あなたの色の建物が2つ以上ある土地1つにつき建物コマ1つを得る"],
["作業場","あなたの色の建物が3つ以上ある土地1つにつき建物コマ2つを得る"],
["アカデミー","あなたの場にでている青いカード1枚につき勝利点1を得る"],
["アカデミー","あなたの場にでている赤いカード1枚につき勝利点1を得る"],
["アカデミー","あなたの場にでている茶色いカード1枚につき勝利点1を得る"],
["アカデミー","あなたの場にでている緑のカード1枚につき勝利点1を得る"],
["実験室","あなたの場にでている青いカード1枚を活性化する"],
["実験室","あなたの場にでている赤いカード1枚を活性化する"],
["実験室","あなたの場にでている茶色いカード1枚を活性化する"],
["実験室","あなたの場にでている緑色いカード1枚を活性化する"],
["百人隊長","あなたの軍隊を1つ選び、その軍隊に隣接している敵の占有する少なくとも1つの区画から2ゴールドを奪う"],
["一時キャンプ","あなたの軍隊1つを0-4区画動かす。軍隊は敵や蛮族の支配区域も止まることなく横切ることができる。軍隊は船があれば海の上も横切ったり止まったりできる"],
["軍象","各軍隊を0-2区画動かす。軍隊は敵や蛮族の支配区域も止まることなく横切ることができる。軍隊は船があれば海の上も横切ったり止まったりできる"],
["大群","軍隊を1つ選び、その軍隊に隣接している敵の占有する少なくとも1つの区画から勝利点1を奪う"],
["バリスタ","あなたの軍隊が最低1つ傍にいる蛮族の村1つにつき4ゴールドを得る"],
["包囲塔","あなたの軍隊が傍にいる蛮族の村1つから勝利点2を奪う"],
["寺院","ゲーム終了時、あなたの色の建物が5つ以上ある土地1つにつき勝利点6を得る(最大12勝利点)"],
["寺院","ゲーム終了時、あなたの色の建物が4つ以上ある土地1つにつき勝利点4を得る(最大12勝利点)"],
["寺院","ゲーム終了時、あなたの色の建物が3つ以上ある土地1つにつき勝利点3を得る(最大12勝利点)"],
["寺院","ゲーム終了時、あなたの色の建物が2つ以上ある土地1つにつき勝利点2を得る(最大12勝利点)"],
["寺院","ゲーム終了時、あなたの色の建物が1つ以上ある土地1つにつき勝利点1を得る(最大12勝利点)"],
["寺院","ゲーム終了時、所持金3ゴールドにつき勝利点2を得る。このゴールドは最大所持数計算にもつかう(最大12勝利点)"],
["寺院","ゲーム終了時、所有する麦1つにつき勝利点2を得る。この麦は最大所持数計算にもつかう(最大12勝利点)"],
["寺院","ゲーム終了時、所有する石材1つにつき勝利点2を得る。この麦は最大所持数計算にもつかう(最大12勝利点)"],
["寺院","ゲーム終了時、所有する粘土1つにつき勝利点2を得る。この粘土は最大所持数計算にもつかう(最大12勝利点)"],
["寺院","ゲーム終了時、所有する木材1つにつき勝利点2を得る。この木材は最大所持数計算にもつかう(最大12勝利点)"],
["寺院","ゲーム終了時、建設した寺院1つにつき勝利点4を得る(最大12勝利点)"],
["寺院","ゲーム終了時、異なる色のカード5枚をセットとし、そのセットごとに勝利点4を得る(寺院は除く;最大12勝利点)"],
["寺院","ゲーム終了時、あなたの占有している畑1つにつき勝利点4を得る(最大12勝利点)"],
["寺院","ゲーム終了時、あなたの占有している森1つにつき勝利点4を得る(最大12勝利点)"],
["寺院","ゲーム終了時、あなたの占有している湿地1つにつき勝利点4を得る(最大12勝利点)"],
["寺院","ゲーム終了時、あなたの占有している山脈1つにつき勝利点4を得る(最大12勝利点)"],
];
$("body").on("mouseenter","#offJ_1",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#offJ_2",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#offJ_3",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#offJ_4",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#offJ_5",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#offJ_6",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#off_1",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#off_2",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#off_3",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#off_4",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#off_5",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter",".clRessource:not('.clSelect, .clTransparent, .clSelected')",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter mouseleave","#pioche",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter mouseleave","#defausse",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#first",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#unfoldJ_0",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#unfoldJ_1",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#unfoldJ_2",function(){setTimeout(function(){infotext_update();},100);});
$("body").on("mouseenter","#unfoldJ_3",function(){setTimeout(function(){infotext_update();},100);});
// $("body").on("mouseenter mouseleave",".clHighlight",function(){infotext_update();});
$("body").on("mouseenter",".clCarteJeu",function(){disp_toolchip(this,$(this).offset().left,$("img[src='img/plateauJ.png']").offset().top+8);infotext_update();});
$("body").on("mouseleave",".clCarteJeu",function(){$(".toolchip").css("display","none");});
$("body").on("mouseenter",".clMain",function(){disp_toolchip(this,$(this).offset().left,$(this).offset().top-150);infotext_update();});
$("body").on("mouseleave",".clMain",function(){$(".toolchip").css("display","none");});
//■■■■■カードのマウスオーバー時の処理
function initLoad()
{
infotext_update();
}
function infotext_update(num)
{
for(j=0;j<6;j++){
for(var i in helptext_en){if($("#qtip-"+j+"-content").length){$("#qtip-"+j+"-content").html($("#qtip-"+j+"-content").html().replace(RegExp(helptext_en[i],"i"),helptext_jp[i]))};}
for(var i in helpname_en){if($("#qtip-"+j+"-title").length){$("#qtip-"+j+"-title").html($("#qtip-"+j+"-title").html().replace(RegExp(helpname_en[i],"i"),helpname_jp[i]))};};
}
for(j=0;j<71;j++){if(chkdom[j]==0){for(var i in itemname_en){if($("#qtip-"+j+"-content").length){chkdom[j]=1;$("#qtip-"+j+"-content").html($("#qtip-"+j+"-content").html().replace(RegExp(itemname_en[i],"ig"),itemname_jp[i]))};};}};
for(var i in btntext_en){if($("#boutons").length){$("#boutons").html($("#boutons").html().replace(RegExp(btntext_en[i],"i"),btntext_jp[i]))};}
var a = $("#message").text().split(" ");
if((a[0]+a[2]+a[3])=="It'sturn!"){$("#message").html(a[1]+" さんのターンです");}
else
{
if((a[0]+a[1]+a[2]+a[3]+a[4]+a[5])=="Chooseagodfortheoffering")
{
// alert("前"+$("#message").html());
// for(var i in infotext_en){$("#message").html($("#message").html().replace(RegExp(infotext_en[i],"i"),infotext_jp[i]));};
// alert("後"+$("#message").html());
}
else{for(var i in infotext_en){$("#message").html($("#message").html().replace(RegExp(infotext_en[i],"i"),infotext_jp[i]));};};
}
}
function disp_toolchip(thisdom,x,y)
{
var a=$(thisdom).attr("src").replace(/img\/cartes\/en\/c/i,"").replace(/.png/i,"");
$(".toolchip_title").html(chiptitle[a][0]);
$(".toolchip_text").html(chiptitle[a][1]);
$(".toolchip_foot0").html(a);
$(".toolchip").css({top:(y),left:(x),display:'block'});
}
})();