Big Bugfix Bonanza

This commit is contained in:
mistyLuminescence
2019-05-23 12:59:29 -04:00
committed by VirgoBot
parent 529c0381bb
commit 42cc20278e
12 changed files with 94 additions and 9 deletions
@@ -17,7 +17,7 @@
gas_transfer_coefficient = 0.01
permeability_coefficient = 0.02
item_flags = 0
body_parts_covered = UPPER_TORSO|LOWER_TORSO|LEGS|FEET|ARMS
body_parts_covered = UPPER_TORSO|LOWER_TORSO|LEGS|FEET|ARMS|HANDS
allowed = list(/obj/item/weapon/tank/emergency/oxygen, /obj/item/device/flashlight,/obj/item/weapon/gun/energy, /obj/item/weapon/gun/projectile, /obj/item/ammo_magazine, /obj/item/ammo_casing, /obj/item/weapon/melee/baton,/obj/item/weapon/handcuffs)
slowdown = 1.5
armor = list(melee = 65, bullet = 50, laser = 50, energy = 25, bomb = 50, bio = 100, rad = 50)
@@ -42,6 +42,7 @@
switch(suit_style)
if("Engineer")
name = "\improper Engineer's Guild Shroud"
base_name = "\improper Engineer's Guild Shroud"
desc = "This rugged Shroud was created by the Xozi Engineering Guild."
icon_state = "zaddat_engie"
item_state = "zaddat_engie"
@@ -52,6 +53,7 @@
helmet.item_state = "zaddat_engie"
if("Spacer")
name = "\improper Spacer's Guild Shroud"
base_name = "\improper Spacer's Guild Shroud"
desc = "The blue plastic Shroud worn by members of the Zaddat Spacer's Guild."
icon_state = "zaddat_spacer"
item_state = "zaddat_spacer"
@@ -62,6 +64,7 @@
helmet.item_state = "zaddat_spacer"
if("Knight")
name = "\improper Knight's Shroud"
base_name = "\improper Knight's Shroud"
desc = "This distinctive steel-plated Shroud was popularized by the Noble Guild."
icon_state = "zaddat_knight"
item_state = "zaddat_knight"
@@ -72,6 +75,7 @@
helmet.item_state = "zaddat_knight"
if("Fashion")
name = "\improper Avazi House Shroud"
base_name = "\improper Avazi House Shroud"
desc = "The designers of the Avazi Fashion House are among the most renowned in Zaddat society, and their Shroud designs second to none."
icon_state = "zaddat_fashion"
item_state = "zaddat_fashion"
@@ -82,6 +86,7 @@
helmet.item_state = "zaddat_fashion"
if("Bishop")
name = "\improper Bishop-patterned Shroud"
base_name = "\improper Bishop-patterned Shroud"
desc = "The bold designers of the Dzaz Fashion House chose to make this Bishop-themed Shroud design as a commentary on the symbiotic nature of Vanax and human culture. Allegedly."
icon_state = "zaddat_bishop"
item_state = "zaddat_bishop"
@@ -92,6 +97,7 @@
helmet.item_state = "zaddat_bishop"
if("Rugged")
name = "rugged Shroud"
base_name = "rugged Shroud"
desc = "This Shroud was patterned after from First Contact era human voidsuits."
icon_state = "zaddat_rugged"
item_state = "zaddat_rugged"
+1 -1
View File
@@ -137,7 +137,7 @@
/mob/living/bot/secbot/attackby(var/obj/item/O, var/mob/user)
var/curhealth = health
. = ..()
if(health < curhealth)
if(health < curhealth && on == 1)
react_to_attack(user)
/mob/living/bot/secbot/bullet_act(var/obj/item/projectile/P)
@@ -27,6 +27,8 @@
if(!temp || !temp.is_usable())
H << "<font color='red'>You can't use your hand.</font>"
return
if(H.lying)
return
M.break_cloak()
..()
@@ -105,7 +107,7 @@
spawn(30)
cpr_time = 1
H.visible_message("<span class='danger'>\The [H] is trying perform CPR on \the [src]!</span>")
H.visible_message("<span class='danger'>\The [H] is trying to perform CPR on \the [src]!</span>")
if(!do_after(H, 30))
return
@@ -135,6 +137,7 @@
var/obj/item/weapon/grab/G = new /obj/item/weapon/grab(M, src)
if(buckled)
M << "<span class='notice'>You cannot grab [src], [TT.he] is buckled in!</span>"
return
if(!G) //the grab will delete itself in New if affecting is anchored
return
M.put_in_active_hand(G)
+7
View File
@@ -952,6 +952,13 @@ Note that amputating the affected organ does in fact remove the infection from t
qdel(src)
if(victim.l_hand)
if(istype(victim.l_hand,/obj/item/weapon/material/twohanded)) //if they're holding a two-handed weapon, drop it now they've lost a hand
victim.l_hand.update_held_icon()
if(victim.r_hand)
if(istype(victim.r_hand,/obj/item/weapon/material/twohanded))
victim.r_hand.update_held_icon()
/****************************************************
HELPERS
****************************************************/