This commit is contained in:
SandPoot
2023-01-20 21:35:34 -03:00
12 changed files with 46 additions and 57 deletions

View File

@@ -200,7 +200,7 @@
message.maptext_height = mheight message.maptext_height = mheight
message.maptext_x = (CHAT_MESSAGE_WIDTH - owner.bound_width) * -0.5 message.maptext_x = (CHAT_MESSAGE_WIDTH - owner.bound_width) * -0.5
message.maptext = MAPTEXT(complete_text) message.maptext = MAPTEXT(complete_text)
message.pixel_x = -owner.pixel_x //Dogborgs and other wide boys have a pixel offset. This accounts for that message.pixel_x = -target.pixel_x //Dogborgs and other wide boys have a pixel offset. This accounts for that
// View the message // View the message
LAZYADDASSOC(owned_by.seen_messages, message_loc, src) LAZYADDASSOC(owned_by.seen_messages, message_loc, src)

View File

@@ -61,13 +61,16 @@
/obj/machinery/computer/aifixer/proc/Fix() /obj/machinery/computer/aifixer/proc/Fix()
use_power(1000) use_power(1000)
occupier.adjustOxyLoss(-1, 0) occupier.adjustOxyLoss(-1, FALSE, FALSE)
occupier.adjustFireLoss(-1, 0) occupier.adjustFireLoss(-1, FALSE, FALSE)
occupier.adjustToxLoss(-1, 0) occupier.adjustBruteLoss(-5, FALSE)
occupier.adjustBruteLoss(-1, 0)
occupier.updatehealth() occupier.updatehealth()
if(occupier.health >= 0 && occupier.stat == DEAD) if(occupier.health >= 0 && occupier.stat == DEAD)
occupier.revive() occupier.revive(full_heal = FALSE, admin_revive = FALSE)
if(!occupier.radio_enabled)
occupier.radio_enabled = TRUE
to_chat(occupier, span_warning("Your Subspace Transceiver has been enabled!"))
return occupier.health < 100 return occupier.health < 100
/obj/machinery/computer/aifixer/process() /obj/machinery/computer/aifixer/process()

View File

@@ -440,6 +440,16 @@
icon_state = "cowboyhat_sec" icon_state = "cowboyhat_sec"
item_state= "cowboyhat_sec" item_state= "cowboyhat_sec"
/obj/item/clothing/head/cowboyhat/polychromic
name = "polychromic cowboy hat"
desc = "A polychromic cowboy hat, perfect for your indecisive rancher"
icon_state = "cowboyhat_poly"
item_state= "cowboyhat_poly"
/obj/item/clothing/head/cowboyhat/polychromic/ComponentInitialize()
. = ..()
AddElement(/datum/element/polychromic, list("#5F5F5F", "#DDDDDD"), 2)
/obj/item/clothing/head/squatter_hat /obj/item/clothing/head/squatter_hat
name = "slav squatter hat" name = "slav squatter hat"
icon_state = "squatter_hat" icon_state = "squatter_hat"

View File

@@ -9,9 +9,6 @@
adjustBruteLoss(damage_amount, forced = forced) adjustBruteLoss(damage_amount, forced = forced)
if(BURN) if(BURN)
adjustFireLoss(damage_amount, forced = forced) adjustFireLoss(damage_amount, forced = forced)
if(OXY)
if(damage < 0 || forced) //we shouldn't be taking oxygen damage through this proc, but we'll let it heal.
adjustOxyLoss(damage_amount, forced = forced)
return 1 return 1
@@ -30,7 +27,7 @@
/mob/living/silicon/setCloneLoss(amount, updating_health = TRUE, forced = FALSE) /mob/living/silicon/setCloneLoss(amount, updating_health = TRUE, forced = FALSE)
return FALSE return FALSE
/mob/living/silicon/adjustStaminaLoss(amount, updating_health = 1, forced = FALSE)//immune to stamina damage. /mob/living/silicon/adjustStaminaLoss(amount, updating_health = 1, forced = FALSE) //immune to stamina damage.
return FALSE return FALSE
/mob/living/silicon/setStaminaLoss(amount, updating_health = 1) /mob/living/silicon/setStaminaLoss(amount, updating_health = 1)
@@ -41,3 +38,15 @@
/mob/living/silicon/setOrganLoss(slot, amount) /mob/living/silicon/setOrganLoss(slot, amount)
return FALSE return FALSE
/mob/living/silicon/adjustOxyLoss(amount, updating_health = TRUE, forced = FALSE) //immune to oxygen damage
if(istype(src, /mob/living/silicon/ai)) //ais are snowflakes and use oxyloss for being in AI cards and having no battery
return ..()
return FALSE
/mob/living/silicon/setOxyLoss(amount, updating_health = TRUE, forced = FALSE)
if(istype(src, /mob/living/silicon/ai)) //ditto
return ..()
return FALSE

View File

@@ -85,15 +85,6 @@
/mob/living/silicon/pai/adjustFireLoss(amount, updating_health = TRUE, forced = FALSE, only_robotic = FALSE, only_organic = TRUE) /mob/living/silicon/pai/adjustFireLoss(amount, updating_health = TRUE, forced = FALSE, only_robotic = FALSE, only_organic = TRUE)
return take_holo_damage(amount) return take_holo_damage(amount)
/mob/living/silicon/pai/adjustToxLoss(amount, updating_health = TRUE, forced = FALSE, toxins_type = TOX_DEFAULT)
return FALSE
/mob/living/silicon/pai/adjustOxyLoss(amount, updating_health = TRUE, forced = FALSE)
return FALSE
/mob/living/silicon/pai/adjustCloneLoss(amount, updating_health = TRUE, forced = FALSE)
return FALSE
/mob/living/silicon/pai/adjustStaminaLoss(amount, updating_health, forced = FALSE) /mob/living/silicon/pai/adjustStaminaLoss(amount, updating_health, forced = FALSE)
if(forced) if(forced)
take_holo_damage(amount) take_holo_damage(amount)
@@ -108,27 +99,3 @@
/mob/living/silicon/pai/getFireLoss() /mob/living/silicon/pai/getFireLoss()
return emittermaxhealth - emitterhealth return emittermaxhealth - emitterhealth
/mob/living/silicon/pai/getToxLoss(toxins_type = TOX_OMNI)
return FALSE
/mob/living/silicon/pai/getOxyLoss()
return FALSE
/mob/living/silicon/pai/getCloneLoss()
return FALSE
/mob/living/silicon/pai/getStaminaLoss()
return FALSE
/mob/living/silicon/pai/setCloneLoss()
return FALSE
/mob/living/silicon/pai/setStaminaLoss()
return FALSE
/mob/living/silicon/pai/setToxLoss(toxins_type = TOX_OMNI)
return FALSE
/mob/living/silicon/pai/setOxyLoss()
return FALSE

View File

@@ -1,7 +1,6 @@
/mob/living/silicon/robot/BiologicalLife(delta_time, times_fired) /mob/living/silicon/robot/BiologicalLife(delta_time, times_fired)
if(!(. = ..())) if(!(. = ..()))
return return
adjustOxyLoss(-10) //we're a robot!
handle_robot_hud_updates() handle_robot_hud_updates()
handle_robot_cell() handle_robot_cell()

View File

@@ -17,12 +17,16 @@
icon_state = "[module.cyborg_base_icon]-wreck" icon_state = "[module.cyborg_base_icon]-wreck"
if(module.cyborg_pixel_offset) if(module.cyborg_pixel_offset)
pixel_x = module.cyborg_pixel_offset var/matrix/M = transform
M.c = module.cyborg_pixel_offset
transform = M
//End of citadel changes //End of citadel changes
if(module.cyborg_base_icon == "robot") if(module.cyborg_base_icon == "robot")
icon = 'icons/mob/robots.dmi' icon = 'icons/mob/robots.dmi'
pixel_x = initial(pixel_x) var/matrix/M = transform
M.c = 0 // Cyborg's initial x offset is very likely to be 0
transform = M
if(stat != DEAD && !(IsUnconscious() || IsStun() || IsParalyzed() || low_power_mode)) //Not dead, not stunned. if(stat != DEAD && !(IsUnconscious() || IsStun() || IsParalyzed() || low_power_mode)) //Not dead, not stunned.
if(!eye_lights) if(!eye_lights)
eye_lights = new() eye_lights = new()

View File

@@ -45,14 +45,6 @@
adjustBruteLoss(damage) adjustBruteLoss(damage)
if(BURN) if(BURN)
adjustFireLoss(damage) adjustFireLoss(damage)
if(TOX)
adjustToxLoss(damage)
if(OXY)
adjustOxyLoss(damage)
if(CLONE)
adjustCloneLoss(damage)
if(STAMINA)
adjustStaminaLoss(damage)
/mob/living/silicon/attack_paw(mob/living/user) /mob/living/silicon/attack_paw(mob/living/user)
return attack_hand(user) return attack_hand(user)

View File

@@ -75,9 +75,8 @@
restoring = FALSE restoring = FALSE
return return
ai_slot.locked = TRUE ai_slot.locked = TRUE
A.adjustOxyLoss(-5, FALSE) A.adjustOxyLoss(-5, FALSE, FALSE)
A.adjustFireLoss(-5, FALSE) A.adjustFireLoss(-5, FALSE, FALSE)
A.adjustToxLoss(-5, FALSE)
A.adjustBruteLoss(-5, FALSE) A.adjustBruteLoss(-5, FALSE)
// Please don't forget to update health, otherwise the below if statements will probably always fail. // Please don't forget to update health, otherwise the below if statements will probably always fail.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 237 KiB

After

Width:  |  Height:  |  Size: 237 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

After

Width:  |  Height:  |  Size: 118 KiB

View File

@@ -195,6 +195,12 @@
restricted_desc = "Security" restricted_desc = "Security"
restricted_roles = list("Warden","Detective","Security Officer","Head of Security") restricted_roles = list("Warden","Detective","Security Officer","Head of Security")
/datum/gear/head/cowboyhat/polychromic
name = "Cowboy Hat, Polychromic"
path = /obj/item/clothing/head/cowboyhat/polychromic
loadout_flags = LOADOUT_CAN_NAME | LOADOUT_CAN_DESCRIPTION | LOADOUT_CAN_COLOR_POLYCHROMIC
loadout_initial_colors = list("#5F5F5F", "#DDDDDD")
/datum/gear/head/wkepi /datum/gear/head/wkepi
name = "white kepi" name = "white kepi"
path = /obj/item/clothing/head/kepi path = /obj/item/clothing/head/kepi