Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIRROR] Fix runtimes when ghosts observe humans #3023

Merged
merged 1 commit into from
Jan 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions code/modules/species/species_age_comparison.dm
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
return

var/observed_real_age = observed.age + observed.changed_age
var/observer_real_age = observer.age + observer.changed_age
var/age_diff
var/age_percentile = round((observed_real_age / max_age) * 100)
var/age_descriptor
var/age_diff_descriptor
Expand All @@ -47,7 +45,8 @@
age_descriptor = age_descriptors[length(age_descriptors)]

if (istype(observer) && observed.get_species() == observer.get_species() && !observer.isSynthetic())
age_diff = observed_real_age - observer_real_age
var/observer_real_age = observer.age + observer.changed_age
var/age_diff = observed_real_age - observer_real_age
for (var/descriptor in age_diff_descriptors)
if (age_diff > age_diff_descriptors[descriptor])
continue
Expand Down
Loading