Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit b791b14

Browse files
committed
Merge remote-tracking branch 'upstream/master' into PortsPsionics
2 parents 8a569b9 + 7e18e00 commit b791b14

File tree

31 files changed

+318
-127
lines changed

31 files changed

+318
-127
lines changed

.github/guides/DOWNLOADING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ code tab of https://github.com/yogstation13/Yogstation
1010
(note: this will use a lot of bandwidth if you wish to update and is a lot of
1111
hassle if you want to make any changes at all, so it's not recommended.)
1212

13-
## The Yogstation codebase recommends compiling using version [514.1589](https://www.byond.com/download/build/514/514.1589_byond.exe) and may potentially NOT work on newer or older versions.
13+
## The Yogstation codebase recommends compiling using version [514.1642](https://www.byond.com/download/build/514/514.1642_byond.exe) and may potentially NOT work on newer or older versions.
1414

1515
## :exclamation: How to compile :exclamation:
1616

.github/workflows/turdis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ jobs:
193193
cp yogstation.rsc artifacts
194194
195195
- name: Upload Artifacts
196-
uses: actions/upload-artifact@v1
196+
uses: actions/upload-artifact@v4
197197
with:
198198
name: DMB + RSC ${{matrix.map}}
199199
path: ${{github.workspace}}/artifacts

_maps/RandomZLevels/caves.dmm

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1401,7 +1401,7 @@
14011401
/area/awaymission/caves/BMP_asteroid)
14021402
"el" = (
14031403
/obj/structure/closet/secure_closet/personal,
1404-
/obj/item/gun/energy/laser/captain/scattershot,
1404+
/obj/item/gun/energy/laser/scattershot,
14051405
/turf/open/floor/wood,
14061406
/area/awaymission/caves/northblock)
14071407
"em" = (
@@ -1650,8 +1650,8 @@
16501650
"fc" = (
16511651
/obj/structure/closet/crate,
16521652
/obj/item/paper/fluff/awaymissions/caves/shipment_receipt,
1653-
/obj/item/gun/energy/laser/captain/scattershot,
1654-
/obj/item/gun/energy/laser/captain/scattershot,
1653+
/obj/item/gun/energy/laser/scattershot,
1654+
/obj/item/gun/energy/laser/scattershot,
16551655
/obj/item/gun/energy/laser,
16561656
/obj/item/grenade/syndieminibomb/concussion,
16571657
/obj/item/grenade/syndieminibomb/concussion,
@@ -1726,7 +1726,7 @@
17261726
},
17271727
/obj/item/paper/fluff/awaymissions/caves/shipment_receipt,
17281728
/obj/item/organ/eyes/robotic/thermals,
1729-
/obj/item/gun/energy/laser/captain/scattershot,
1729+
/obj/item/gun/energy/laser/scattershot,
17301730
/obj/item/slimepotion/fireproof,
17311731
/turf/open/floor/plating/asteroid/basalt{
17321732
initial_gas_mix = "n2=23;o2=14"
@@ -1789,7 +1789,7 @@
17891789
},
17901790
/area/awaymission/caves/BMP_asteroid/level_two)
17911791
"fw" = (
1792-
/obj/item/gun/energy/laser/captain/scattershot,
1792+
/obj/item/gun/energy/laser/scattershot,
17931793
/turf/open/floor/plating/asteroid/basalt{
17941794
initial_gas_mix = "n2=23;o2=14"
17951795
},

_maps/map_files/generic/CentCom.dmm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18388,7 +18388,7 @@
1838818388
dir = 8
1838918389
},
1839018390
/obj/item/gun/energy/gravity_gun,
18391-
/obj/item/gun/energy/laser/captain/scattershot{
18391+
/obj/item/gun/energy/laser/scattershot{
1839218392
pixel_y = 8
1839318393
},
1839418394
/obj/item/gun/energy/wormhole_projector{

code/__DEFINES/food.dm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#define SEAFOOD (1<<18)
2020
#define MICE (1<<19) //disliked/liked by anything that dislikes/likes any of RAW, MEAT, or GROSS, except felinids
2121
#define NUTS (1<<20)
22+
#define COFFEE (1<<21)
2223

2324
/// A list of food type names, in order of their flags
2425
#define FOOD_FLAGS list( \

code/datums/traits/negative.dm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,8 @@
646646
reagent_type = /datum/reagent/drug/caffeine
647647
junkie_warning = "You suddenly feel like you need some caffeine..."
648648
var/list/weighted_items = list(
649-
/obj/item/reagent_containers/food/drinks/coffee = 200,
649+
/obj/item/reagent_containers/food/drinks/soda_cans/icedcoffee = 200,
650+
/obj/item/reagent_containers/food/drinks/coffee = 100, //who just carries around a styrofoam cup of coffee in their backpack
650651
/obj/item/reagent_containers/food/drinks/soda_cans/grey_bull = 100,
651652
/obj/item/reagent_containers/food/drinks/soda_cans/monkey_energy = 100,
652653
/obj/item/reagent_containers/food/drinks/mug/tea = 50,

code/game/mecha/equipment/mecha_equipment.dm

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,9 @@
108108
return FALSE
109109
if(!chassis)
110110
return FALSE
111-
if(chassis.Adjacent(target))
112-
if(!(range & MECHA_MELEE))
113-
chassis.default_melee_attack(target)
114-
return FALSE
115-
else if(!(range & MECHA_RANGED))
111+
if(!(range & MECHA_MELEE) && chassis.default_melee_attack(target))
112+
return FALSE
113+
if(!(range & MECHA_RANGED) && !chassis.Adjacent(target))
116114
return FALSE
117115
if(!equip_ready)
118116
return FALSE

code/game/mecha/equipment/tools/other_tools.dm

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,3 +575,54 @@
575575
if(chassis)
576576
chassis.ejection_distance -= ejection_distance
577577
. = ..()
578+
579+
///// Coral Generator /////
580+
581+
/obj/item/mecha_parts/mecha_equipment/coral_generator
582+
name = "IA-C01G AORTA"
583+
desc = "A highly classified emergent technology, burns raw redspace crystal to enhance mech movement, as a side effect the mech will emit a red glow, greatly increasing energy usage."
584+
icon_state = "coral_engine"
585+
selectable = FALSE // your mech IS the weapon
586+
var/minimum_damage = 10
587+
var/structure_damage_mult = 4
588+
var/list/hit_list = list()
589+
equip_actions = list(/datum/action/innate/mecha/coral_overload_mode)
590+
591+
/obj/item/mecha_parts/mecha_equipment/coral_generator/can_attach(obj/mecha/new_mecha)
592+
if(istype(new_mecha, /obj/mecha/combat/gygax)) // no gygax stacking sorry
593+
return FALSE
594+
if(locate(type) in new_mecha.equipment)
595+
return FALSE // no stacking multiple
596+
return ..()
597+
598+
/datum/action/innate/mecha/coral_overload_mode
599+
name = "Coral Engine Overload"
600+
button_icon_state = "mech_coral_overload_off"
601+
602+
/datum/action/innate/mecha/coral_overload_mode/Activate(forced_state = null)
603+
604+
if(chassis?.equipment_disabled) // If a EMP or something has messed a mech up return instead of activating -- Moogle
605+
return
606+
if(!owner || !chassis || chassis.occupant != owner)
607+
return
608+
if(!isnull(forced_state))
609+
chassis.coral_leg_overload_mode = forced_state
610+
else
611+
chassis.coral_leg_overload_mode = !chassis.coral_leg_overload_mode
612+
button_icon_state = "mech_coral_overload_[chassis.coral_leg_overload_mode ? "on" : "off"]"
613+
chassis.log_message("Toggled coral engine overload.", LOG_MECHA)
614+
if(chassis.coral_leg_overload_mode)
615+
chassis.AddComponent(/datum/component/after_image, 0.5 SECONDS, 0.5, TRUE)
616+
chassis.coral_leg_overload_mode = 1
617+
chassis.step_in = min(1, round(chassis.step_in/2))
618+
chassis.step_energy_drain = max(chassis.overload_step_energy_drain_min,chassis.step_energy_drain*chassis.leg_overload_coeff)
619+
chassis.occupant_message(span_danger("You enable coral engine overload."))
620+
else
621+
var/datum/component/after_image/chassis_after_image = chassis.GetComponent(/datum/component/after_image)
622+
if(chassis_after_image)
623+
qdel(chassis_after_image)
624+
chassis.coral_leg_overload_mode = 0
625+
chassis.step_in = initial(chassis.step_in)
626+
chassis.step_energy_drain = chassis.normal_step_energy_drain
627+
chassis.occupant_message(span_notice("You disable coral engine overload."))
628+
build_all_button_icons()

code/game/mecha/equipment/weapons/armor.dm

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,29 @@
1919
/obj/item/mecha_parts/mecha_equipment/armor/attach(obj/mecha/new_chassis)
2020
. = ..()
2121
if(equip_ready)
22-
new_chassis.armor.attachArmor(armor)
22+
new_chassis.armor = new_chassis.armor.attachArmor(armor)
2323

2424
/obj/item/mecha_parts/mecha_equipment/armor/detach(atom/moveto)
2525
if(equip_ready)
26-
chassis.armor.detachArmor(armor)
26+
chassis.armor = chassis.armor.detachArmor(armor)
2727
return ..()
2828

2929
/obj/item/mecha_parts/mecha_equipment/armor/set_ready_state(state)
3030
if(equip_ready != state)
3131
if(state)
32-
chassis.armor.attachArmor(armor)
32+
chassis.armor = chassis.armor.attachArmor(armor)
3333
else
34-
chassis.armor.detachArmor(armor)
34+
chassis.armor = chassis.armor.detachArmor(armor)
3535
return ..()
3636

3737
/obj/item/mecha_parts/mecha_equipment/armor/melee //what is that noise? A BAWWW from TK mutants.
3838
name = "armor booster module (Close Combat Weaponry)"
39-
desc = "Boosts exosuit armor against armed melee attacks. Requires energy to operate."
39+
desc = "Boosts exosuit armor against armed melee attacks."
4040
icon_state = "mecha_abooster_ccw"
4141
armor = list(MELEE = 20, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 20, BIO = 0, RAD = 0, FIRE = 0, ACID = 0, ELECTRIC = 0)
4242

4343
/obj/item/mecha_parts/mecha_equipment/armor/ranged
4444
name = "armor booster module (Ranged Weaponry)"
45-
desc = "Boosts exosuit armor against ranged attacks. Completely blocks taser shots. Requires energy to operate."
45+
desc = "Boosts exosuit armor against ranged attacks."
4646
icon_state = "mecha_abooster_proj"
4747
armor = list(MELEE = 0, BULLET = 15, LASER = 15, ENERGY = 0, BOMB = 0, BIO = 0, RAD = 0, FIRE = 0, ACID = 0, ELECTRIC = 0)

code/game/mecha/equipment/weapons/weapons.dm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@
200200
chassis.default_melee_attack(target)
201201
return TRUE
202202

203+
/obj/item/mecha_parts/mecha_equipment/weapon/energy/plasma/use(used)
204+
return chassis?.cell?.use(used * energy_drain)
205+
203206
/obj/item/mecha_parts/mecha_equipment/weapon/energy/mecha_kineticgun
204207
equip_cooldown = 10
205208
name = "Exosuit Proto-kinetic Accelerator"

0 commit comments

Comments
 (0)