Browse Source

Less prone to fire

pull/2/head
Robert Chen 11 years ago
parent
commit
9cc608e406
  1. 32
      js/model.js

32
js/model.js

@ -261,26 +261,26 @@ UtilityFunctions = {
if( layerName == "Skin" || layerName == "Body" ){ if( layerName == "Skin" || layerName == "Body" ){
var multiplier = 1; var multiplier = 1;
if (cookValue>=multiplier*500000) { if (cookValue>=multiplier*600000) {
return ["Fire", (cookValue-500000)/(multiplier*600000),"fire"]; return ["Fire", (cookValue)/(multiplier*700000),"fire"];
} }
else if(cookValue>=multiplier*350000) { else if(cookValue>=multiplier*400000) {
return ["Burnt", (cookValue-350000)/(multiplier*600000), "burnt"]; return ["Burnt", (cookValue)/(multiplier*600000), "burnt"];
} }
else if (cookValue>=multiplier*300000) { else if (cookValue>=multiplier*300000) {
return ["Dry", (cookValue-300000)/(multiplier*350000), "dry"]; return ["Dry", (cookValue)/(multiplier*350000), "dry"];
} }
else if (cookValue>=multiplier*250000){ // >250000 else if (cookValue>=multiplier*250000){ // >250000
return ["Cooked", (cookValue-250000)/(multiplier*300000), "overcooked"]; return ["Cooked", (cookValue)/(multiplier*300000), "overcooked"];
} }
else if (cookValue>=multiplier*80000) { // >50000 else if (cookValue>=multiplier*80000) { // >50000
return ["Cooked", (cookValue-80000)/(multiplier*250000), "cooked"]; return ["Cooked", (cookValue)/(multiplier*250000), "cooked"];
} }
else if (cookValue>=multiplier*50000){ else if (cookValue>=multiplier*50000){
return ["Undercooked", (cookValue-50000)/(multiplier*80000), "slightly cooked"]; return ["Undercooked", (cookValue)/(multiplier*80000), "slightly cooked"];
} }
else if (cookValue>=multiplier*25000) { // else if (cookValue>=multiplier*25000) { //
return ["Undercooked", (cookValue-25000)/(multiplier*50000), "undercooked"]; return ["Undercooked", (cookValue)/(multiplier*50000), "undercooked"];
} }
else { else {
return ["Raw", 1, "raw"]; return ["Raw", 1, "raw"];
@ -289,25 +289,25 @@ UtilityFunctions = {
else{ else{
var multiplier = 1; var multiplier = 1;
if (cookValue>=multiplier*45000) { // if (cookValue>=multiplier*45000) { //
return ["Fire", (cookValue-45000)/(multiplier*600000),"fire"]; return ["Fire", (cookValue)/(multiplier*600000),"fire"];
} }
else if(cookValue>=multiplier*35000){// else if(cookValue>=multiplier*35000){//
return ["Burnt", (cookValue-35000)/(multiplier*45000), "burnt"]; return ["Burnt", (cookValue)/(multiplier*45000), "burnt"];
} }
else if (cookValue>=multiplier*25000){ // else if (cookValue>=multiplier*25000){ //
return ["Dry", (cookValue-25000)/(multiplier*35000), "dry"]; return ["Dry", (cookValue)/(multiplier*35000), "dry"];
} }
else if (cookValue>=multiplier*22000){ // else if (cookValue>=multiplier*22000){ //
return ["Cooked", (cookValue-22000)/(multiplier*25000), "overcooked"]; return ["Cooked", (cookValue)/(multiplier*25000), "overcooked"];
} }
else if (cookValue>=multiplier*12000){ // else if (cookValue>=multiplier*12000){ //
return ["Cooked", (cookValue-12000)/(multiplier*22000), "cooked"]; return ["Cooked", (cookValue)/(multiplier*22000), "cooked"];
} }
else if (cookValue>=multiplier*7000){ // else if (cookValue>=multiplier*7000){ //
return ["Undercooked", (cookValue-7000)/(multiplier*12000), "slightly cooked"]; return ["Undercooked", (cookValue)/(multiplier*12000), "slightly cooked"];
} }
else if (cookValue>=multiplier*3000) { else if (cookValue>=multiplier*3000) {
return ["Undercooked", (cookValue-3000)/(multiplier*7000), "undercooked"]; return ["Undercooked", (cookValue)/(multiplier*7000), "undercooked"];
} }
else { else {
return ["Raw", 1, "raw"]; return ["Raw", 1, "raw"];

Loading…
Cancel
Save