• R/O
  • SSH
  • HTTPS

thief: Commit


Commit MetaInfo

Revision23 (tree)
Time2011-11-13 00:57:58
Authorseussnu

Log Message

0.0.7-alpha2
・ メッセージの出力処理を修正
・ オブジェクトのスポーン処理を修正

Change Summary

Incremental Difference

--- thief.js (revision 22)
+++ thief.js (revision 23)
@@ -55,7 +55,7 @@
5555 mainWindowPosition : 'left', // css float option (left, right, none)
5656 msgOverflow : 'hidden', // css overflow option (visible, scroll, hidden, auto)
5757 itemSort : ['$', '"', ']', '[', '%', '!', '?', '+', '=', '/', '(', ')', '*' ],
58- debugmode : true
58+ debugmode : false
5959 },
6060
6161 global : {
@@ -905,6 +905,7 @@
905905 THIEF.func.method.inputWait = function () {
906906 this.next = THIEF.func.method.manual;
907907 THIEF.html.addDebugMessage('入力待ち');
908+ THIEF.html.addMessage(); // 改行
908909 return false;
909910 };
910911
@@ -1148,6 +1149,7 @@
11481149 return result;
11491150 };
11501151
1152+ THIEF.Data.Text.$(THIEF.Data.Text.pickupWhich);
11511153 this.action = THIEF.func.method.selecter(objs, exec, false, true);
11521154 finish = false;
11531155 } else {
@@ -1194,7 +1196,7 @@
11941196 if (from.removeFromInventory(selected[i])) {
11951197
11961198 // 装備済みなら外す
1197- if(typeof from.slot[selected[i].slot] !== 'undefined'){
1199+ if(typeof from.slot !== 'undefined' && typeof from.slot[selected[i].slot] !== 'undefined'){
11981200 delete from.slot[selected[i].slot].equiped;
11991201 delete from.slot[selected[i].slot];
12001202 THIEF.Data.Text.$(THIEF.Data.Text.equipNone, from.get(THIEF.PARAM.displayName), selected[i].get(THIEF.PARAM.slotName));
@@ -1553,7 +1555,7 @@
15531555 }
15541556
15551557 // 毎ターンの終了時、または中断時(ユーザの入力待ち)に、画面の更新を行う
1556- THIEF.html.addMessage();
1558+ //THIEF.html.addMessage();
15571559
15581560 };
15591561
@@ -2603,9 +2605,11 @@
26032605 }
26042606
26052607 if (THIEF.global.hist.length > THIEF.conf.messageHistorySize * 2) {
2608+ THIEF.html.addDebugMessage('ヒストリーが既定値の二杯まで増えたのでシュリンク');
26062609 THIEF.global.hist = THIEF.global.hist.slice(THIEF.conf.messageHistorySize);
26072610 }
26082611
2612+
26092613 if(document.getElementById(THIEF.conf.id + 'Message' + (THIEF.conf.messageLines - 1)).innerHTML !== ' '){
26102614 var prev;
26112615 for(var i=0; i<THIEF.conf.messageLines-1; i++){
@@ -2613,8 +2617,6 @@
26132617 document.getElementById(THIEF.conf.id + 'Message' + i).innerHTML = prev;
26142618 }
26152619 }
2616-
2617- // line += '&nbsp;<span style="color:' + THIEF.conf.bgColor + '; background:' + THIEF.conf.textColor + '">...&crarr;</span>';
26182620 document.getElementById(THIEF.conf.id + 'Message' + (THIEF.conf.messageLines - 1)).innerHTML = text || '&nbsp;';
26192621 };
26202622
@@ -3430,6 +3432,11 @@
34303432 en : '${2} cannot pickup ${1}.'
34313433 },
34323434
3435+ pickupWhich : {
3436+ ja : 'どれを拾う?',
3437+ en : 'Whitch item pickup?'
3438+ },
3439+
34333440 noItemHere : {
34343441 ja : 'ホコリくらいしか落ちていない...',
34353442 en : 'You find any dusts...'
Show on old repository browser