作者meblessme (老穷病懒臭废肥宅)
看板Little-Games
标题Re: [分享] 放置-放置动物园2(Incremental Zoo ll)
时间Tue Oct 14 07:57:59 2014
※ 引述《meblessme (老穷病懒臭废肥宅)》之铭言:
动物全部的顺序是
猫鼬-孔雀-变色龙-海狸-火烈鸟-水獭-企鹅-蛇-海龟-貘-鳄鱼-猴子-海豹-袋鼠-食蚁兽-
鹰-霍加皮-鸵鸟-羚羊-斑马-秃鹫-狼-捷豹-熊-河马-老虎-长颈鹿-鲨鱼-犀牛-猩猩-狮子-
大象-熊猫-海豚-杀人鲸
以下是控制码 复制後 贴到控制台(Chrome是f12)
的console(可以直接按ctrl+v贴上)
可以十倍加速游戏
IZ.loop = setInterval( function() {
// charge interest on debt every ten seconds. Also, save
IZ.Zoo.interestCounter++;
if (IZ.Zoo.interestCounter === 10) {
IZ.Zoo.interestCounter = 0;
var interest = Math.pow((IZ.Zoo.debt), IZ.Zoo.interestRate);
IZ.Zoo.debt = interest;
IZ.updateMoney();
localStorage['IZIIGameSave'] = btoa(JSON.stringify(IZ.Zoo));
}
// let visitors in
IZ.Zoo.visitorsCounter++;
if (IZ.Zoo.visitorsCounter >= IZ.Zoo.visitorsTime && IZ.Zoo.visitorsTotal
> 0) {
var species = 0;
for (i=0; i<IZ.Zoo.animals.length; i++) {
if (IZ.Zoo.animals[i].own > 0) {
species++;
}
}
IZ.Zoo.visitorsCounter = 0;
IZ.Zoo.money += (IZ.Zoo.visitorsTotal * species);
IZ.updateMoney();
if (IZ.Zoo.visitorsLog === 0) {
log = "<strong>* 你的动物园迎来第1位访客!</strong>";
IZ.addToLog(log);
IZ.Zoo.visitorsLog = 1;
}
}
var id;
var slot;
var next;
// display new animals over time
IZ.Zoo.time++;
for (var i=IZ.Zoo.speciesShown; i<IZ.Zoo.animals.length; i++) {
if (IZ.Zoo.time >= IZ.animals[i].wait) {
id = IZ.Zoo.animals[i].id;
slot = "animal" + id;
IZ.Zoo.speciesShown = i + 1;
document.getElementById(slot).style.display = "inherit";
slot = "br" + id;
document.getElementById(slot).style.display = "inline-block";
slot = "dr" + id;
document.getElementById(slot).style.display = "inline-block";
slot = "bs" + id;
document.getElementById(slot).style.display = "inline-block";
slot = "en" + id;
document.getElementById(slot).style.display = "inline-block";
var log = "* <strong>你发现了" + IZ.animals[i].plural +
"!</strong> " + IZ.animals[i].quote;
IZ.addToLog(log);
}
}
for (var i=0; i<IZ.Zoo.animals.length; i++) {
if (IZ.Zoo.time >= IZ.animals[i].wait) {
next = IZ.animals[i+1].wait - IZ.Zoo.time;
if (IZ.Zoo.speciesShown < 35) {
var time = IZ.Zoo.timeSecs;
time = time.toString().replace(/B(?=(d{3})+(?!d))/g, ",");
var price = IZ.numToString(IZ.Zoo.timePrice);
document.getElementById("buyTime").innerHTML = '<div
id="buyTime" onclick="IZ.buyTime()"><h3>减少等待时间' + time + '秒,需要$' +
price + '</h3></div>'
next = next.toString().replace(/B(?=(d{3})+(?!d))/g, ",");
document.getElementById("next").innerHTML = '<h2>新物种在' +
next + '秒后出现</h2>';
} else {
document.getElementById("next").innerHTML = '<h2>你已经发现了
所有的物种!</h2>';
document.getElementById("buyTime").innerHTML = '';
}
}
}
// births and deaths
for (var i=0; i<IZ.Zoo.animals.length; i++) {
if (IZ.Zoo.animals[i].own >= IZ.Zoo.animals[i].maxPop) {
IZ.Zoo.animals[i].own = IZ.Zoo.animals[i].maxPop;
var id = "own" + i;
IZ.updatePopulation(i);
document.getElementById(id).style.color = "#f00";
}
var idOwn = "own" + i;
var newborn = 0;
var dead = 0;
document.getElementById(idOwn).style.color = "#000";
if (IZ.Zoo.animals[i].own > 1 && IZ.Zoo.animals[i].own <
IZ.Zoo.animals[i].maxPop) {
rnd = Math.random() * (IZ.Zoo.animals[i].own +
(IZ.Zoo.animals[i].birthRate));
if (rnd <= IZ.Zoo.animals[i].own) {
newborn = 1;
IZ.Zoo.animals[i].own++;
}
if (newborn === 1) {
if (IZ.Zoo.animals[i].own >= IZ.Zoo.animals[i].maxPop) {
IZ.Zoo.animals[i].own = IZ.Zoo.animals[i].maxPop;
document.getElementById(idOwn).style.color = "#f00";
} else {
document.getElementById(idOwn).style.color = "#484";
}
IZ.Zoo.total++;
IZ.Zoo.animals[i].born++;
}
rnd = Math.random() * (IZ.Zoo.animals[i].own * 2 +
(IZ.Zoo.animals[i].deathRate));
if (rnd <= IZ.Zoo.animals[i].own) {
dead = 1;
IZ.Zoo.animals[i].own--;
}
if (dead === 1) {
document.getElementById(idOwn).style.color = "#a44";
IZ.Zoo.total--;
IZ.Zoo.animals[i].dead++;
}
}
IZ.updatePopulation(i);
IZ.updateBirthRate(i);
IZ.updateDeathRate(i);
IZ.updateTooltip(i);
if (IZ.Zoo.animals[i].own === IZ.Zoo.animals[i].maxPop) {
var fine = Math.random() * 100000;
if (Math.floor(fine) === 12345) {
IZ.getFined();
}
}
}
// offers
if (IZ.Zoo.offerNext === 0) {
var random = Math.round(Math.random() * 111);
IZ.Zoo.offerNext = IZ.Zoo.time + 111 + random;
}
if (IZ.Zoo.time >= IZ.Zoo.offerNext && IZ.Zoo.offerActive === 0) {
if (IZ.Zoo.animals[0].own === 0 || IZ.Zoo.animals[1].own === 0) {
IZ.Zoo.offerNext = 0;
} else {
//create offer
for (i=IZ.Zoo.animals.length-1; i>0; i--) {
if (IZ.Zoo.animals[i].own > 0) {
var getSpecies = i;
var giveSpecies = i-1;
break;
}
}
var getNumber = Math.ceil(Math.random() * 10);
if (IZ.Zoo.animals[giveSpecies].own >= 10) {
var giveNumber = Math.ceil(Math.random() * 10);
} else {
var giveNumber = Math.ceil(Math.random() *
IZ.Zoo.animals[giveSpecies].own);
}
IZ.Zoo.offerGiveSpecies = giveSpecies;
IZ.Zoo.offerGiveNumber = giveNumber;
IZ.Zoo.offerGetSpecies = getSpecies;
IZ.Zoo.offerGetNumber = getNumber;
document.getElementById("offer").innerHTML = '<h2>用' + getNumber
+ ' ' + IZ.animals[getSpecies].plural + '<br>交换<br>' + giveNumber + ' ' +
IZ.animals[giveSpecies].plural + '</h2>';
document.getElementById("offerContainer").style.display =
"inline";
IZ.Zoo.offerActive = 1;
}
}
document.getElementById("animalsTitle").innerHTML = "<h2>动物 (" +
IZ.Zoo.total + ")</h2>";
document.getElementById("badgesTitle").innerHTML = "<h2>成就 (" +
IZ.Zoo.badges.length + ") <span style='font-size:10px'>(点击更新
)</span></h2>";
for (var i=0; i<IZ.Zoo.animals.length; i++) {
if (IZ.Zoo.animals[i].own > IZ.Zoo.animals[i].maxOwn) {
IZ.Zoo.animals[i].maxOwn = IZ.Zoo.animals[i].own;
}
}
if (IZ.Zoo.total > IZ.Zoo.maxTotal) {
IZ.Zoo.maxTotal = IZ.Zoo.total;
}
}, 100);
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 61.64.180.10
※ 文章网址: http://webptt.com/cn.aspx?n=bbs/Little-Games/M.1413244685.A.C41.html
※ 编辑: meblessme (61.64.180.10), 10/14/2014 08:12:30
1F:→ evachicken : 这个控制码好像只适用汉化版 tinyurl.com/lqu6msl 10/14 14:06
2F:→ evachicken : 不好意思我搞错了 英文版也适用 10/14 14:13
3F:→ meblessme : 开十倍速 出门放个6-7个小时回来 罚款罚到 负债 10/14 15:58
4F:→ meblessme : Xe+27 动物全卖了也才e+24 而且负债过高不能买动物 10/14 15:58
5F:→ meblessme : ....就差两种动物而已 居然前功尽弃 10/14 15:59
6F:推 sarej : 英文版的要怎麽用呢? 10/14 16:17
7F:→ meblessme : 如果照我的作法作行不通的话 把中文改成英文应该就 10/14 16:38
8F:→ meblessme : 可以贴了吧 10/14 16:38
9F:→ austin751229: 负债? 不是一开始那几十块 还是这游戏要不断借钱 10/14 17:25
10F:→ austin751229: 靠卖动物的钱 到买企鹅都还能撑住 10/14 17:27
11F:→ meblessme : 在超过十五位数之前 贷款可以让你提早 买到动物 10/14 17:41
12F:→ meblessme : 其中最好的是用来提昇动物价值 提昇完把动物卖掉 10/14 17:42
13F:→ meblessme : 赚差价 不过15位数之後 贷款是不够用的 连零头都不 10/14 17:42
14F:→ meblessme : 够 10/14 17:42
15F:→ meblessme : 我负债是因为动物数量太多(定义模糊中)被罚款 10/14 17:43
16F:→ meblessme : 而且十倍速 会同时加快十倍收利息的速度 所以... 10/14 17:45
17F:推 suyuan : 不应该把动物全卖了..至少留一些繁殖 10/14 17:45
18F:→ suyuan : 我有升级游客,所以光是游客给的钱就远超过利息 10/14 17:45
19F:→ meblessme : 当然阿 我是罚到已经破产 还不能买新动物了.... 10/14 17:45
20F:→ meblessme : 一开始是这样啦 但超过8-9位数後 游客连零头都算不 10/14 17:47
21F:→ meblessme : 上喔 放一整天 还不如卖个100只当前最高等动物 10/14 17:47
22F:→ meblessme : 不 挂一整天可能一只都买不起 但升级费用却贵的要死 10/14 17:48
23F:推 suyuan : 每秒钟30,500,896,393游客...这是地球吗? 10/14 17:48
24F:→ suyuan : 最後能够升级的都升完了只好去扩建 enclosure 10/14 17:49
25F:→ meblessme : 应该说 当你时间间隔 减少到剩1秒以後 ... 10/14 17:49
26F:→ meblessme : 会发现游客钱真的太少 10/14 17:50
27F:→ suyuan : 游客还蛮划得来的说..放着他就会自动加钱 10/14 17:50
28F:→ meblessme : 嗯 可是我兽栏都升到100级 上限50万 10/14 17:50
29F:→ suyuan : 像是动物数量会随着增加而伴随着死亡率增加 10/14 17:50
30F:→ suyuan : 等动物数量超过一定值之後,就很难继续增加了 10/14 17:51
31F:→ meblessme : 但明明动物还没累积破20万 就会被开罚... 10/14 17:51
32F:→ suyuan : 这时候人又不在电脑旁边可以卖,其实很浪费 10/14 17:51
33F:→ meblessme : 超过15种动物以後 钱都是靠新动物在赚的啦 10/14 17:52
34F:→ suyuan : 我的兽栏升级到60000级一样被罚 10/14 17:52
35F:→ suyuan : 可以存放180,081,009,200动物..一样被罚款 10/14 17:53
36F:→ suyuan : 其实兽栏根本不需要那麽大,因为死亡率一直上升 10/14 17:54
37F:→ meblessme : 哇 10/14 17:54
38F:→ suyuan : 所以到大约超过6000只之後,就增加很慢了 10/14 17:54
39F:→ meblessme : ....了解 只是100级兽栏有成就 10/14 17:55
40F:→ suyuan : 死亡率超过三成,就会发现数字增加很慢 10/14 17:55
41F:→ meblessme : 更大的 太贵太不划算 也不知道下个成就要多少 没买 10/14 17:56
42F:推 suyuan : 最後一个是1000兽蓝 10/14 17:58
43F:→ meblessme : 这我没办法了 我也不会改程式 ... 10/14 18:00
44F:推 suyuan : 死亡率只能升级20级,是这个游戏最大的败笔... 10/14 18:00
45F:→ suyuan : 除了兽蓝以外都升级到20,游戏就结束了 10/14 18:01
46F:→ suyuan : 我也不会改程式,我是用你教的 reset大法 10/14 18:02
47F:→ suyuan : 一开始就有高出生率 10/14 18:02
48F:→ suyuan : 大概玩2天就到顶了 10/14 18:03
49F:→ meblessme : 还好啦 2天到顶 已经比很多放置游戏久了 10/14 18:10
50F:推 wolves0117 : 第一次玩放置玩到睡着...没有很吸引我... 10/14 18:14
51F:→ meblessme : 我是喜欢游戏中的动物画面啦 10/14 18:17
52F:→ meblessme : ..不对阿 出生率最多也不过100% 程式码也就十倍 10/14 18:21
53F:→ meblessme : 这样要赚到60000级的钱 很困难 也很难很快完成吧 10/14 18:23
54F:→ meblessme : 请问猫鼬 60000级兽栏要多少钱阿 10/14 18:23
55F:推 suyuan : meerkat很便宜 60013级的价格是 10/14 19:57
56F:→ suyuan : 1,211,494,960,700.11 10/14 19:58
57F:→ suyuan : 只是不想继续点下去了..手酸 10/14 19:58
58F:→ suyuan : 赚钱很容易..我都先升级 get higher prices 10/14 19:59
59F:→ suyuan : 然後卖一卖,继续升级 prices 10/14 20:00
60F:→ suyuan : 然後就钱就会增加很快 10/14 20:00
61F:→ meblessme : 没想到6万级才这麽便宜啊 谢谢,辛苦了 10/14 20:33
62F:→ meblessme : 嗯本来就是这样赚的 10/14 20:33
63F:推 greedwave : 为什麽贴上出现这串? 10/15 01:35
64F:→ greedwave : SyntaxError: Unexpected token ILLEGAL 10/15 01:35