-
Notifications
You must be signed in to change notification settings - Fork 516
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
Tret Industrial Complex + Away Site Exoplanet Generation #19054
Conversation
DreamySkrell
commented
Apr 28, 2024
•
edited
Loading
edited
!wip |
!review |
code/modules/maps/map_template.dm
Outdated
/// `themes` should be assoc map of `/turf/unsimulated/marker/...` path to `/datum/exoplanet_theme/...` path. | ||
/// Exoplanet generation is not used if `themes` is null. | ||
/// See docs of `/datum/map_template/ruin/away_site`. | ||
/datum/map_template/proc/load_new_z(var/no_changeturf = TRUE, var/list/themes = null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't the correct place to shove the exoplanet generation in, do it exoplanet side, not in the generic template maploader
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed mmmaybe
code/modules/maps/map_template.dm
Outdated
//exoplanet generation | ||
if(themes) | ||
for(var/marker_turf_type in themes) | ||
var/datum/exoplanet_theme/exoplanet_theme_type = themes[marker_turf_type] | ||
var/datum/exoplanet_theme/exoplanet_theme = new exoplanet_theme_type() | ||
exoplanet_theme.generate_map(initial_z, 1, 1, 254, 254, marker_turf_type) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as above
maps/_common/mapsystem/map.dm
Outdated
exoplanet_themes = away_site.exoplanet_themes | ||
|
||
// actually load it | ||
if (template.load_new_z(themes=exoplanet_themes)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as above
This pull request has conflicts, please resolve those before we can evaluate the pull request. |