mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Merged with dev.
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
/*
|
||||
This is what is supplied to the examine tab. Everything has a 'descriptions' variable, which is null by default. When it is not null,
|
||||
it contains this datum. To add this datum to something, all you do is add this to the thing..
|
||||
|
||||
descriptions = new/datum/descriptions("I am some helpful blue text","I have backstory text about this obj.","You can use this to kill everyone.")
|
||||
|
||||
First string is the 'info' var, second is the 'fluff' var, and third is the 'antag' var. All are optional. Just add it to the object you want to have it.
|
||||
|
||||
If you are wondering, BYOND does not let you do desc = new/datum/descriptions .
|
||||
|
||||
More strings can be added easily, but you will need to add a proc to retrieve it from the atom. The procs are defined in atoms.dm.
|
||||
|
||||
*/
|
||||
/datum/descriptions
|
||||
var/info
|
||||
var/fluff
|
||||
var/antag
|
||||
|
||||
/datum/descriptions/New(var/info, var/fluff, var/antag)
|
||||
src.info = info
|
||||
src.fluff = fluff
|
||||
src.antag = antag
|
||||
@@ -46,7 +46,7 @@ var/const/AALARM_WIRE_AALARM = 16
|
||||
//world << "Syphon Wire Cut"
|
||||
|
||||
if(AALARM_WIRE_AALARM)
|
||||
if (A.alarm_area.atmosalert(2))
|
||||
if (A.alarm_area.atmosalert(2, A))
|
||||
A.post_alert(2)
|
||||
A.update_icon()
|
||||
|
||||
@@ -88,6 +88,6 @@ var/const/AALARM_WIRE_AALARM = 16
|
||||
|
||||
if(AALARM_WIRE_AALARM)
|
||||
// world << "Aalarm wire pulsed"
|
||||
if (A.alarm_area.atmosalert(0))
|
||||
if (A.alarm_area.atmosalert(0, A))
|
||||
A.post_alert(0)
|
||||
A.update_icon()
|
||||
|
||||
Reference in New Issue
Block a user