2ちゃんねる ■掲示板に戻る■ 全部 1- 最新50    

■ このスレッドは過去ログ倉庫に格納されています

戦国IXA ツールスレPart39

979 :名無しさん@お腹いっぱい。 :2018/09/08(土) 10:24:08.77 ID:UB3+NUcg0.net
>>974
--- ixa-moko.user.js.orig 2018-09-08 04:02:36.000000000 +0900
+++ ixa-moko.user.js 2018-09-08 10:06:46.212078600 +0900
@@ -18015,7 +18015,7 @@
max = parseInt(source[1]),
now = parseInt(source[0]),
card_limit = max - now,
- coin = parseInt($html.find('span.money_b').text()),
+ coin = parseInt($html.find('span.money_b').text().replace(/\D/,'')),
coin_limit = Math.floor(coin / whitePrice());
return Math.min(card_limit, coin_limit);
}
@@ -18134,11 +18134,11 @@
if (capa == count) {
var cardstock = $('p.l_cardstock'),
money = $('span.money_b'),
- rema_money = parseInt(money.text()) - capa * whitePrice(),
+ rema_money = parseInt(money.text().replace(/\D/,'')) - capa * whitePrice(),
new_capa = parseInt($('#white').text());
//残り枚数と銅銭を書き換え
cardstock.text(stock_text);
- money.text(rema_money);
+ money.text(rema_money.toLocaleString());
//初期化
senkujiWhiteLottery();
return playSound(SOUND.notice);

総レス数 1033
308 KB
新着レスの表示

掲示板に戻る 全部 前100 次100 最新50
read.cgi ver.24052200