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

Artifact procgen - artifacts that spawn use the new relic data #41589

Merged
merged 14 commits into from
Jul 12, 2020

Conversation

KorGgenT
Copy link
Member

Summary

SUMMARY: Features "Artifact procgen - artifacts that spawn use the new relic data"

Purpose of change

This is a very important/large part of the artifact rewrite project. It is the first PR that will directly affect players that play vanilla.

What it does is creates a new json object that lets you define the artifact attributes, and spawns in an artifact with a random selection of these attributes.

Describe the solution

Create a new json dataset that gives procgen rules for the various pieces of information (i refer to these as "attributes") that make an artifact "an artifact".

Currently, the only places that spawn these procgen artifacts are the places that spawned artifacts before, and those places have the following rules:

  • 5 attributes max
  • -2000 total power level among attributes max
  • 1000 total power level

I'll go into more detail in the documentation as to what all that means

Testing

Used the debug option, which spawns an "alien_reality" type artifact (found near portals) and saw that it has some attributes. Currently there seems to be a bug where wielded artifacts double their attributes.

Additional context

Before we delete the old artifact code we need some kind of migration to use new stuff. There are a few things that need to be done still related to this - artifact charges, active artifact effects, and balancing the procgen data (which is entirely json)

@KorGgenT KorGgenT added [JSON] Changes (can be) made in JSON [C++] Changes (can be) made in C++. Previously named `Code` Artifacts Otherworldly items with special effects labels Jun 25, 2020
@ghost
Copy link

ghost commented Jun 25, 2020

Do you plan to fix this issue too?

@lgtm-com
Copy link

lgtm-com bot commented Jun 25, 2020

This pull request introduces 1 alert when merging cedae4a into 6313122 - view on LGTM.com

new alerts:

  • 1 for Use of c-style math functions

@KorGgenT KorGgenT marked this pull request as ready for review June 25, 2020 23:56
@I-am-Erk
Copy link
Member

@axema please keep posts on topic

@ghost
Copy link

ghost commented Jun 26, 2020

@I-am-Erk I can't reopen an issue about this. And apologies for my mistake.

@lgtm-com
Copy link

lgtm-com bot commented Jun 26, 2020

This pull request introduces 1 alert when merging dc1bd82 into 6313122 - view on LGTM.com

new alerts:

  • 1 for Use of c-style math functions

@EvgenijM86
Copy link
Contributor

Are artifacts even in the game right now? I have yet to see even one spawn in like last 2 months. In previous versions you would usually find them in open fields, surrounded by debris.

@KorGgenT
Copy link
Member Author

Honestly i'm not sure the "standard" ones are, the ones that spawn in a rocky meteorite crash. I didn't see any references to it in the code whatsoever, but the other places you can get artifacts do exist. It's out of scope for this PR, but i plan on figuring some extra places to inject artifacts once the migration is in progress

@kevingranade kevingranade merged commit 47af659 into CleverRaven:master Jul 12, 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 [C++] Changes (can be) made in C++. Previously named `Code` [JSON] Changes (can be) made in JSON
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants