本帖最后由 Heiko 于 2022-6-14 17:10 编辑
369行 减个变量,大概就是成长时间-变量天数-变量1,变量1为0则无事发生。如果用的是 秒数就减下面那个。没有研究过有什么其他bug,升一级这变量+1或者+多少就会影响生长时间
Game_Crop.prototype.growRate = function() { if (this._seed) { var full = this._seed.growTime; if (this._daysVar) { // 使用变量天数 //var full = this._seed.growTime; var isAt = this._growTime - $gameVariables.value(this._daysVar) - $gameVariables.value(1); //这减个变量估计就可以了 } else { //使用秒数 //var full = this._seed.growTime; var isAt = this._growTime - $gameSystem.playtime() - $gameVariables.value(1);//用秒数就减这个 } return Math.max(isAt / full,0); } else { return 0; } };
Game_Crop.prototype.growRate = function() {
if (this._seed) {
var full = this._seed.growTime;
if (this._daysVar) { // 使用变量天数
//var full = this._seed.growTime;
var isAt = this._growTime - $gameVariables.value(this._daysVar) - $gameVariables.value(1); //这减个变量估计就可以了
} else { //使用秒数
//var full = this._seed.growTime;
var isAt = this._growTime - $gameSystem.playtime() - $gameVariables.value(1);//用秒数就减这个
}
return Math.max(isAt / full,0);
} else {
return 0;
}
};
|