mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 03:33:21 +00:00
removed client/var/be_alien and client/var/be_pai, everything now uses client.prefs.be_special
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5126 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -303,7 +303,7 @@ proc/isInSight(var/atom/A, var/atom/B)
|
|||||||
var/i = 0
|
var/i = 0
|
||||||
while(candidates.len <= 0 && i < 5)
|
while(candidates.len <= 0 && i < 5)
|
||||||
for(var/mob/dead/observer/G in player_list)
|
for(var/mob/dead/observer/G in player_list)
|
||||||
if(G.client.be_alien)
|
if(G.client.prefs.be_special & BE_ALIEN)
|
||||||
if(((G.client.inactivity/10)/60) <= ALIEN_SELECT_AFK_BUFFER + i) // the most active players are more likely to become an alien
|
if(((G.client.inactivity/10)/60) <= ALIEN_SELECT_AFK_BUFFER + i) // the most active players are more likely to become an alien
|
||||||
if(!(G.mind && G.mind.current && G.mind.current.stat != DEAD))
|
if(!(G.mind && G.mind.current && G.mind.current.stat != DEAD))
|
||||||
candidates += G.key
|
candidates += G.key
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
proc/create_fragments(var/wave_size = 1)
|
proc/create_fragments(var/wave_size = 1)
|
||||||
var/list/candidates = list()
|
var/list/candidates = list()
|
||||||
for(var/mob/dead/observer/G in player_list)
|
for(var/mob/dead/observer/G in player_list)
|
||||||
if(G.client.be_alien)
|
if(G.client.prefs.be_special & BE_ALIEN)
|
||||||
if(!(G.mind && G.mind.current && G.mind.current.stat != DEAD))
|
if(!(G.mind && G.mind.current && G.mind.current.stat != DEAD))
|
||||||
candidates += G.key
|
candidates += G.key
|
||||||
|
|
||||||
|
|||||||
@@ -200,7 +200,7 @@ proc/cmd_admin_mute(mob/M as mob, mute_type, automute = 0)
|
|||||||
var/list/candidates = list()
|
var/list/candidates = list()
|
||||||
for(var/mob/M in player_list)
|
for(var/mob/M in player_list)
|
||||||
if(M.stat != DEAD) continue //we are not dead!
|
if(M.stat != DEAD) continue //we are not dead!
|
||||||
if(!M.client.be_alien) continue //we don't want to be an alium
|
if(!M.client.prefs.be_special & BE_ALIEN) continue //we don't want to be an alium
|
||||||
if(M.client.is_afk()) continue //we are afk
|
if(M.client.is_afk()) continue //we are afk
|
||||||
if(M.mind && M.mind.current && M.mind.current.stat != DEAD) continue //we have a live body we are tied to
|
if(M.mind && M.mind.current && M.mind.current.stat != DEAD) continue //we have a live body we are tied to
|
||||||
candidates += M.ckey
|
candidates += M.ckey
|
||||||
|
|||||||
@@ -20,8 +20,6 @@
|
|||||||
var/deadchat = 1
|
var/deadchat = 1
|
||||||
var/area = null
|
var/area = null
|
||||||
var/played = 0
|
var/played = 0
|
||||||
var/be_alien = 0 //Check if that guy wants to be an alien
|
|
||||||
var/be_pai = 1 //Consider client when searching for players to recruit as a pAI
|
|
||||||
var/STFU_ghosts //80+ people rounds are fun to admin when text flies faster than airport security
|
var/STFU_ghosts //80+ people rounds are fun to admin when text flies faster than airport security
|
||||||
var/STFU_radio //80+ people rounds are fun to admin when text flies faster than airport security
|
var/STFU_radio //80+ people rounds are fun to admin when text flies faster than airport security
|
||||||
|
|
||||||
|
|||||||
@@ -234,23 +234,17 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
|
|||||||
set name = "Toggle Be Alien Candidate"
|
set name = "Toggle Be Alien Candidate"
|
||||||
set category = "Ghost"
|
set category = "Ghost"
|
||||||
set desc = "Determines whether you will or will not be an alien candidate when someone bursts."
|
set desc = "Determines whether you will or will not be an alien candidate when someone bursts."
|
||||||
if(client.be_alien)
|
if(client)
|
||||||
client.be_alien = 0
|
client.prefs.be_special ^= BE_ALIEN
|
||||||
src << "You are now excluded from alien candidate lists until end of round."
|
src << "You are now [(client.prefs.be_special & BE_ALIEN) ? "included in" : "excluded from"] alien candidate lists until end of round."
|
||||||
else if(!client.be_alien)
|
|
||||||
client.be_alien = 1
|
|
||||||
src << "You are now included in alien candidate lists until end of round."
|
|
||||||
|
|
||||||
/mob/dead/observer/verb/toggle_pai_candidate()
|
/mob/dead/observer/verb/toggle_pai_candidate()
|
||||||
set name = "Toggle Be pAI Candidate"
|
set name = "Toggle Be pAI Candidate"
|
||||||
set category = "Ghost"
|
set category = "Ghost"
|
||||||
set desc = "Receive a pop-up request when a pAI device requests a new personality. (toggle)"
|
set desc = "Receive a pop-up request when a pAI device requests a new personality. (toggle)"
|
||||||
if(client.be_pai)
|
if(client)
|
||||||
client.be_pai = 0
|
client.prefs.be_special ^= BE_PAI
|
||||||
src << "You will no longer receive pAI recruitment pop-ups this round."
|
src << "You will [(client.prefs.be_special & BE_PAI) ? "now" : "no longer" ] recieve pAI recruitment pop-ups."
|
||||||
else
|
|
||||||
client.be_pai = 1
|
|
||||||
src << "You will now be considered a viable candidate when a pAI device requests a new personality, effective until the end of this round."
|
|
||||||
|
|
||||||
/mob/dead/observer/memory()
|
/mob/dead/observer/memory()
|
||||||
set hidden = 1
|
set hidden = 1
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ var/datum/paiController/paiController // Global handler for pAI candidates
|
|||||||
for(var/datum/paiCandidate/c in paiController.pai_candidates)
|
for(var/datum/paiCandidate/c in paiController.pai_candidates)
|
||||||
if(c.key == O.key)
|
if(c.key == O.key)
|
||||||
hasSubmitted = 1
|
hasSubmitted = 1
|
||||||
if(!hasSubmitted && O.client.be_pai)
|
if(!hasSubmitted && (O.client.prefs.be_special & BE_PAI))
|
||||||
question(O.client)
|
question(O.client)
|
||||||
|
|
||||||
proc/question(var/client/C)
|
proc/question(var/client/C)
|
||||||
@@ -214,4 +214,4 @@ var/datum/paiController/paiController // Global handler for pAI candidates
|
|||||||
if(response == "Yes")
|
if(response == "Yes")
|
||||||
recruitWindow(C.mob)
|
recruitWindow(C.mob)
|
||||||
else if (response == "Never for this round")
|
else if (response == "Never for this round")
|
||||||
C.be_pai = 0
|
C.prefs.be_special &= ~BE_PAI
|
||||||
|
|||||||
@@ -714,8 +714,6 @@ datum/preferences
|
|||||||
C.holder.sound_adminhelp = src.sound_adminhelp
|
C.holder.sound_adminhelp = src.sound_adminhelp
|
||||||
C.holder.ooccolor = src.ooccolor
|
C.holder.ooccolor = src.ooccolor
|
||||||
C.midis = src.midis
|
C.midis = src.midis
|
||||||
C.be_alien = be_special & BE_ALIEN
|
|
||||||
C.be_pai = be_special & BE_PAI
|
|
||||||
if(isnull(src.ghost_ears)) src.ghost_ears = 1 //There were problems where the default was null before someone saved their profile.
|
if(isnull(src.ghost_ears)) src.ghost_ears = 1 //There were problems where the default was null before someone saved their profile.
|
||||||
C.ghost_ears = src.ghost_ears
|
C.ghost_ears = src.ghost_ears
|
||||||
C.ghost_sight = src.ghost_sight
|
C.ghost_sight = src.ghost_sight
|
||||||
|
|||||||
Reference in New Issue
Block a user