More bug fixes (#2305)

Fixes #2296
Fixes #1904
Fixes #2303
Fixes #2285
Fixes #1753
Fixes #1649
Fixes #789
Fixes #1779
This commit is contained in:
Ron
2017-05-20 18:41:26 +03:00
committed by skull132
parent 9dfcdc5311
commit 5de06206e7
9 changed files with 66 additions and 35 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
var/heal_burn = 0
/obj/item/stack/medical/attack(mob/living/M as mob, mob/user as mob)
if (!istype(M) || istype(M, /mob/living/silicon))
if (!istype(M) || istype(M, /mob/living/silicon) || istype(M, /mob/living/simple_animal/spiderbot))
user << "<span class='warning'>\The [src] cannot be applied to [M]!</span>"
return 1
@@ -34,14 +34,20 @@
return eyestab(M,user)
else
return ..()
var/fullness = M.nutrition + (M.reagents.get_reagent_amount("nutriment") * 25)
if (reagents.total_volume > 0)
reagents.trans_to_mob(M, reagents.total_volume, CHEM_INGEST)
if(M == user)
if(!M.can_eat(loaded))
return
if (fullness > (550 * (1 + M.overeatduration / 2000)))
M <<"You cannot force anymore food down!"
return
M.visible_message("<span class='notice'>\The [user] eats some [loaded] from \the [src].</span>")
else
if (fullness > (550 * (1 + M.overeatduration / 2000)))
M <<"You cannot force anymore food down their throat!"
return
user.visible_message("<span class='warning'>\The [user] begins to feed \the [M]!</span>")
if(!(M.can_force_feed(user, loaded) && do_mob(user, M, 5 SECONDS)))
return