📄 smugglersingh.java
字号:
in[count] = 4;
}
break;
case 1: // '\001'
if(checkPause)
break;
if(scene == 1)
{
py--;
if(py < 0)
py = places.length - 1;
if(turn >= 30)
break;
if(py == cup)
py--;
if(py < 0)
py = places.length - 1;
break;
}
if(scene == 2)
{
iy--;
if(iy < 0)
iy = items.length - 1;
break;
}
if(scene == 3)
{
oy--;
if(oy < 0)
oy = options.length - 1;
break;
}
if(scene == 4 || scene == 5)
{
count++;
xx += 8;
in[count] = 2;
}
break;
case 8: // '\b'
mfr = 0;
if(scene == 29)
{
scene = 2;
break;
}
if(scene == 1)
{
scene = 2;
turn--;
cup = py;
if(loan > 0)
loan = loan + (loan / 15 / 100) * 100 + 100;
PriceRandom();
break;
}
if(scene == 2)
{
scene = 3;
break;
}
if(scene == 3)
{
if(oy == 0)
{
inp = 0;
count = 0;
xx = 85;
scene = 4;
comment = "";
break;
}
if(oy == 1)
{
inp = 0;
count = 0;
xx = 85;
scene = 5;
comment = "";
break;
}
if(oy == 3)
{
scene = 1;
py = cup - 1;
if(py < 0)
py = places.length - 1;
break;
}
if(oy == 2)
{
scene = 6;
break;
}
if(oy == 4)
{
scene = 2;
break;
}
if(oy == 5)
{
gamePaint = 0;
a = 2;
display.setCurrent(intro);
}
break;
}
if(scene == 7)
{
bpc = 0;
scene = 2;
if(tip == 3)
tip = 2;
break;
}
if(scene == 8)
{
if(poli == 0)
{
rnd = new Random();
poli = Math.abs(rnd.nextInt() % 80);
if(poli <= 0)
poli = 1 + -poli;
scene = 8;
break;
}
if(poli < 50)
{
scene = 2;
poli = 0;
break;
}
if(poli >= 50)
{
pcc = 2;
End();
}
break;
}
if(scene == 9)
scene = 2;
break;
case 6: // '\006'
if(checkPause)
break;
if(scene == 1)
{
py++;
if(py > places.length - 1)
py = 0;
if(turn >= 30)
break;
if(py == cup)
py++;
if(py > places.length - 1)
py = 0;
break;
}
if(scene == 2)
{
iy++;
if(iy > items.length - 1)
iy = 0;
break;
}
if(scene == 3)
{
oy++;
if(oy > options.length - 1)
oy = 0;
break;
}
if(scene == 4 || scene == 5)
{
count++;
xx += 8;
in[count] = 8;
}
break;
case 3: // '\003'
case 4: // '\004'
case 7: // '\007'
default:
if(i == -6 && !checkPause)
{
mfr = 0;
if(scene == 2)
{
scene = 1;
py = cup - 1;
if(py < 0)
py = places.length - 1;
} else
if(scene == 3)
scene = 2;
else
if(scene == 4)
scene = 3;
else
if(scene == 5)
scene = 3;
else
if(scene == 6)
scene = 3;
else
if(scene == 7)
{
if(tip == 3)
{
uamt = uamt - 200;
tip = 1;
scene = 7;
tipa++;
if(tipa > 2)
tipa = -2;
rnd1 = new Random();
tipci = Math.abs(rnd1.nextInt() % 6);
if(tipci < 0)
tipci = -tipci;
if(tipci == cup)
tipci++;
if(tipci > 5)
tipci = 0;
rnd2 = new Random();
tipit = Math.abs(rnd2.nextInt() % 6);
if(tipit < 0)
tipit = -tipit;
if(++tiph > 1)
tiph = 0;
}
} else
if(scene == 8)
{
uamt = uamt - 400;
if(uamt < 0)
{
pcc = 1;
End();
}
scene = 2;
} else
if(scene == 9)
{
scene = 2;
capa = capa + 30;
uamt = uamt - 400;
}
}
if(i != -7)
break;
mfr = 0;
if(scene == 29)
{
scene = 2;
break;
}
if(scene == 1)
{
gamePaint = 0;
a = 2;
display.setCurrent(intro);
break;
}
if(scene == 2)
{
scene = 3;
break;
}
if(scene == 3)
{
if(oy == 0)
{
inp = 0;
count = 0;
xx = 85;
scene = 4;
comment = "";
break;
}
if(oy == 1)
{
inp = 0;
count = 0;
xx = 85;
scene = 5;
comment = "";
break;
}
if(oy == 3)
{
scene = 1;
py = cup - 1;
if(py < 0)
py = places.length - 1;
break;
}
if(oy == 2)
{
scene = 6;
break;
}
if(oy == 4)
{
scene = 2;
break;
}
if(oy == 5)
{
gamePaint = 0;
a = 2;
display.setCurrent(intro);
}
break;
}
if(scene == 4)
{
comment = "";
if(inp > capa - titem)
{
comment = "Camel(s) can carry only " + (capa - titem) + ".";
inp = 0;
count = 0;
xx = 85;
break;
}
if(inp <= uamt / price[iy] || chk[iy] == 1)
{
uamt = uamt - inp * price[iy];
buy[iy] = buy[iy] + inp;
titem = titem + inp;
scene = 3;
comment = "";
inp = 0;
count = 0;
xx = 85;
} else
{
comment = "You can't buy more than " + uamt / price[iy] + ".";
inp = 0;
count = 0;
xx = 85;
}
break;
}
if(scene == 5)
{
comment = "";
if(buy[iy] >= 0 && inp <= buy[iy] || chk[iy] == 1)
{
uamt = uamt + buy[iy] * price[iy];
titem = titem - inp;
buy[iy] = buy[iy] - inp;
scene = 3;
comment = "";
inp = 0;
count = 0;
xx = 85;
} else
{
comment = "You only have " + buy[iy] + " units";
inp = 0;
count = 0;
xx = 85;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -