Skip to content

Commit

Permalink
Bugfix: Plant Speciation - Use correct label after hatching
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBizzle committed Jun 25, 2024
1 parent 5e119f7 commit 4c1ccec
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Curricular Models/BEAGLE Evolution/Plant Speciation.nlogo
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,9 @@ to do-reproduction
if flower-time < 0 [ set flower-time 0 ]
if flower-time > 365 [ set flower-time 365 ]

;change color to reflect metal tolerance
;change color and label to reflect metal tolerance
set color calc-plant-color tolerance
check-turtle-label
migrate-this-plant
]

Expand Down Expand Up @@ -259,11 +260,13 @@ to check-labels
[set plabel metal]
[set plabel ""]
]
ask turtles [
if show-labels-as = "metal tolerance" [set label precision tolerance 0]
if show-labels-as = "flower time" [set label precision flower-time 0 ]
if show-labels-as = "none" [set label ""]
]
ask turtles [ check-turtle-label ]
end

to check-turtle-label
if show-labels-as = "metal tolerance" [ set label precision tolerance 0 ]
if show-labels-as = "flower time" [ set label precision flower-time 0 ]
if show-labels-as = "none" [ set label "" ]
end

to redraw-plants-as-full-sized-plants ;; turtle procedure
Expand Down

0 comments on commit 4c1ccec

Please sign in to comment.