46W_0)HOUL}G`]%)XA2N9BN.png (8.93 KB, 下载次数: 13)
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; } };
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |