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

update_stats - abilities #811

Open
white-haired-uncle opened this issue May 25, 2024 · 2 comments
Open

update_stats - abilities #811

white-haired-uncle opened this issue May 25, 2024 · 2 comments

Comments

@white-haired-uncle
Copy link
Collaborator

I added this:

-- PART VIII: Abilities
local latent_wrath_special = wml.get_child(wml.get_child(original, "abilities"), "damage", "latent_wrath")
if latent_wrath_special ~= nil then
table.insert(wml.get_child(remade, "abilities"), { "damage", latent_wrath_special })
end

but I just noticed this:

local remade_abilities = wml.get_child(remade, "abilities")
if not remade_abilities then
remade_abilities = { "abilities", {}}
table.insert(remade, remade_abilities)
end

@Dugy
Copy link
Owner

Dugy commented May 25, 2024

Why should that be a problem? It doesn't look like an error to me.

@white-haired-uncle
Copy link
Collaborator Author

I'm working on something else, so I haven't looked into this yet, just didn't want to forget it.

Need to check if those can be merged, so there aren't two different sections working on abilities for no good reason.

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

No branches or pull requests

2 participants