Skip to content

Commit 33221df

Browse files
committed
for some reason sunflower made 50 sun instread of 25 (why)
1 parent 52dc63c commit 33221df

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

game/js/CPlants.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1978,7 +1978,7 @@ var oSunFlower = InheritO(CPlants, {
19781978

19791979
// Produce sun at a slightly randomized position
19801980
const randomX = Math.floor(posX + Math.random() * 41);
1981-
AppearSun(randomX, posY, 50, 0);
1981+
AppearSun(randomX, posY, 25, 0);
19821982

19831983
// Reset sunflower appearance
19841984
oSym.addTask(
@@ -2113,8 +2113,8 @@ BirthStyle: function (c, e, b, a) {
21132113
oSym.addTask(
21142114
100,
21152115
(k, h, g, j, i) => {
2116-
AppearSun(Math.floor(h + Math.random() * 21), j, 50, 0),
2117-
AppearSun(Math.floor(g + Math.random() * 21), j, 50, 0),
2116+
AppearSun(Math.floor(h + Math.random() * 21), j, 25, 0),
2117+
AppearSun(Math.floor(g + Math.random() * 21), j, 25, 0),
21182118
oSym.addTask(
21192119
100,
21202120
(l) => {

game/js/Cfunction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2018,7 +2018,7 @@ var lastB;
20182018
PrepareGrowPlants(() => {
20192019
oP.Monitor(oS.Monitor, oS.UserDefinedFlagFunc);
20202020
BeginCool();
2021-
oS.DKind && AutoProduceSun(50);
2021+
oS.DKind && AutoProduceSun(25);
20222022
oSym.addTask(
20232023
1500,
20242024
() => {

0 commit comments

Comments
 (0)