-
Notifications
You must be signed in to change notification settings - Fork 281
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
Antag Rep #1212
Conversation
code/__HELPERS/_lists.dm
Outdated
if(list_to_pick.len) | ||
var/picked = pick_weight(list_to_pick) | ||
list_to_pick[picked] = null | ||
list_to_pick.Remove(picked) |
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.
This and the line above can just be replaced with -=, unless a num value needs some kind of ref clearing for some reason
|
||
/datum/preferences/proc/return_default_antag_rep() | ||
if(!parent) | ||
return 10 |
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.
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 |
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.
This should be a define
return GLOB.blessed_ckeys[parent.ckey][2] | ||
|
||
/datum/preferences/proc/return_rep_multiplier() | ||
if(!parent) |
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.
same here for the duplicate values
monkestation/code/modules/storytellers/antag_rep/helper_procs.dm
Outdated
Show resolved
Hide resolved
monkestation/code/modules/storytellers/converted_events/_base_event.dm
Outdated
Show resolved
Hide resolved
monkestation/code/modules/storytellers/converted_events/_base_event.dm
Outdated
Show resolved
Hide resolved
monkestation/code/modules/storytellers/converted_events/_base_event.dm
Outdated
Show resolved
Hide resolved
antag_rep = default | ||
save_preferences() | ||
|
||
/datum/preferences/proc/return_default_antag_rep() |
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.
come to think of it I think this proc could be refactored to just return a var instead all these exact values
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: