-
Notifications
You must be signed in to change notification settings - Fork 152
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
base: dev
Are you sure you want to change the base?
Conversation
c7db171
to
31170df
Compare
31170df
to
d72e640
Compare
d8a8092
to
8e7743f
Compare
8e7743f
to
478ee51
Compare
37c2a13
to
4888b13
Compare
4888b13
to
1e743d5
Compare
There was a problem hiding this 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 }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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
socketGroup.set1 = true | ||
socketGroup.set2 = true |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
src/Modules/CalcSetup.lua
Outdated
@@ -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, |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
735c844
to
bc07eae
Compare
Grant skill from nodes:

Grant skill from item:

Gems:

This PR also introduce the concept of "Set" with the following rule:
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