this.basePoint = 0;
this.bakingTickCount = 0;
this.bakingCount = 0;
+ this.bakingStartTime = -1; //調理開始時に時刻を代入
this.isBaking = false;
if(that.basePoint < 0){
thatManager.addWidget(new MessageWidgetClass(thatManager, ["見るからにまずそう…焼くのはやめておこう。\n"]));
} else{
- var text = new TextWidgetClass(thatManager, ["焼き始めました!\nもう一度窯を選択すると取り出します。", true, true]);
+ var text = new TextWidgetClass(thatManager, ["焼き始めました!\nもう一度窯を選択すると取り出します。 ", true, true]);
thatManager.addWidget(text);
that.bakingTickCount = 0;
that.bakingCount = 0;
+ that.bakingStartTime = +new Date(); //時間のミリ秒を代入
that.isBaking = true;
for(var i = 0, m = retv.length; i < m; i++){
removeAnObjectFromArray(thatManager.userManager.ingredientList, retv[i]);
this.isSelecting = true;
var s = null;
var p = 1;
+ var t = ((+new Date()) - this.bakingStartTime) * (100/16000); //16秒が基準(下の判定の100)
var c = this.bakingCount;
- if(c < 30){
+ if(t < 30){
s = "まだ生だった…。";
p = 0.25;
- } else if(c < 60){
+ } else if(t < 60){
s = "生焼けだった…。";
p = 0.50;
- } else if(c < 80){
+ } else if(t < 80){
s = "火通りが甘い…。";
p = 0.75;
- } else if(c < 95){
+ } else if(t < 95){
s = "いい焼け具合だ!";
p = 1.00;
- } else if(c < 100){
+ } else if(t < 100){
s = "最高の焼き具合だ!";
p = 1.25;
- } else if(c < 101){
+ } else if(t < 101){
s = "完璧な焼き具合だ!";
p = 1.50;
- } else if(c < 110){
+ } else if(t < 110){
s = "いい焦げ方だ!";
p = 1.00;
- } else if(c < 116){
+ } else if(t < 116){
s = "焦げ過ぎだった…。";
p = 0.50;
- } else if(c < 121){
+ } else if(t < 121){
s = "炭になってる…。";
p = 0.25;
} else{