Skip to content

Commit

Permalink
Merge upstream [30.07.2024] (#469)
Browse files Browse the repository at this point in the history
## About The Pull Request

Merge upstream [30.07.2024]
  • Loading branch information
Gaxeer authored Jul 30, 2024
2 parents c49f7cf + d7663ba commit 8da65af
Show file tree
Hide file tree
Showing 29 changed files with 115 additions and 123 deletions.
10 changes: 1 addition & 9 deletions code/modules/hydroponics/hydroponics.dm
Original file line number Diff line number Diff line change
Expand Up @@ -798,15 +798,7 @@
if(isnull(particles))
particles = new /particles/pollen()
if(myseed.instability >= 20 && prob(70) && length(T.myseed.reagents_add))
var/list/datum/plant_gene/reagent/possible_reagents = list()
for(var/datum/plant_gene/reagent/reag in T.myseed.genes)
possible_reagents += reag
var/datum/plant_gene/reagent/reagent_gene = pick(possible_reagents) //Let this serve as a lession to delete your WIP comments before merge.
if(reagent_gene.can_add(myseed))
if(!reagent_gene.try_upgrade_gene(myseed))
myseed.genes += reagent_gene.Copy()
myseed.reagents_from_genes()
continue
myseed.perform_reagent_pollination(T.myseed)
if(!any_adjacent)
particles = null

Expand Down
24 changes: 24 additions & 0 deletions code/modules/hydroponics/seeds.dm
Original file line number Diff line number Diff line change
Expand Up @@ -616,3 +616,27 @@

/obj/item/grown/get_plant_seed()
return seed

/obj/item/seeds/proc/perform_reagent_pollination(obj/item/seeds/donor)
var/list/datum/plant_gene/reagent/valid_reagents = list()
for(var/datum/plant_gene/reagent/donor_reagent in donor.genes)
var/repeated = FALSE
for(var/datum/plant_gene/reagent/receptor_reagent in genes)
if(donor_reagent.reagent_id == receptor_reagent.reagent_id)
if(receptor_reagent.rate < donor_reagent.rate)
receptor_reagent.rate = donor_reagent.rate
// sucessful pollination/upgrade, we stop here.
reagents_from_genes()
return
else
repeated = TRUE
break

if(!repeated)
valid_reagents += donor_reagent

if(length(valid_reagents))
// pick a valid reagent that our receptor seed don't have and add the gene to it
var/datum/plant_gene/reagent/selected_reagent = pick(valid_reagents)
genes += selected_reagent
reagents_from_genes()
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "arm-mounted implant"
desc = "You shouldn't see this! Adminhelp and report this as an issue on github!"
zone = BODY_ZONE_R_ARM
icon_state = "implant-toolkit"
icon_state = "toolkit_generic"
w_class = WEIGHT_CLASS_SMALL
actions_types = list(/datum/action/item_action/organ_action/toggle)
///A ref for the arm we're taking up. Mostly for the unregister signal upon removal
Expand Down Expand Up @@ -264,6 +264,7 @@
/obj/item/organ/internal/cyberimp/arm/toolset
name = "integrated toolset implant"
desc = "A stripped-down version of the engineering cyborg toolset, designed to be installed on subject's arm. Contain advanced versions of every tool."
icon_state = "toolkit_engineering"
actions_types = list(/datum/action/item_action/organ_action/toggle/toolkit)
items_to_create = list(
/obj/item/screwdriver/cyborg,
Expand Down Expand Up @@ -349,6 +350,7 @@
/obj/item/organ/internal/cyberimp/arm/surgery
name = "surgical toolset implant"
desc = "A set of surgical tools hidden behind a concealed panel on the user's arm."
icon_state = "toolkit_surgical"
actions_types = list(/datum/action/item_action/organ_action/toggle/toolkit)
items_to_create = list(
/obj/item/retractor/augment,
Expand Down
22 changes: 9 additions & 13 deletions code/modules/surgery/organs/internal/cyberimp/augments_chest.dm
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
/obj/item/organ/internal/cyberimp/chest
name = "cybernetic torso implant"
desc = "Implants for the organs in your torso."
icon_state = "chest_implant"
implant_overlay = "chest_implant_overlay"
zone = BODY_ZONE_CHEST

/obj/item/organ/internal/cyberimp/chest/nutriment
name = "Nutriment pump implant"
name = "nutriment pump implant"
desc = "This implant will synthesize and pump into your bloodstream a small amount of nutriment when you are starving."
icon_state = "chest_implant"
implant_color = "#00AA00"
icon_state = "nutriment_implant"
var/hunger_threshold = NUTRITION_LEVEL_STARVING
var/synthesizing = 0
var/poison_amount = 5
Expand Down Expand Up @@ -37,18 +34,16 @@


/obj/item/organ/internal/cyberimp/chest/nutriment/plus
name = "Nutriment pump implant PLUS"
name = "nutriment pump implant PLUS"
desc = "This implant will synthesize and pump into your bloodstream a small amount of nutriment when you are hungry."
icon_state = "chest_implant"
implant_color = "#006607"
icon_state = "adv_nutriment_implant"
hunger_threshold = NUTRITION_LEVEL_HUNGRY
poison_amount = 10

/obj/item/organ/internal/cyberimp/chest/reviver
name = "Reviver implant"
name = "reviver implant"
desc = "This implant will attempt to revive and heal you if you lose consciousness. For the faint of heart!"
icon_state = "chest_implant"
implant_color = "#AD0000"
icon_state = "reviver_implant"
slot = ORGAN_SLOT_HEART_AID
var/revive_cost = 0
var/reviving = FALSE
Expand Down Expand Up @@ -164,7 +159,6 @@
slot = ORGAN_SLOT_THRUSTERS
icon_state = "imp_jetpack"
base_icon_state = "imp_jetpack"
implant_overlay = null
implant_color = null
actions_types = list(/datum/action/item_action/organ_action/toggle)
w_class = WEIGHT_CLASS_NORMAL
Expand Down Expand Up @@ -265,7 +259,7 @@
name = "\improper Herculean gravitronic spinal implant"
desc = "This gravitronic spinal interface is able to improve the athletics of a user, allowing them greater physical ability. \
Contains a slot which can be upgraded with a gravity anomaly core, improving its performance."
implant_color = "#15704c"
icon_state = "herculean_implant"
slot = ORGAN_SLOT_SPINE
/// How much faster does the spinal implant improve our lifting speed, workout ability, reducing falling damage and improving climbing and standing speed
var/athletics_boost_multiplier = 0.8
Expand Down Expand Up @@ -315,5 +309,7 @@
name = "\improper Atlas gravitonic spinal implant"
desc = "This gravitronic spinal interface is able to improve the athletics of a user, allowing them greater physical ability. \
This one has been improved through the installation of a gravity anomaly core, allowing for personal gravity manipulation."
icon_state = "herculean_implant_core"
update_appearance()
qdel(tool)
return ITEM_INTERACT_SUCCESS
13 changes: 8 additions & 5 deletions code/modules/surgery/organs/internal/cyberimp/augments_eyes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "cybernetic eye implant"
desc = "Implants for your eyes."
icon_state = "eye_implant"
implant_overlay = "eye_implant_overlay"
slot = ORGAN_SLOT_EYES
zone = BODY_ZONE_PRECISE_EYES
w_class = WEIGHT_CLASS_TINY
Expand Down Expand Up @@ -41,21 +40,25 @@
toggled_on = FALSE

/obj/item/organ/internal/cyberimp/eyes/hud/medical
name = "Medical HUD implant"
name = "medical HUD implant"
desc = "These cybernetic eye implants will display a medical HUD over everything you see."
icon_state = "eye_implant_medical"
HUD_traits = list(TRAIT_MEDICAL_HUD)

/obj/item/organ/internal/cyberimp/eyes/hud/security
name = "Security HUD implant"
name = "security HUD implant"
desc = "These cybernetic eye implants will display a security HUD over everything you see."
icon_state = "eye_implant_security"
HUD_traits = list(TRAIT_SECURITY_HUD)

/obj/item/organ/internal/cyberimp/eyes/hud/diagnostic
name = "Diagnostic HUD implant"
name = "diagnostic HUD implant"
desc = "These cybernetic eye implants will display a diagnostic HUD over everything you see."
icon_state = "eye_implant_diagnostic"
HUD_traits = list(TRAIT_DIAGNOSTIC_HUD, TRAIT_BOT_PATH_HUD)

/obj/item/organ/internal/cyberimp/eyes/hud/security/syndicate
name = "Contraband Security HUD Implant"
name = "contraband security HUD implant"
desc = "A Cybersun Industries brand Security HUD Implant. These illicit cybernetic eye implants will display a security HUD over everything you see."
icon_state = "eye_implant_syndicate"
organ_flags = ORGAN_ROBOTIC | ORGAN_HIDDEN
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
/obj/item/organ/internal/cyberimp/brain
name = "cybernetic brain implant"
desc = "Injectors of extra sub-routines for the brain."
icon_state = "brain_implant"
implant_overlay = "brain_implant_overlay"
zone = BODY_ZONE_HEAD
w_class = WEIGHT_CLASS_TINY

Expand All @@ -39,9 +37,9 @@
/obj/item/organ/internal/cyberimp/brain/anti_drop
name = "anti-drop implant"
desc = "This cybernetic brain implant will allow you to force your hand muscles to contract, preventing item dropping. Twitch ear to toggle."
icon_state = "brain_implant_antidrop"
var/active = FALSE
var/list/stored_items = list()
implant_color = "#DE7E00"
slot = ORGAN_SLOT_BRAIN_ANTIDROP
actions_types = list(/datum/action/item_action/organ_action/toggle)

Expand Down Expand Up @@ -99,9 +97,9 @@
stored_items -= source

/obj/item/organ/internal/cyberimp/brain/anti_stun
name = "CNS Rebooter implant"
name = "CNS rebooter implant"
desc = "This implant will automatically give you back control over your central nervous system, reducing downtime when stunned."
implant_color = COLOR_YELLOW
icon_state = "brain_implant_rebooter"
slot = ORGAN_SLOT_BRAIN_ANTISTUN

var/static/list/signalCache = list(
Expand Down
4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-85135.yml

This file was deleted.

5 changes: 0 additions & 5 deletions html/changelogs/AutoChangeLog-pr-85151.yml

This file was deleted.

6 changes: 0 additions & 6 deletions html/changelogs/AutoChangeLog-pr-85211.yml

This file was deleted.

5 changes: 0 additions & 5 deletions html/changelogs/AutoChangeLog-pr-85221.yml

This file was deleted.

4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-85243.yml

This file was deleted.

4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-85248.yml

This file was deleted.

4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-85254.yml

This file was deleted.

4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-85256.yml

This file was deleted.

5 changes: 0 additions & 5 deletions html/changelogs/AutoChangeLog-pr-85257.yml

This file was deleted.

5 changes: 0 additions & 5 deletions html/changelogs/AutoChangeLog-pr-85281.yml

This file was deleted.

4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-85307.yml

This file was deleted.

4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-85316.yml

This file was deleted.

8 changes: 0 additions & 8 deletions html/changelogs/AutoChangeLog-pr-85326.yml

This file was deleted.

4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-85330.yml

This file was deleted.

4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-85333.yml

This file was deleted.

4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-85335.yml

This file was deleted.

4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-85341.yml

This file was deleted.

4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-85342.yml

This file was deleted.

4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-85343.yml

This file was deleted.

4 changes: 0 additions & 4 deletions html/changelogs/AutoChangeLog-pr-85344.yml

This file was deleted.

4 changes: 4 additions & 0 deletions html/changelogs/AutoChangeLog-pr-85368.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
author: "SmArtKar"
delete-after: True
changes:
- image: "All implants have received a fresh coat of paint"
Loading

0 comments on commit 8da65af

Please sign in to comment.