Skip to content

Grant Skills from node / item now can add support gem #589

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

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

Conversation

justjuangui
Copy link
Contributor

@justjuangui justjuangui commented Jan 24, 2025

Grant skill from nodes:
image

Grant skill from item:
image

Gems:
image

This PR also introduce the concept of "Set" with the following rule:

  • if Set1 and Set2 then WeaponSet1 = true
  • If not Set1 and Set2 then WeaponSet2 = true

Now to precalculate by skill we are taking into account if the gem is from item and if slot have swap to change the option

Triggered Skills isnt yet implemented in POB2

Copy link
Member

@Wires77 Wires77 left a comment

Choose a reason for hiding this comment

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

I'm still doing some testing, but I found a couple of oddities by just reading the code so far

@@ -208,41 +206,6 @@ local SkillsTabClass = newClass("SkillsTab", "UndoHandler", "ControlHost", "Cont
self.controls.groupCount.shown = function()
return self.displayGroup.source ~= nil
end
self.controls.sourceNote = new("LabelControl", { "TOPLEFT", self.controls.groupSlotLabel, "TOPLEFT" }, { 0, 30, 0, 16 })
Copy link
Member

Choose a reason for hiding this comment

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

Something funny happens when I allocate Explosive Impact on the tree. I'm assuming it's relating to removing this section. Do we need to remove it?
image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thx i didnt realice that kind of source, fixed in the last code

Comment on lines +1091 to +1110
socketGroup.set1 = true
socketGroup.set2 = true
Copy link
Member

Choose a reason for hiding this comment

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

Can you not set a skill from a node to a weapon slot in-game?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

can you elaborate more please, i would like to understand your point

@@ -175,7 +175,7 @@ function calcs.buildModListForNode(env, node, incSmallPassiveSkill)
t_insert(node.grantedSkills, {
skillId = skill.skillId,
level = skill.level,
noSupports = true,
noSupports = skill.noSupports ~= nil and skill.noSupports,
Copy link
Member

Choose a reason for hiding this comment

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

Can't you just do skill.noSupports? That's what is in Item.lua

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@justjuangui justjuangui force-pushed the gem_redisign branch 5 times, most recently from 735c844 to bc07eae Compare May 1, 2025 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature, calculation, or mod
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants