Skip to content
This repository has been archived by the owner on Jun 29, 2024. It is now read-only.

given_skills added to classes (attempt 2) #929

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

ShadowLeaderJordanzo
Copy link
Contributor

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

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
soemthin was runtiming and bufspe should be bufspd
made an oopsie with vars[variable], fixed it
change_stat rewritten seems fine
Copy link
Contributor

@ChungusGamer666 ChungusGamer666 left a 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/datums/mind.dm Outdated Show resolved Hide resolved
code/modules/mob/living/stats.dm Outdated Show resolved Hide resolved
code/modules/mob/living/stats.dm Show resolved Hide resolved
code/modules/mob/living/stats.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")
Copy link
Contributor

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

Copy link
Contributor Author

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

code/datums/mind.dm Outdated Show resolved Hide resolved
@ChungusGamer666 ChungusGamer666 added the hallowed This s very good! Maintainers are very happy with you. label May 23, 2024
@ShadowLeaderJordanzo
Copy link
Contributor Author

all other jobs/classes have to b updated. ill prob get around to it this weekend if this all checks

@ChungusGamer666
Copy link
Contributor

fix conflicts and this should be good to testmerge

@ShadowLeaderJordanzo
Copy link
Contributor Author

should b good

@ChungusGamer666
Copy link
Contributor

testmerging this

@ChungusGamer666 ChungusGamer666 changed the title given_skills added to classes given_skills added to classes (attempt 2) May 29, 2024
@ChungusGamer666
Copy link
Contributor

epic merge conflicts wtf

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
hallowed This s very good! Maintainers are very happy with you. Test Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants