代码拉取完成,页面将自动刷新
同步操作将从 锅巴汉化/MiniTES 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
function grind (grindSpeed, itemDropChance, itemDropVariableName, skillLevelRequirementToEnter, skillRequiredToEnter, skill, text, lockedText) {
// Check if the player can enter the grinding zone..
if (skillRequiredToEnter == "") { var enter = true; }
if (cow[skillRequiredToEnter] >= skillLevelRequirementToEnter) { var enter = true; }
// If yes, then grind..
if (enter == true) {
writeConsole (text);
if (cow.itemDropRNG < itemDropChance && itemDropVariableName != "") { addItemDropToInventory (itemDropVariableName); }
cow[skill+'XP'] += grindSpeed;
cow.currentImprovingSkill = skill;
} else {
// Otherwise, activate the skillgate lock ..
writeConsole (lockedText);
cow.currentImprovingSkill = "invis";
}
// And then refresh the RNG
cow.masterGamestateVariable = "refreshRNGNow";
}
function waitForSomethingIngame (turnsToWait, respawnLocation, text, doneText) {
// initialize
if (cow.masterGamestateVariable == "startingAnEvent") {
// document.getElementById('textCurrentMap').innerHTML = cow.currentMap; // unnecessary?
cow.currentImprovingSkill = "invis";
cow.waitCounter = 0;
cow.masterGamestateVariable = "waiting";
}
// wait...
if (cow.masterGamestateVariable == "waiting") {
if (cow.waitCounter < turnsToWait) { writeConsole (text + ' (' + Math.floor((cow.waitCounter/turnsToWait)*100) + '%)'); }
else { writeConsole (doneText); }
cow.waitCounter++;
if (cow.currentMap == "resting") {cow.medicXP += 0.8; cow.currentImprovingSkill = "medic"; }
if (cow.currentMap == "travelling") {cow.athleteXP += 1.2; cow.currentImprovingSkill = "athlete"; }
}
// end
if (cow.waitCounter > turnsToWait) {
cow.currentMap = respawnLocation;
cow.hp = cow.maxHP;
cow.masterGamestateVariable = "refreshRNGNow";
updateMainTextSpans();
unlockAllTabsExceptMain();
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。