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

Dragon tags & mechs #2620

Open
wants to merge 7 commits into
base: dev
Choose a base branch
from
Open

Dragon tags & mechs #2620

wants to merge 7 commits into from

Conversation

heypr
Copy link
Contributor

@heypr heypr commented May 8, 2024

  • Requested by Josh65.
  • Adds 3 paper-only, 1.20+ tags:
    • gateway_count
    • healing_crystals
    • respawn_crystals
  • Adds 1 paper-only, 1.20+ mechanism:
    • spawn_gateway
  • Adds 1 regular tag:
    • first_dragon_killed
  • Adds 4 regular mechanisms;
    • respawn_dragon
    • reset_crystals
    • respawn_phase
    • first_dragon_killed

I opened this as a draft PR because I haven't tested any of this/just wrote this up, and want it open so that I don't lose it in my sea of local and published branches. Feel free to comment/review though!

@heypr heypr marked this pull request as ready for review June 26, 2024 13:36
if (!mechanism.hasValue()) {
battle.spawnNewGateway();
}
if (mechanism.requireObject(LocationTag.class)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

else if

// -->
tagProcessor.registerMechanism("respawn_dragon", false, (object, mechanism) -> {
if (object.getWorld() == null) {
mechanism.echoError("World '" + object.world_name + "' is unloaded, cannot set respawn phase.");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... when is this a real concern?

// <--[mechanism]
// @object WorldTag
// @name respawn_phase
// @input ElementTag(String)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just ElementTag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants