Many bugfixes!

This commit is contained in:
Cadyn
2020-08-23 19:54:11 -07:00
parent f039e2802e
commit 5e02857320
5 changed files with 10 additions and 5 deletions

View File

@@ -60,7 +60,6 @@
A.add_hiddenprint(src)
A.attack_robot(src)
return
// buckled cannot prevent machine interlinking but stops arm movement
if( buckled )
return
@@ -69,7 +68,9 @@
W.attack_self(src)
return
if(A.type==/obj/structure/flora/pottedplant || A.parent_type==/obj/structure/flora/pottedplant)
return
// cyborgs are prohibited from using storage items so we can I think safely remove (A.loc in contents)
if(A == loc || (A in loc) || (A in contents))
// No adjacency checks

View File

@@ -205,7 +205,8 @@ SUBSYSTEM_DEF(supply)
else if(islist(SP.access) && SP.one_access)
var/list/L = SP.access // access var is a plain var, we need a list
A.req_one_access = L.Copy()
A.req_access.Cut()
if(A.req_access)
A.req_access.Cut()
else if(islist(SP.access) && !SP.one_access)
var/list/L = SP.access
A.req_access = L.Copy()

View File

@@ -68,6 +68,9 @@
var/flash_time = strength
if(istype(O, /mob/living/carbon/human))
var/mob/living/carbon/human/H = O
if(H.nif && H.nif.flag_check(NIF_V_FLASHPROT,NIF_FLAGS_VISION))
H.nif.notify("High intensity light detected, and blocked!",TRUE)
continue
if(!H.eyecheck() <= 0)
continue
flash_time *= H.species.flash_mod

View File

@@ -63,7 +63,7 @@
to_chat(user, "<span class='warning'>This syringe is broken!</span>")
return
if(user.a_intent == I_HURT && ismob(target))
if(user.a_intent == I_HURT && ismob(target) && user.type!=/mob/living/silicon/robot)
if((CLUMSY in user.mutations) && prob(50))
target = user
syringestab(target, user)

View File

@@ -482,7 +482,7 @@
var/mob/living/carbon/human/Pred = owner
//Reagent sharing for absorbed with pred - Copy so both pred and prey have these reagents.
Prey.bloodstr.trans_to_holder(Pred.bloodstr, Prey.bloodstr.total_volume, copy = TRUE)
Prey.ingested.trans_to_holder(Pred.bloodstr, Prey.ingested.total_volume, copy = TRUE)
Prey.ingested.trans_to_holder(Pred.ingested, Prey.ingested.total_volume, copy = TRUE)
Prey.touching.trans_to_holder(Pred.bloodstr, Prey.touching.total_volume, copy = TRUE)
// TODO - Find a way to make the absorbed prey share the effects with the pred.
// Currently this is infeasible because reagent containers are designed to have a single my_atom, and we get