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

[CR] migrate old artifacts to new #42137

Merged

Conversation

KorGgenT
Copy link
Member

Summary

SUMMARY: None

Purpose of change

Migrating legacy artifacts in saves to the new style of artifacts

Describe the solution

Any legacy artifact that is loaded into the game will now be randomly generated as a new artifact from the "cult" procgen group. The reason this is Comments Requested is that the migration looks a little hacky to me (doesn't really pass my smell test) but i also can't think of any other reasonable way to simply toss out artifacts when 0.F hits. Additionally this will be temporary and removed after 0.F Stable.

Testing

Spawn in an architect's cube. this currently uses the legacy style artifact. Save and then load. it turns into a spoon with random artifact stats.

Additional context

I left this draft because I don't want this PR merged before i get a chance to create a new style artifact that is an architect's cube.

@KorGgenT KorGgenT added Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style Artifacts Otherworldly items with special effects labels Jul 14, 2020
@ghost
Copy link

ghost commented Jul 14, 2020

Does this only affect generated artifacts? What happens to JSON-defined items that use artifact properties? Right now a lot of modders depend on those since the relic mechanics aren't complete yet.

@KorGgenT
Copy link
Member Author

this only affects generated artifacts

@KorGgenT KorGgenT added this to In Progress in Rewrite Artifacts via automation Jul 15, 2020
@KorGgenT KorGgenT marked this pull request as ready for review July 16, 2020 21:56
@KorGgenT
Copy link
Member Author

please merge #42199 with or before this PR. if noone has any comments on the migration code it's good to go.

@kevingranade kevingranade merged commit e28e48a into CleverRaven:master Jul 20, 2020
Rewrite Artifacts automation moved this from In Progress to Done Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Artifacts Otherworldly items with special effects Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants