mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
## About The Pull Request Removes the ability for the ghost cafe to make opfors. The original intention behind this code was to stop ghosts from making opfors, and they all sort of shifted to going to the ghost cafe to circumvent that. It's obviously an oversite. ## Why It's Good For The Game The senior admin team all sort of said this was fine and it's kind of an annoyance. The system is fine if you're in round asking to beat up the chef, but some people do seriously go to the ghost cafe and ask for ninja (or some other antag) every round and it's always kind of a repeating cycle with new faces doing it. ## Proof Of Testing  ## Changelog 🆑 del: Ghost Cafe can no longer make opfors. /🆑
35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
/datum/mind
|
|
var/datum/opposing_force/opposing_force
|
|
|
|
/datum/mind/Destroy()
|
|
QDEL_NULL(opposing_force)
|
|
return ..()
|
|
|
|
/mob/verb/opposing_force()
|
|
set name = "Opposing Force"
|
|
set category = "OOC"
|
|
set desc = "View your opposing force panel, or request one."
|
|
// Mind checks
|
|
if(!mind)
|
|
var/fail_message = "You have no mind!"
|
|
if(isobserver(src))
|
|
fail_message += " You have to be in the current round at some point to have one."
|
|
to_chat(src, span_warning(fail_message))
|
|
return
|
|
if(mind?.assigned_role.title == ROLE_GHOST_CAFE)
|
|
to_chat(src, span_warning("You have to be inside the current round to request an opfor."))
|
|
return
|
|
if(is_banned_from(ckey, BAN_ANTAGONIST))
|
|
to_chat(src, span_warning("You are antagonist banned!"))
|
|
return
|
|
|
|
if(is_banned_from(ckey, BAN_OPFOR))
|
|
to_chat(src, span_warning("You are OPFOR banned!"))
|
|
return
|
|
|
|
if(!mind.opposing_force)
|
|
var/datum/opposing_force/opposing_force = new(mind)
|
|
mind.opposing_force = opposing_force
|
|
SSopposing_force.new_opfor(opposing_force)
|
|
mind.opposing_force.ui_interact(usr)
|