Skip to content

Commit

Permalink
Merge remote-tracking branch 'cmss13-devs/master' into royalmarines
Browse files Browse the repository at this point in the history
# Conflicts:
#	icons/mob/humans/onmob/back.dmi
#	icons/mob/humans/onmob/items_lefthand_0.dmi
#	icons/mob/humans/onmob/items_righthand_0.dmi
#	icons/obj/items/clothing/backpacks.dmi
  • Loading branch information
spartanbobby committed Aug 3, 2023
2 parents cac5c32 + de6f8ca commit cdccc9b
Show file tree
Hide file tree
Showing 18 changed files with 64 additions and 14 deletions.
3 changes: 3 additions & 0 deletions code/__DEFINES/xeno.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
#define TUNNEL_ENTER_BIG_XENO_DELAY 120
#define TUNNEL_ENTER_LARVA_DELAY 10

/// The duration it takes a player controlled facehugger to leap or hug adjacently
#define FACEHUGGER_WINDUP_DURATION 1 SECONDS

// Defines for action types and click delays used by xenomorph/unarmedattack() and attack_alien().

/// Full attack delay.
Expand Down
4 changes: 2 additions & 2 deletions code/game/gamemodes/colonialmarines/whiskey_outpost.dm
Original file line number Diff line number Diff line change
Expand Up @@ -664,8 +664,8 @@
/obj/item/ammo_magazine/rocket/wp)
if(2) //Smartgun supplies
spawnitems = list(
/obj/item/cell/high,
/obj/item/cell/high,
/obj/item/smartgun_battery,
/obj/item/smartgun_battery,
/obj/item/ammo_magazine/smartgun,
/obj/item/ammo_magazine/smartgun,
/obj/item/ammo_magazine/smartgun,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ GLOBAL_LIST_INIT(cm_vending_clothing_engi, list(
list("Technician Satchel", 0, /obj/item/storage/backpack/marine/satchel/tech, MARINE_CAN_BUY_BACKPACK, VENDOR_ITEM_REGULAR),
list("Technician Welderpack", 0, /obj/item/storage/backpack/marine/engineerpack, MARINE_CAN_BUY_BACKPACK, VENDOR_ITEM_MANDATORY),
list("Technician Welder-Satchel", 0, /obj/item/storage/backpack/marine/engineerpack/satchel, MARINE_CAN_BUY_BACKPACK, VENDOR_ITEM_REGULAR),
list("Technician Welder Chestrig", 0, /obj/item/storage/backpack/marine/engineerpack/welder_chestrig, MARINE_CAN_BUY_BACKPACK, VENDOR_ITEM_MANDATORY),

list("BELT (CHOOSE 1)", 0, null, null, null),
list("G8-A General Utility Pouch", 0, /obj/item/storage/backpack/general_belt, MARINE_CAN_BUY_BELT, VENDOR_ITEM_REGULAR),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
list("Shotgun Scabbard", 5, /obj/item/storage/large_holster/m37, VENDOR_ITEM_REGULAR),
list("USCM Satchel", 10, /obj/item/storage/backpack/marine/satchel, VENDOR_ITEM_REGULAR),
list("USCM Technical Satchel", 10, /obj/item/storage/backpack/marine/satchel/tech, VENDOR_ITEM_REGULAR),
list("USCM Technical Chestrig", 10, /obj/item/storage/backpack/marine/engineerpack/welder_chestrig, VENDOR_ITEM_REGULAR),
list("USCM Uniform", 20, /obj/item/clothing/under/marine, VENDOR_ITEM_REGULAR),

list("BELTS", -1, null, null),
Expand Down
3 changes: 3 additions & 0 deletions code/game/objects/items/devices/portable_vendor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -270,4 +270,7 @@

list("MISC", 0, null, null, null),
list("Hollow Cane", 15, /obj/item/weapon/pole/fancy_cane/this_is_a_knife, "white", "A hollow cane that can store any commonplace sharp weaponry. Said weapon not included."),

list("AMMO", 0, null, null, null),
list("ES-4 stun magazine", 10, /obj/item/ammo_magazine/pistol/es4, "white", "Holds 19 rounds of specialized Conductive 9mm."),
)
10 changes: 10 additions & 0 deletions code/game/objects/items/storage/backpack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -914,6 +914,16 @@ GLOBAL_LIST_EMPTY_TYPED(radio_packs, /obj/item/storage/backpack/marine/satchel/r
max_fuel = 100
worn_accessible = TRUE

/obj/item/storage/backpack/marine/engineerpack/welder_chestrig
name = "\improper Technician Welder Chestrig"
desc = "A specialized Chestrig worn by technicians and engineers. It carries one medium fuel tank for quick welder refueling and use."
icon_state = "welder_chestrig"
item_state = "welder_chestrig"
max_storage_space = 12
has_gamemode_skin = FALSE
max_fuel = 100
worn_accessible = TRUE

// Pyrotechnician Spec backpack fuel tank
/obj/item/storage/backpack/marine/engineerpack/flamethrower
name = "\improper USCM Pyrotechnician G6-2 fueltank"
Expand Down
8 changes: 3 additions & 5 deletions code/game/objects/items/storage/lockbox.dm
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,9 @@
req_access = list(ACCESS_WY_CORPORATE)

/obj/item/storage/lockbox/loyalty/fill_preset_inventory()
new /obj/item/ammo_magazine/pistol/mod88(src)
new /obj/item/ammo_magazine/pistol/mod88(src)
new /obj/item/ammo_magazine/pistol/mod88/rubber(src)
new /obj/item/ammo_magazine/pistol/mod88/rubber(src)

new /obj/item/ammo_magazine/pistol/es4(src)
new /obj/item/ammo_magazine/pistol/es4(src)
new /obj/item/ammo_magazine/pistol/es4(src)

/obj/item/storage/lockbox/cluster
name = "lockbox of cluster flashbangs"
Expand Down
6 changes: 6 additions & 0 deletions code/game/objects/structures/props.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1152,3 +1152,9 @@
icon = 'icons/obj/structures/props/almayer_props.dmi'
icon_state = "rope"
density = FALSE

/obj/structure/prop/invuln/joey
name = "Workin' Joey"
desc = "A defunct Seegson-brand Working Joe lifted from deep storage by a crew of marines after the last shore leave. Attempts have been made to modify the janitorial synthetic to serve as a crude bartender, but with little success."
icon = 'icons/obj/structures/props/props.dmi'
icon_state = "joey"
4 changes: 3 additions & 1 deletion code/modules/cm_marines/equipment/guncases.dm
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,15 @@
/obj/item/storage/box/guncase/lmg
name = "\improper M41AE2 heavy pulse rifle case"
desc = "A gun case containing the M41AE2 heavy pulse rifle. You can get additional ammunition at requisitions."
storage_slots = 3
storage_slots = 5
can_hold = list(/obj/item/weapon/gun/rifle/lmg, /obj/item/ammo_magazine/rifle/lmg)

/obj/item/storage/box/guncase/lmg/fill_preset_inventory()
new /obj/item/weapon/gun/rifle/lmg(src)
new /obj/item/ammo_magazine/rifle/lmg(src)
new /obj/item/ammo_magazine/rifle/lmg/holo_target(src)
new /obj/item/attachable/flashlight
new /obj/item/attachable/bipod

//------------
/obj/item/storage/box/guncase/m41aMK1
Expand Down
1 change: 1 addition & 0 deletions code/modules/gear_presets/uscm_ship.dm
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@
new_human.equip_to_slot_or_del(new /obj/item/storage/pouch/general/medium(new_human), WEAR_R_STORE)
new_human.equip_to_slot_or_del(new /obj/item/device/demo_scanner(new_human), WEAR_L_STORE)
new_human.equip_to_slot_or_del(new /obj/item/storage/bag/trash(new_human), WEAR_L_HAND)
new_human.equip_to_slot_or_del(new /obj/item/storage/backpack/marine/engineerpack/welder_chestrig, (new_human), WEAR_R_HAND)

/datum/equipment_preset/uscm_ship/maint/load_rank(mob/living/carbon/human/new_human)
if(new_human.client)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
knockdown = TRUE
knockdown_duration = 0.5
windup = TRUE
windup_duration = 10
windup_duration = FACEHUGGER_WINDUP_DURATION
freeze_self = TRUE
freeze_time = 5
freeze_play_sound = FALSE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
to_chat(src, SPAN_WARNING("You can't infect \the [human]..."))
return
visible_message(SPAN_WARNING("\The [src] starts climbing onto \the [human]'s face..."), SPAN_XENONOTICE("You start climbing onto \the [human]'s face..."))
if(!do_after(src, 6 SECONDS, INTERRUPT_ALL, BUSY_ICON_HOSTILE, human, INTERRUPT_MOVED, BUSY_ICON_HOSTILE))
if(!do_after(src, FACEHUGGER_WINDUP_DURATION, INTERRUPT_ALL, BUSY_ICON_HOSTILE, human, INTERRUPT_MOVED, BUSY_ICON_HOSTILE))
return
if(!human.lying)
to_chat(src, SPAN_WARNING("You can't reach \the [human], they need to be lying down."))
Expand Down
4 changes: 3 additions & 1 deletion code/modules/mob/living/carbon/xenomorph/xeno_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@

/// How many lesser drones the hive can support
var/lesser_drone_limit = 0
/// Slots available for lesser drones will never go below this number
var/lesser_drone_minimum = 3

var/datum/tacmap/xeno/tacmap
var/minimap_type = MINIMAP_FLAG_XENO
Expand Down Expand Up @@ -1052,7 +1054,7 @@
hugger.timeofdeath = user.timeofdeath // Keep old death time

/datum/hive_status/proc/update_lesser_drone_limit()
lesser_drone_limit = Ceiling(totalXenos.len / 3)
lesser_drone_limit = lesser_drone_minimum + Ceiling(length(totalXenos) / 3)

/datum/hive_status/proc/can_spawn_as_lesser_drone(mob/dead/observer/user)
if(!GLOB.hive_datum || ! GLOB.hive_datum[hivenumber])
Expand Down
3 changes: 2 additions & 1 deletion code/modules/organs/organ_internal.dm
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@

if(organ_status >= ORGAN_BROKEN && prob(5 * delta_time))
owner.apply_effect(1, PARALYZE)
owner.make_jittery(50)
if(owner.jitteriness < 100)
owner.make_jittery(50)
to_chat(owner, SPAN_DANGER("Your body seizes up!"))

/datum/internal_organ/brain/prosthetic //used by synthetic species
Expand Down
3 changes: 2 additions & 1 deletion code/modules/surgery/brainrepair.dm
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,11 @@

var/datum/internal_organ/brain/B = target.internal_organs_by_name["brain"]
if(B)
B.damage = 0
B.heal_damage(B.damage)
target.disabilities &= ~NERVOUS
target.sdisabilities &= ~DISABILITY_DEAF
target.sdisabilities &= ~DISABILITY_MUTE
target.jitteriness = 0
target.pain.recalculate_pain()

log_interact(user, target, "[key_name(user)] finished taking bone chips out of [key_name(target)]'s brain with \the [tool], finishing [surgery].")
Expand Down
21 changes: 21 additions & 0 deletions html/changelogs/archive/2023-08.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
2023-08-01:
Drathek:
- bugfix: Fixed hung mobs merging with weeds
2023-08-02:
Dorodomki:
- rscadd: Adds A Bipod and Rail Flashlight to the HPR kit
Drathek:
- balance: Facehugger attack windup duration is now 1s like the pounce windup.
Huffie56:
- bugfix: Care package for SG on WO will now spawn with the proper batteries for
them.
Morrow:
- bugfix: Fixes brain damage
- qol: Jittering from brain damage is now capped
2023-08-03:
Ben10083:
- rscadd: Lesser Drone Slots now have a minimum, currently set to 3.
Huffie56:
- balance: adding the possibility to buy "ES-4 stun magazine" for 10 point in the
portable vendor.
- bugfix: remove a bunch of ammo that where improper for ES-4 gun that are in the
lockbox.
Thwomper:
- maptweak: added Workin' Joey to maint bar.
Binary file modified icons/obj/structures/props/props.dmi
Binary file not shown.
2 changes: 1 addition & 1 deletion maps/map_files/USS_Almayer/USS_Almayer.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -75281,7 +75281,7 @@
/turf/open/floor/plating/plating_catwalk,
/area/almayer/squads/delta)
"wXv" = (
/obj/structure/machinery/vending/cigarette,
/obj/structure/prop/invuln/joey,
/turf/open/floor/almayer{
icon_state = "plate"
},
Expand Down

0 comments on commit cdccc9b

Please sign in to comment.