mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
Fixed lastproduce initialization for grass. (#24339)
This commit is contained in:
@@ -152,7 +152,7 @@
|
||||
if(myseed && !dead)
|
||||
// Advance age
|
||||
age++
|
||||
if(age < myseed.maturation)
|
||||
if(age <= myseed.maturation)
|
||||
lastproduce = age
|
||||
|
||||
needs_update = 1
|
||||
@@ -227,7 +227,7 @@
|
||||
adjustHealth(-rand(1,5) / rating)
|
||||
|
||||
// Harvest code
|
||||
if(age > myseed.production && (age - lastproduce) > myseed.production && (!harvest && !dead))
|
||||
if(age > myseed.production && (age - lastproduce) >= myseed.production && (!harvest && !dead))
|
||||
nutrimentMutation()
|
||||
if(myseed && myseed.yield != -1) // Unharvestable shouldn't be harvested
|
||||
harvest = TRUE
|
||||
|
||||
Reference in New Issue
Block a user