mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-11 15:14:27 +01:00
Committing Rolan's MMI suicide/ghosting fix. Fixed issue 143.
Comitting Nodraks's ghost ears toggle preference. I also removed the underwear option, as it could not be toggled. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3038 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -47,10 +47,9 @@
|
||||
|
||||
if(confirm == "Yes")
|
||||
suiciding = 1
|
||||
viewers(loc) << "\red <b>[src]'s brain is growing dull and lifeless. It looks like it's trying to commit suicide. Somehow.</b>"
|
||||
adjustOxyLoss(max(175 - getToxLoss() - getFireLoss() - getBruteLoss() - getOxyLoss(), 0))
|
||||
updatehealth()
|
||||
spawn(200)
|
||||
viewers(loc) << "\red <b>[src]'s brain is growing dull and lifeless. It looks like it's lost the will to live.</b>"
|
||||
spawn(50)
|
||||
death(0)
|
||||
suiciding = 0
|
||||
|
||||
/mob/living/carbon/monkey/verb/suicide()
|
||||
|
||||
@@ -20,6 +20,5 @@
|
||||
if (key)
|
||||
spawn(50)
|
||||
if(key && stat == 2)
|
||||
src << "You are now dead. If you cannot ghost at this point, relog into the game."
|
||||
verbs += /mob/proc/ghost
|
||||
ghost()
|
||||
return ..(gibbed)
|
||||
@@ -52,6 +52,8 @@ datum/preferences
|
||||
be_special = 0
|
||||
//Play admin midis
|
||||
midis = 1
|
||||
//Toggle ghost ears
|
||||
ghost_ears = 1
|
||||
//Saved changlog filesize to detect if there was a change
|
||||
lastchangelog = 0
|
||||
|
||||
@@ -127,6 +129,7 @@ datum/preferences
|
||||
dat += "<br>"
|
||||
dat += "<b>UI Style:</b> <a href=\"byond://?src=\ref[user];preferences=1;UI=input\"><b>[UI == UI_NEW ? "New" : "Old"]</b></a><br>"
|
||||
dat += "<b>Play admin midis:</b> <a href=\"byond://?src=\ref[user];preferences=1;midis=input\"><b>[midis == 1 ? "Yes" : "No"]</b></a><br>"
|
||||
dat += "<b>Ghost ears:</b> <a href=\"byond://?src=\ref[user];preferences=1;ghost_ears=input\"><b>[ghost_ears == 0 ? "Nearest Creatures" : "All Speech"]</b></a><br>"
|
||||
|
||||
if((user.client) && (user.client.holder) && (user.client.holder.rank) && (user.client.holder.level >= 5))
|
||||
dat += "<hr><b>OOC</b><br>"
|
||||
@@ -141,8 +144,8 @@ datum/preferences
|
||||
dat += "Blood Type: <a href='byond://?src=\ref[user];preferences=1;b_type=input'>[b_type]</a><br>"
|
||||
dat += "Skin Tone: <a href='byond://?src=\ref[user];preferences=1;s_tone=input'>[-s_tone + 35]/220<br></a>"
|
||||
|
||||
if(!IsGuestKey(user.key))
|
||||
dat += "Underwear: <a href =\"byond://?src=\ref[user];preferences=1;underwear=1\"><b>[underwear == 1 ? "Yes" : "No"]</b></a><br>"
|
||||
// if(!IsGuestKey(user.key))//Seeing as it doesn't do anything, it may as well not show up.
|
||||
// dat += "Underwear: <a href =\"byond://?src=\ref[user];preferences=1;underwear=1\"><b>[underwear == 1 ? "Yes" : "No"]</b></a><br>"
|
||||
dat += "</td><td><b>Preview</b><br><img src=previewicon.png height=64 width=64></td></tr></table>"
|
||||
|
||||
dat += "<hr><b>Hair</b><br>"
|
||||
@@ -522,6 +525,9 @@ datum/preferences
|
||||
if(link_tags["midis"])
|
||||
midis = (midis+1)%2
|
||||
|
||||
if(link_tags["ghost_ears"])
|
||||
ghost_ears = !ghost_ears
|
||||
|
||||
if(link_tags["underwear"])
|
||||
if(!IsGuestKey(user.key))
|
||||
switch(link_tags["underwear"])
|
||||
@@ -582,6 +588,7 @@ datum/preferences
|
||||
b_type = "A+"
|
||||
UI = UI_OLD
|
||||
midis = 1
|
||||
ghost_ears = 1
|
||||
|
||||
ShowChoices(user)
|
||||
|
||||
@@ -633,6 +640,7 @@ datum/preferences
|
||||
character.client.ooccolor = ooccolor
|
||||
character.client.be_alien = be_special&BE_ALIEN
|
||||
character.client.be_pai = be_special&BE_PAI
|
||||
character.client.ghost_ears = ghost_ears
|
||||
|
||||
#undef UI_OLD
|
||||
#undef UI_NEW
|
||||
@@ -52,6 +52,7 @@ datum/preferences/proc/savefile_save(mob/user)
|
||||
F["be_special"] << src.be_special
|
||||
F["UI"] << src.UI
|
||||
F["midis"] << src.midis
|
||||
F["ghost_ears"] << src.ghost_ears
|
||||
F["ooccolor"] << src.ooccolor
|
||||
F["lastchangelog"] << src.lastchangelog
|
||||
|
||||
@@ -98,6 +99,7 @@ datum/preferences/proc/savefile_load(mob/user)
|
||||
F["underwear"] >> src.underwear
|
||||
F["name_is_always_random"] >> src.be_random_name
|
||||
F["midis"] >> src.midis
|
||||
F["ghost_ears"] >> src.ghost_ears
|
||||
F["ooccolor"] >> src.ooccolor
|
||||
F["lastchangelog"] >> src.lastchangelog
|
||||
F["UI"] >> src.UI
|
||||
|
||||
Reference in New Issue
Block a user