-
Notifications
You must be signed in to change notification settings - Fork 566
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
Locks on spotter kit. #4114
Locks on spotter kit. #4114
Conversation
if(recipient) | ||
. += SPAN_NOTICE("It has been claimed by [recipient].") | ||
else | ||
. += SPAN_NOTICE("It is still sealed. It can be claimed by squad rifleman's ID.") |
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.
. += SPAN_NOTICE("It is still sealed. It can be claimed by squad rifleman's ID.") | |
. += SPAN_NOTICE("It is still sealed. It can be claimed by swiping a squad rifleman's ID.") |
/obj/item/storage/box/kit/companion/spotter/get_examine_text(mob/user) | ||
. = ..() | ||
if(!issuer) | ||
. += SPAN_NOTICE("It can be unlocked by sniper specialist's ID.") |
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.
. += SPAN_NOTICE("It can be unlocked by sniper specialist's ID.") | |
. += SPAN_NOTICE("It can be unlocked by swiping the sniper specialist's ID.") |
var/issuer | ||
var/datum/squad/associated_squad | ||
var/associated_fireteam | ||
var/recipient |
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.
code doc pls
///A kit that is issued by one human to another. | ||
/obj/item/storage/box/kit/companion | ||
var/issuer | ||
var/datum/squad/associated_squad |
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.
null on destroy
/obj/item/storage/box/kit/companion/proc/register_issuer(mob/living/carbon/human/user) | ||
issuer = user.real_name | ||
associated_squad = user.assigned_squad | ||
associated_fireteam = user.assigned_fireteam | ||
|
||
/obj/item/storage/box/kit/companion/proc/register_recipient(mob/living/carbon/human/user, obj/item/card/id/card) |
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.
code doc
return | ||
return ..() | ||
|
||
/obj/item/storage/box/kit/companion/proc/register_issuer(mob/living/carbon/human/user) |
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.
code doc
pro_case_overlay = "spotter" | ||
var/datum/character_trait/trait_to_apply = /datum/character_trait/skills/spotter |
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.
null on destroy pls
Two things to consider would be appending spotter to the spotter's name in an OW console, which could make it easier for SOs to find the spotter at a glance, and maybe doing something like giving the spotter kit a flavor text to remind people about PDT-L kits or something similar |
This PR has been inactive for long enough to be automatically marked as stale. This means it is at risk of being auto closed in ~ 7 days, please address any outstanding review items and ensure your PR is finished, if these are all true and you are auto-staled anyway, you need to actively ask maintainers if your PR will be merged. Once you have done any of the previous actions then you should request a maintainer remove the stale label on your PR, to reset the stale timer. If you feel no maintainer will respond in that time, you may wish to close this PR youself, while you seek maintainer comment, as you will then be able to reopen the PR yourself |
About the pull request
Another promise off my todolist. I might have some further ideas building on companion kits, so some code is split into a generic variant and some left as specific to the sniper-spotter setup between a specialist and a regular marine.
Explain why it's good for the game
I am tired of magpies stealing or ransacking spotter kits. I barely even play sniper, and I am tired of random marines shooting down my door solely to steal the kit anyway.
Changelog
🆑
add: Spotter kit now features a two layer lock. First swipe sniper's ID to mark his willingness to part with it, second swipe the rifleman's ID to claim the spotter role. Comes with automatic skill adjustment and transfer into sniper's squad.
/:cl: