mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 21:48:21 +01:00
Generic ventcrawling + Bugfixes
This commit makes the ventcrawling system operate independant of ventcrawling verbs. Every type of /mob/living now has a ventcrawling variable, which allows them to interact with the ventcrawling system if set to 1 or 2. The AltClickOn() defines for each ventcrawling mob have been removed, and replaced with a single AltClick() define on ventcrawl machinery.
This commit is contained in:
@@ -1,37 +0,0 @@
|
||||
var/list/ventcrawl_machinery = list(/obj/machinery/atmospherics/unary/vent_pump, /obj/machinery/atmospherics/unary/vent_scrubber)
|
||||
|
||||
/mob/living/carbon/slime/AltClickOn(var/atom/A)
|
||||
if(is_type_in_list(A,ventcrawl_machinery))
|
||||
src.ventcrawl(A)
|
||||
return
|
||||
..(A)
|
||||
|
||||
/mob/living/carbon/monkey/AltClickOn(var/atom/A)
|
||||
if(is_type_in_list(A,ventcrawl_machinery))
|
||||
src.ventcrawl(A)
|
||||
return
|
||||
..(A)
|
||||
|
||||
/mob/living/simple_animal/borer/AltClickOn(var/atom/A)
|
||||
if(is_type_in_list(A,ventcrawl_machinery))
|
||||
src.ventcrawl(A)
|
||||
return
|
||||
..(A)
|
||||
|
||||
/mob/living/simple_animal/mouse/AltClickOn(var/atom/A)
|
||||
if(is_type_in_list(A,ventcrawl_machinery))
|
||||
src.ventcrawl(A)
|
||||
return
|
||||
..(A)
|
||||
|
||||
/mob/living/simple_animal/spiderbot/AltClickOn(var/atom/A)
|
||||
if(is_type_in_list(A,ventcrawl_machinery))
|
||||
src.ventcrawl(A)
|
||||
return
|
||||
..(A)
|
||||
|
||||
/mob/living/carbon/alien/AltClickOn(var/atom/A)
|
||||
if(is_type_in_list(A,ventcrawl_machinery))
|
||||
src.ventcrawl(A)
|
||||
return
|
||||
..(A)
|
||||
Reference in New Issue
Block a user