-
Notifications
You must be signed in to change notification settings - Fork 186
given_skills added to classes (attempt 2) #929
base: main
Are you sure you want to change the base?
given_skills added to classes (attempt 2) #929
Conversation
an attempt to be able to find a class's skills tested and it works w/ rouge, kinda new to code base but im assuming we can tell what job/class somebody is? given thats the case, /type:: can call given_skills or stats_given if not i can try and add a text ref to the class they are
also added warrior, ig im making a faux const, but i don't think theres massive instances of these classes(?) so having them shouldn't be a big deal?
tested the job, after_spawn() does take care of it. didnt test adjust_experience() i assume from looking it works the same as adjust_skillrank() idk
also warrior and rouge have both the stat and skills. amazon is there. I DID NOT TEST change_stat!!! COMPILE->TEST pipeline is like 3 mins for me
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.
most impressive, and also most demented, pr made by a random contributor so fad
code/modules/jobs/job_types/roguetown/adventurer/types/combat/amazon.dm
Outdated
Show resolved
Hide resolved
// H.mind.adjust_skillrank(/datum/skill/misc/riding, pick(2,3), TRUE) | ||
// H.mind.adjust_skillrank(/datum/skill/misc/medicine, 1, TRUE) | ||
|
||
H.mind.assign_experiences(/datum/advclass/sfighter::stat_changes, TRUE, "Stats") |
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.
oh look its the funny new operator!
...does it even work with lists? i know for a fact initial() refuses to work with lists
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.
on children yes, on parent it throws a runtime
`
/datum/test
var/list/given_skills = list()
/datum/test/child
given_skills = list("blah" =1 , "halb" = 2)
/mob/verb/test()
world<<jointext(/datum/test/child::given_skills, " , ")
`
does result in: blah , halb
all other jobs/classes have to b updated. ill prob get around to it this weekend if this all checks |
fix conflicts and this should be good to testmerge |
should b good |
testmerging this |
epic merge conflicts wtf |
About The Pull Request
an attempt to be able to find a class's skills
tested and it works w/ rouge, kinda new to code base but im assuming we can tell what job/class somebody is? given thats the case, /type:: can call given_skills or stats_given if not i can try and add a text ref to the class they are
the idea: add given_skills and stats_given to the advclass datum / perhaps to job as well, not sure how jobs tie into this codebase yet
use these lists as both a ref and a way to apply stats/skills
the dream: easier to adjust skills/stats
capable of finding skills/stats of a class
Why It's Good For The Game
makes code life easier ig, i seen this and decided to take a shot at it.
in the long run it'll b a lot of replacing chunks of code which may b easy with a regex or something