Skip to content

Add setting to change all portals to accept all beams#14

Draft
henriquegemignani wants to merge 1 commit intomainfrom
feature/unlocked-portal
Draft

Add setting to change all portals to accept all beams#14
henriquegemignani wants to merge 1 commit intomainfrom
feature/unlocked-portal

Conversation

@henriquegemignani
Copy link
Copy Markdown
Member

No description provided.

fix_vuln(properties.vulnerability.black_hole)
fix_vuln(properties.vulnerability.sunburst)
fix_vuln(properties.vulnerability.imploder)
obj.set_properties(properties)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should be something like this:

def _change_portals_to_all_beams(area: AreaWrapper) -> None:
    fixed = WeaponVulnerability(damage_multiplier=100.0, effect=Effect.Normal)
    for layer in area.layers:
        for obj in layer.instances:
            if obj.type == DamageableTrigger and obj.name == "Shoot to activate PORTAL":
                with obj.edit_properties(DamageableTrigger) as props:
                    props.vulnerability.annihilator = fixed # etc...

@henriquegemignani henriquegemignani marked this pull request as draft March 12, 2024 18:39
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.

2 participants