Skip to content

Commit

Permalink
Feat: limit IPC temperature (#674)
Browse files Browse the repository at this point in the history
# Описание

Фиксит предел нагрева ИПС без охлаждающего органа или со сломанным
охлаждающим органном теперь ~950 цельсия.

---------

Co-authored-by: SuhEugene <[email protected]>
  • Loading branch information
Lexanx and SuhEugene authored Nov 17, 2023
1 parent 82a1362 commit bbe0413
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions code/modules/mob/living/carbon/human/human.dm
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ GLOBAL_LIST_EMPTY(compatable_genomes_owners)
stat("Battery charge:", "[potato.get_charge()]/[potato.cell.maxcharge]")
stat("Operating temperature:", "[round(bodytemperature-T0C)]&deg;C")
stat("Coolant remaining:","[coolant.get_coolant_remaining()]/[coolant.refrigerant_max]")


if(back && istype(back,/obj/item/rig))
var/obj/item/rig/suit = back
var/cell_status = "ERROR"
Expand Down
5 changes: 3 additions & 2 deletions code/modules/organs/internal/cooling_system.dm
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,10 @@
refrigerant_rate += 40

/obj/item/organ/internal/cooling_system/proc/get_tempgain()
if(owner.bodytemperature > 950 CELSIUS)
return 0
if(refrigerant_rate > 0)
var/tempgain = refrigerant_rate
return tempgain
return refrigerant_rate

/obj/item/organ/internal/cooling_system/proc/get_coolant_remaining()
if(status & ORGAN_DEAD)
Expand Down
5 changes: 4 additions & 1 deletion code/modules/organs/internal/species/fbp.dm
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@
if(owner.species.name == SPECIES_IPC)
var/obj/item/organ/internal/cooling_system/Cooling = owner.internal_organs_by_name[BP_COOLING]
if(!(owner.internal_organs_by_name[BP_COOLING]))
owner.species.passive_temp_gain = 30
if(owner.bodytemperature > 950 CELSIUS)
owner.species.passive_temp_gain = 0
else
owner.species.passive_temp_gain = 30
else
owner.species.passive_temp_gain = Cooling.get_tempgain()

Expand Down

0 comments on commit bbe0413

Please sign in to comment.