mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-26 22:57:39 +01:00
Ai update (#8023)
Co-authored-by: silicons <2003111+silicons@users.noreply.github.com> Co-authored-by: silicons <no@you.cat>
This commit is contained in:
co-authored by
silicons
silicons
parent
d52286da16
commit
ecd8125771
@@ -27,7 +27,20 @@
|
||||
return
|
||||
else
|
||||
return
|
||||
|
||||
//CHOMPEdit Begin
|
||||
/obj/structure/plasticflaps/can_pathfinding_enter(atom/movable/actor, dir, datum/pathfinding/search)
|
||||
if(isliving(actor))
|
||||
var/mob/living/L = actor
|
||||
if(isbot(L))
|
||||
return TRUE
|
||||
if(L.can_ventcrawl())
|
||||
return TRUE
|
||||
if(L.mob_size <= MOB_TINY)
|
||||
return TRUE
|
||||
return FALSE
|
||||
return TRUE
|
||||
//return isnull(actor.pulling)? TRUE : can_pathfinding_enter(actor.pulling, dir, search)
|
||||
//CHOMPEdit End
|
||||
/obj/structure/plasticflaps/CanPass(atom/A, turf/T)
|
||||
if(istype(A) && A.checkpass(PASSGLASS))
|
||||
return prob(60)
|
||||
@@ -65,4 +78,4 @@
|
||||
name = "airtight plastic flaps"
|
||||
desc = "Heavy duty, airtight, plastic flaps. Have extra safety installed, preventing passage of living beings."
|
||||
can_atmos_pass = ATMOS_PASS_NO
|
||||
can_pass_lying = FALSE
|
||||
can_pass_lying = FALSE
|
||||
|
||||
@@ -116,7 +116,13 @@
|
||||
take_damage(proj_damage)
|
||||
return
|
||||
|
||||
//CHOMPEdit Begin
|
||||
/obj/structure/window/can_pathfinding_enter(atom/movable/actor, dir, datum/pathfinding/search)
|
||||
return ..() || (!fulltile && (src.dir) != dir)
|
||||
|
||||
/obj/structure/window/can_pathfinding_exit(atom/movable/actor, dir, datum/pathfinding/search)
|
||||
return ..() || (!fulltile && (src.dir != dir))
|
||||
//CHOMPEdit End
|
||||
/obj/structure/window/ex_act(severity)
|
||||
switch(severity)
|
||||
if(1.0)
|
||||
@@ -703,4 +709,4 @@
|
||||
qdel(src)
|
||||
return TRUE
|
||||
return FALSE
|
||||
*/
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user