Invisible Vines Fix (#18196)

* fixes invisible vines bug

* cl
This commit is contained in:
RustingWithYou
2024-01-12 01:38:29 +00:00
committed by GitHub
parent 9c3b0ae194
commit d3f0446b94
3 changed files with 44 additions and 2 deletions
+1 -1
View File
@@ -843,6 +843,6 @@
var/image/I = image(res.icon, "[get_trait(TRAIT_PLANT_ICON)]-[growth_stage]-leaves")
I.color = get_trait(TRAIT_LEAVES_COLOUR)
I.appearance_flags = RESET_COLOR
res.overlays += I
res.add_overlay(I)
return res
@@ -100,7 +100,8 @@
name = seed.display_name
max_health = round(seed.get_trait(TRAIT_ENDURANCE)/2)
if(seed.get_trait(TRAIT_SPREAD)==GROWTH_VINES)
if(seed.get_trait(TRAIT_SPREAD) == 2)
mouse_opacity = 2
max_growth = VINE_GROWTH_STAGES
growth_threshold = max_health/VINE_GROWTH_STAGES
growth_type = seed.get_growth_type()