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

Antag Rep #1212

Merged
merged 8 commits into from
Feb 22, 2024
Merged

Antag Rep #1212

merged 8 commits into from
Feb 22, 2024

Conversation

dwasint
Copy link
Collaborator

@dwasint dwasint commented Feb 15, 2024

About The Pull Request

Why It's Good For The Game

Changelog

🆑
add: antag rep, for every roll you go without being antag your odds increase, resetting when you become and antag, passing a roll won't remove your rep
/:cl:

if(list_to_pick.len)
var/picked = pick_weight(list_to_pick)
list_to_pick[picked] = null
list_to_pick.Remove(picked)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This and the line above can just be replaced with -=, unless a num value needs some kind of ref clearing for some reason

code/__HELPERS/_lists.dm Outdated Show resolved Hide resolved

/datum/preferences/proc/return_default_antag_rep()
if(!parent)
return 10
Copy link
Collaborator

Choose a reason for hiding this comment

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

These return values should also use defines, also if these have the same value then I think it could just use || and or ?.

@@ -45,3 +45,6 @@
)
///amount of lootboxes owned
var/lootboxes_owned = 0

///our current antag rep (base is 10)
var/antag_rep = 10
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be a define

return GLOB.blessed_ckeys[parent.ckey][2]

/datum/preferences/proc/return_rep_multiplier()
if(!parent)
Copy link
Collaborator

Choose a reason for hiding this comment

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

same here for the duplicate values

antag_rep = default
save_preferences()

/datum/preferences/proc/return_default_antag_rep()
Copy link
Collaborator

Choose a reason for hiding this comment

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

come to think of it I think this proc could be refactored to just return a var instead all these exact values

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

Successfully merging this pull request may close these issues.

2 participants