-
Notifications
You must be signed in to change notification settings - Fork 590
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'cmss13-devs/master' into project/fax_re…
…sponders/main
- Loading branch information
Showing
58 changed files
with
9,071 additions
and
6,934 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/// From /area/proc/purge_weeds() | ||
#define COMSIG_AREA_RESIN_DISALLOWED "area_weeds_disallowed" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* Handles cleaning up resin when the area requests it | ||
*/ | ||
/datum/component/resin_cleanup | ||
|
||
/datum/component/resin_cleanup/Initialize(...) | ||
var/area/parent_area = get_area(parent) | ||
|
||
RegisterSignal(parent_area, COMSIG_AREA_RESIN_DISALLOWED, PROC_REF(cleanup_resin)) | ||
|
||
/datum/component/resin_cleanup/proc/cleanup_resin() | ||
SIGNAL_HANDLER | ||
|
||
if(isturf(parent)) | ||
var/turf/parent_turf = parent | ||
addtimer(CALLBACK(parent_turf, TYPE_PROC_REF(/turf, ScrapeAway)), rand(1 SECONDS, 5 SECONDS)) | ||
return | ||
|
||
QDEL_IN(parent, rand(1 SECONDS, 5 SECONDS)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.