Skip to content

Commit

Permalink
Коробочки, новые турели, а также упрощение для Медибея.
Browse files Browse the repository at this point in the history
  • Loading branch information
SmiLeYre committed Mar 25, 2024
1 parent 88ff661 commit 17610ac
Show file tree
Hide file tree
Showing 24 changed files with 133 additions and 25 deletions.
1 change: 1 addition & 0 deletions code/_globalvars/lists/mobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ GLOBAL_LIST_INIT(simple_animals, list(list(),list(),list(),list())) // One for e
GLOBAL_LIST_EMPTY(spidermobs) //all sentient spider mobs
GLOBAL_LIST_EMPTY(bots_list)
GLOBAL_LIST_EMPTY(aiEyes)
GLOBAL_LIST_EMPTY(suit_sensors_list) //all people with suit sensors on

GLOBAL_LIST_EMPTY(language_datum_instances)
GLOBAL_LIST_EMPTY(all_languages)
Expand Down
1 change: 1 addition & 0 deletions code/_globalvars/traits.dm
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ GLOBAL_LIST_INIT(traits_by_type, list(
"TRAIT_SACRIFICED" = TRAIT_SACRIFICED,
"TRAIT_NOCLONE" = TRAIT_NOCLONE,
"TRAIT_CLUMSY" = TRAIT_CLUMSY,
"TRAIT_CRITICAL_CONDITION" = TRAIT_CRITICAL_CONDITION,
"TRAIT_CHUNKYFINGERS" = TRAIT_CHUNKYFINGERS,
"TRAIT_DUMB" = TRAIT_DUMB,
"TRAIT_MONKEYLIKE" = TRAIT_MONKEYLIKE,
Expand Down
22 changes: 20 additions & 2 deletions code/_onclick/hud/human.dm
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@
inv_box.icon = ui_style
inv_box.slot_id = ITEM_SLOT_ICLOTHING
inv_box.icon_state = "uniform"
inv_box.icon_full = "template"
inv_box.screen_loc = ui_iclothing
toggleable_inventory += inv_box

Expand All @@ -277,6 +278,7 @@
inv_box.icon = ui_style
inv_box.slot_id = ITEM_SLOT_OCLOTHING
inv_box.icon_state = "suit"
inv_box.icon_full = "template"
inv_box.screen_loc = ui_oclothing
toggleable_inventory += inv_box

Expand All @@ -300,6 +302,7 @@
inv_box.name = "id"
inv_box.icon = ui_style
inv_box.icon_state = "id"
inv_box.icon_full = "template_small"
inv_box.screen_loc = ui_id
inv_box.slot_id = ITEM_SLOT_ID
static_inventory += inv_box
Expand All @@ -308,6 +311,7 @@
inv_box.name = "mask"
inv_box.icon = ui_style
inv_box.icon_state = "mask"
inv_box.icon_full = "template"
inv_box.screen_loc = ui_mask
inv_box.slot_id = ITEM_SLOT_MASK
toggleable_inventory += inv_box
Expand All @@ -316,6 +320,7 @@
inv_box.name = "neck"
inv_box.icon = ui_style
inv_box.icon_state = "neck"
inv_box.icon_full = "template"
inv_box.screen_loc = ui_neck
inv_box.slot_id = ITEM_SLOT_NECK
toggleable_inventory += inv_box
Expand All @@ -324,6 +329,7 @@
inv_box.name = "back"
inv_box.icon = ui_style
inv_box.icon_state = "back"
inv_box.icon_full = "template_small"
inv_box.screen_loc = ui_back
inv_box.slot_id = ITEM_SLOT_BACK
static_inventory += inv_box
Expand All @@ -332,6 +338,7 @@
inv_box.name = "storage1"
inv_box.icon = ui_style
inv_box.icon_state = "pocket"
inv_box.icon_full = "template_small"
inv_box.screen_loc = ui_storage1
inv_box.slot_id = ITEM_SLOT_LPOCKET
static_inventory += inv_box
Expand All @@ -340,6 +347,7 @@
inv_box.name = "storage2"
inv_box.icon = ui_style
inv_box.icon_state = "pocket"
inv_box.icon_full = "template_small"
inv_box.screen_loc = ui_storage2
inv_box.slot_id = ITEM_SLOT_RPOCKET
static_inventory += inv_box
Expand All @@ -348,6 +356,7 @@
inv_box.name = "suit storage"
inv_box.icon = ui_style
inv_box.icon_state = "suit_storage"
inv_box.icon_full = "template"
inv_box.screen_loc = ui_sstore1
inv_box.slot_id = ITEM_SLOT_SUITSTORE
static_inventory += inv_box
Expand Down Expand Up @@ -381,6 +390,7 @@
inv_box.name = "gloves"
inv_box.icon = ui_style
inv_box.icon_state = "gloves"
inv_box.icon_full = "template"
inv_box.screen_loc = ui_gloves
inv_box.slot_id = ITEM_SLOT_GLOVES
toggleable_inventory += inv_box
Expand All @@ -389,6 +399,7 @@
inv_box.name = "eyes"
inv_box.icon = ui_style
inv_box.icon_state = "glasses"
inv_box.icon_full = "template"
inv_box.screen_loc = ui_glasses
inv_box.slot_id = ITEM_SLOT_EYES
toggleable_inventory += inv_box
Expand All @@ -397,6 +408,7 @@
inv_box.name = "left ear" // Sandstorm edit
inv_box.icon = ui_style
inv_box.icon_state = "ears"
inv_box.icon_full = "template"
inv_box.screen_loc = ui_ears
inv_box.slot_id = ITEM_SLOT_EARS_LEFT // Sandstorm Edit
toggleable_inventory += inv_box
Expand All @@ -405,6 +417,7 @@
inv_box.name = "head"
inv_box.icon = ui_style
inv_box.icon_state = "head"
inv_box.icon_full = "template"
inv_box.screen_loc = ui_head
inv_box.slot_id = ITEM_SLOT_HEAD
toggleable_inventory += inv_box
Expand All @@ -413,6 +426,7 @@
inv_box.name = "shoes"
inv_box.icon = ui_style
inv_box.icon_state = "shoes"
inv_box.icon_full = "template"
inv_box.screen_loc = ui_shoes
inv_box.slot_id = ITEM_SLOT_FEET
toggleable_inventory += inv_box
Expand All @@ -428,6 +442,7 @@
inv_box.name = "underwear"
inv_box.icon = ui_style_modular(ui_style)
inv_box.icon_state = "underwear"
inv_box.icon_full = "template"
inv_box.screen_loc = ui_boxers
inv_box.slot_id = ITEM_SLOT_UNDERWEAR // Sandstorm edit
extra_inventory += inv_box
Expand All @@ -436,6 +451,7 @@
inv_box.name = "socks"
inv_box.icon = ui_style_modular(ui_style)
inv_box.icon_state = "socks"
inv_box.icon_full = "template"
inv_box.screen_loc = ui_socks
inv_box.slot_id = ITEM_SLOT_SOCKS // Sandstorm edit
extra_inventory += inv_box
Expand All @@ -444,6 +460,7 @@
inv_box.name = "shirt"
inv_box.icon = ui_style_modular(ui_style)
inv_box.icon_state = "shirt"
inv_box.icon_full = "template"
inv_box.screen_loc = ui_shirt
inv_box.slot_id = ITEM_SLOT_SHIRT // Sandstorm edit
extra_inventory += inv_box
Expand All @@ -452,6 +469,7 @@
inv_box.name = "right ear"
inv_box.icon = ui_style_modular(ui_style)
inv_box.icon_state = "ears_extra"
inv_box.icon_full = "template"
inv_box.screen_loc = ui_ears_extra
inv_box.slot_id = ITEM_SLOT_EARS_RIGHT // Sandstorm edit
extra_inventory += inv_box
Expand All @@ -460,16 +478,16 @@
inv_box.name = "wrists"
inv_box.icon = ui_style_modular(ui_style)
inv_box.icon_state = "wrists"
inv_box.icon_full = "template"
inv_box.screen_loc = ui_wrists
inv_box.slot_id = ITEM_SLOT_WRISTS
extra_inventory += inv_box
//

inv_box = new /atom/movable/screen/inventory()
inv_box.name = "belt"
inv_box.icon = ui_style
inv_box.icon_state = "belt"
// inv_box.icon_full = "template_small"
inv_box.icon_full = "template_small"
inv_box.screen_loc = ui_belt
inv_box.slot_id = ITEM_SLOT_BELT
static_inventory += inv_box
Expand Down
11 changes: 11 additions & 0 deletions code/_rendering/atom_huds/data_huds.dm
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,17 @@
var/datum/atom_hud/data/human/medical/basic/B = GLOB.huds[DATA_HUD_MEDICAL_BASIC]
B.update_suit_sensors(src)

/mob/living/carbon/human/update_suit_sensors()
. = ..()
update_sensor_list()

/mob/living/carbon/human/proc/update_sensor_list()
var/obj/item/clothing/under/U = w_uniform
if(istype(U) && U.has_sensor > NO_SENSORS && U.sensor_mode)
GLOB.suit_sensors_list |= src
else
GLOB.suit_sensors_list -= src

//called when a living mob changes health
/mob/living/proc/med_hud_set_health()
var/image/holder = hud_list[HEALTH_HUD]
Expand Down
3 changes: 2 additions & 1 deletion code/game/machinery/computer/crew.dm
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ GLOBAL_DATUM_INIT(crewmonitor, /datum/crewmonitor, new)
var/pos_y
var/life_status

for(var/mob/living/carbon/human/H in GLOB.carbon_list)
for(var/tracked_mob in GLOB.suit_sensors_list)
var/mob/living/carbon/human/H = tracked_mob
var/nanite_sensors = FALSE
if(H in SSnanites.nanite_monitored_mobs)
nanite_sensors = TRUE
Expand Down
10 changes: 8 additions & 2 deletions code/game/machinery/porta_turret/portable_turret.dm
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ DEFINE_BITFIELD(turret_flags, list(

/obj/machinery/porta_turret/syndicate/pod
integrity_failure = 0.5
max_integrity = 40
max_integrity = 240
stun_projectile = /obj/item/projectile/bullet/syndicate_turret
lethal_projectile = /obj/item/projectile/bullet/syndicate_turret

Expand All @@ -824,7 +824,13 @@ DEFINE_BITFIELD(turret_flags, list(
armor = list(MELEE = 50, BULLET = 30, LASER = 30, ENERGY = 30, BOMB = 80, BIO = 0, RAD = 0, FIRE = 90, ACID = 90)

/obj/machinery/porta_turret/syndicate/pod/toolbox
max_integrity = 100
icon_state = "toolbox_off"
base_icon_state = "toolbox"
max_integrity = 220

/obj/machinery/porta_turret/syndicate/pod/toolbox/Initialize(mapload)
. = ..()
underlays += image(icon = icon, icon_state = "[base_icon_state]_frame")

/obj/machinery/porta_turret/syndicate/shuttle/target(atom/movable/target)
if(target)
Expand Down
4 changes: 2 additions & 2 deletions code/game/objects/items/devices/traitordevices.dm
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ effective or pretty fucking useless.

/obj/item/storage/toolbox/emergency/turret/attackby(obj/item/I, mob/living/user, params)
if(I.tool_behaviour == TOOL_WRENCH && user.a_intent == INTENT_HARM)
user.visible_message("<span class='danger'>[user] bashes [src] with [I]!</span>", \
"<span class='danger'>You bash [src] with [I]!</span>", null, COMBAT_MESSAGE_RANGE)
user.visible_message("<span class='danger'>[user] бьёт [src] усилием [I]!</span>", \
"<span class='danger'>Вы бьёте [src] усилием [I]!</span>", null, COMBAT_MESSAGE_RANGE)
playsound(src, "sound/items/drill_use.ogg", 80, TRUE, -1)
var/obj/machinery/porta_turret/syndicate/pod/toolbox/turret = new(get_turf(loc))
turret.faction = list("[REF(user)]")
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/items/pinpointer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
user.visible_message("<span class='notice'>[user]'s pinpointer fails to detect a signal.</span>", "<span class='notice'>Your pinpointer fails to detect a signal.</span>")
return

var/A = input(user, "Person to track", "Pinpoint") in names
var/A = tgui_input_list(user, "Сотрудники с включёнными в третий режим датчиками:", "Пинпоинтер", names)
if(!A || QDELETED(src) || !user || !user.is_holding(src) || user.incapacitated())
return

Expand Down
24 changes: 20 additions & 4 deletions code/game/objects/items/storage/boxes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/

/obj/item/storage/box
name = "box"
name = "Box"
desc = "It's just an ordinary box."
icon_state = "box"
item_state = "syringe_kit"
Expand Down Expand Up @@ -105,7 +105,7 @@

// Ordinary survival box
/obj/item/storage/box/survival
name = "survival box"
name = "Survival Box"
desc = "A box with the bare essentials of ensuring the survival of you and others."
icon_state = "internals"
illustration = "emergencytank"
Expand Down Expand Up @@ -160,8 +160,9 @@

// Engineer survival box
/obj/item/storage/box/survival/engineer
name = "extended-capacity survival box"
name = "Extended-Capacity Survival Box"
desc = "A box with the bare essentials of ensuring the survival of you and others. This one is labelled to contain an extended-capacity tank."
icon_state = "engibox"
illustration = "extendedtank"
internal_type = /obj/item/tank/internals/emergency_oxygen/engi

Expand All @@ -171,7 +172,7 @@

// Syndie survival box
/obj/item/storage/box/survival/syndie //why is this its own thing if it's just the engi box with a syndie mask and medipen?
name = "extended-capacity survival box"
name = "Extended-Capacity Survival Box"
desc = "A box with the bare essentials of ensuring the survival of you and others. This one is labelled to contain an extended-capacity tank."
illustration = "extendedtank"
mask_type = /obj/item/clothing/mask/gas/syndicate
Expand All @@ -180,6 +181,8 @@

// Security survival box
/obj/item/storage/box/survival/security
name = "Extended-Capacity Survival Box"
icon_state = "secbox_xl"
mask_type = /obj/item/clothing/mask/gas/sechailer
internal_type = /obj/item/tank/internals/emergency_oxygen/engi/sec

Expand All @@ -192,6 +195,19 @@
new /obj/item/radio/off(src)
new /obj/item/flashlight/glowstick/red(src)

//Command survival box
/obj/item/storage/box/survival/command
name = "Extended-Capacity Survival Box"
icon_state = "ghostcostuming"
internal_type = /obj/item/tank/internals/emergency_oxygen/engi
medipen_type = /obj/item/reagent_containers/hypospray/medipen/atropine

/obj/item/storage/box/survival/security/PopulateContents()
..() // we want the regular stuff too
new /obj/item/crowbar/red/sec(src)
new /obj/item/reagent_containers/spray/pepper(src)
new /obj/item/melee/classic_baton/telescopic(src)

/obj/item/storage/box/seclooking
icon_state = "secbox"
illustration = null
Expand Down
3 changes: 2 additions & 1 deletion code/modules/jobs/job_types/command/captain.dm
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
suit = /obj/item/clothing/suit/armor/vest/capcarapace
shoes = /obj/item/clothing/shoes/sneakers/brown
head = /obj/item/clothing/head/caphat
backpack_contents = list(/obj/item/melee/classic_baton/telescopic=1, /obj/item/station_charter=1)
backpack_contents = list( /obj/item/station_charter=1, /obj/item/modular_computer/tablet/preset/advanced=1)
box = /obj/item/storage/box/survival/command

backpack = /obj/item/storage/backpack/captain
satchel = /obj/item/storage/backpack/satchel/cap
Expand Down
4 changes: 2 additions & 2 deletions code/modules/jobs/job_types/command/chief_engineer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@
shoes = /obj/item/clothing/shoes/sneakers/brown
head = /obj/item/clothing/head/hardhat/white
gloves = /obj/item/clothing/gloves/color/black
backpack_contents = list(/obj/item/melee/classic_baton/telescopic=1, /obj/item/modular_computer/tablet/preset/advanced=1)
backpack_contents = list(/obj/item/modular_computer/tablet/preset/advanced=1)

backpack = /obj/item/storage/backpack/industrial
satchel = /obj/item/storage/backpack/satchel/eng
duffelbag = /obj/item/storage/backpack/duffelbag/engineering
box = /obj/item/storage/box/survival/engineer
box = /obj/item/storage/box/survival/command
pda_slot = ITEM_SLOT_LPOCKET
chameleon_extras = /obj/item/stamp/ce

Expand Down
3 changes: 2 additions & 1 deletion code/modules/jobs/job_types/command/chief_medical_officer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
suit = /obj/item/clothing/suit/toggle/labcoat/cmo
l_hand = /obj/item/storage/firstaid/regular
suit_store = /obj/item/flashlight/pen/paramedic
backpack_contents = list(/obj/item/melee/classic_baton/telescopic=1)
backpack_contents = list(/obj/item/modular_computer/tablet/preset/advanced=1)
box = /obj/item/storage/box/survival/command

backpack = /obj/item/storage/backpack/medic
satchel = /obj/item/storage/backpack/satchel/med
Expand Down
4 changes: 2 additions & 2 deletions code/modules/jobs/job_types/command/head_of_personnel.dm
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
uniform = /obj/item/clothing/under/rank/civilian/head_of_personnel
shoes = /obj/item/clothing/shoes/sneakers/brown
head = /obj/item/clothing/head/hopcap
backpack_contents = list(/obj/item/storage/box/ids=1,\
/obj/item/melee/classic_baton/telescopic=1, /obj/item/modular_computer/tablet/preset/advanced = 1)
backpack_contents = list(/obj/item/storage/box/ids=1, /obj/item/modular_computer/tablet/preset/advanced = 1)
box = /obj/item/storage/box/survival/command

chameleon_extras = list(/obj/item/gun/energy/e_gun, /obj/item/stamp/hop)

Expand Down
4 changes: 2 additions & 2 deletions code/modules/jobs/job_types/command/head_of_security.dm
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@
//suit_store = /obj/item/gun/energy/e_gun
r_pocket = /obj/item/assembly/flash/handheld
l_pocket = /obj/item/restraints/handcuffs
backpack_contents = list(/obj/item/melee/classic_baton/telescopic=1)
backpack_contents = list(/obj/item/modular_computer/tablet/preset/advanced = 1)
box = /obj/item/storage/box/survival/command

backpack = /obj/item/storage/backpack/security
satchel = /obj/item/storage/backpack/satchel/sec
duffelbag = /obj/item/storage/backpack/duffelbag/sec
box = /obj/item/storage/box/survival/security
Expand Down
4 changes: 2 additions & 2 deletions code/modules/jobs/job_types/command/quartermaster.dm
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
glasses = /obj/item/clothing/glasses/sunglasses
l_hand = /obj/item/clipboard
id = /obj/item/card/id/silver
backpack_contents = list(/obj/item/melee/classic_baton/telescopic = 1, /obj/item/modular_computer/tablet/preset/advanced = 1)

backpack_contents = list(/obj/item/modular_computer/tablet/preset/advanced = 1)
box = /obj/item/storage/box/survival/command
chameleon_extras = /obj/item/stamp/qm

/datum/outfit/job/quartermaster/syndicate
Expand Down
3 changes: 2 additions & 1 deletion code/modules/jobs/job_types/command/research_director.dm
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@
suit = /obj/item/clothing/suit/toggle/labcoat
l_hand = /obj/item/clipboard
l_pocket = /obj/item/laser_pointer
backpack_contents = list(/obj/item/melee/classic_baton/telescopic=1, /obj/item/modular_computer/tablet/preset/advanced=1)
backpack_contents = list( /obj/item/modular_computer/tablet/preset/advanced=1)

backpack = /obj/item/storage/backpack/science
box = /obj/item/storage/box/survival/command
satchel = /obj/item/storage/backpack/satchel/tox

chameleon_extras = /obj/item/stamp/rd
Expand Down
Loading

0 comments on commit 17610ac

Please sign in to comment.