Skip to content

Commit

Permalink
telesci fixes/buffs (#4940)
Browse files Browse the repository at this point in the history
* telesci fixes/buffs

I always felt telesci was way to much of a pain. After some digging I noticed it's not actually been coded to account for are map.

Changes are as follows
Comments out telescis proc to check for SealedLevel. Since all of are z-levels are sealed this was maxing out the difficulty of telesci regardless of what level/area you target.

I've also midly bumped the pathfinding speed buff from cognition. a 4 to a 6. Might need to be even higher or not touched at all but I'd like to see this in practice.

* Update code/modules/telesci/telesci_computer.dm

Co-authored-by: CDB <[email protected]>

* Update toxins.dm

tosses in a super smol bugfix for gewaltine. It was giving CE_toxin 4 when its suppose to be a anti-toxin for the bugs.

* Update telesci_computer.dm

funny but over likely a bit to much. Reverts the buffs from cog to their old numbers. Mostly after seeing that lower difficulty teleports are pretty quick as is.

* adds the mini inhibitor

Adds a new machine.  developed by SI research essentially acts as a way to put a tele inhibitor in areas of high importance. Unlike full size ones does not contribute to global entropy protection. I'll get around to distributing these to the relevant areas once the map files are free from test merged PRs.

---------

Co-authored-by: CDB <[email protected]>
  • Loading branch information
benj8560 and cdb-is-not-good authored Jan 24, 2024
1 parent 27b0f02 commit a484e9f
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 4 deletions.
1 change: 0 additions & 1 deletion code/modules/reagents/reagents/toxins.dm
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,6 @@
if(M.species?.reagent_tag == IS_CHTMANT)
M.drowsyness = max(0, M.drowsyness - 0.6 * effect_multiplier)
M.adjust_hallucination(-0.9 * effect_multiplier)
M.add_chemical_effect(CE_TOXIN, 4)
M.add_chemical_effect(CE_ANTITOX, 2)
holder.remove_reagent("pararein", 0.4 * effect_multiplier)
return
Expand Down
9 changes: 9 additions & 0 deletions code/modules/telesci/circuits.dm
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,12 @@
/obj/item/stock_parts/subspace/ansible = 2
)

/obj/item/circuitboard/tele_inhibitor/mini
build_name = "mini bluespace inhibitor"
build_path = /obj/machinery/telesci_inhibitor/mini
board_type = "machine"
origin_tech = list(TECH_MATERIAL = 2, TECH_POWER = 2, TECH_BLUESPACE = 2)

req_components = list(
/obj/item/stock_parts/subspace/ansible = 1
)
21 changes: 21 additions & 0 deletions code/modules/telesci/teleporter_blocker.dm
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,24 @@
if(inhibitor.can_inhibit())
return TRUE
return FALSE

/////////////////////////////
// Mini_inhibitor //
/////////////////////////////

// map this in places we wanna nerf incoming telesci useage. Armories and such. Just for gods sake don't spam them everywhere we are talking about HIGH security here!
/obj/machinery/telesci_inhibitor/mini
name = "mini bluespace inhibition node"
desc = "A wall mounted ansible crystal which use area power distribution systems to cause massive interference in local bluespace fields, inhibiting teleportation. It's compact design however does not offer the full benefit of a full sized inhibitor. Developed by Soteria Research at no cost to ease Provosts concerns over SI's advancements in bluespace. A warning label clearly states that it only inhibits teleportation it does not prevent it. "
icon = 'icons/obj/telescience.dmi'
icon_state = "minihibitor"
density = 0
idle_power_usage = 150
circuit = /obj/item/circuitboard/tele_inhibitor/mini
amount_extra_blocked = 0

/obj/machinery/telesci_inhibitor/mini/update_icon()
if(!(stat & NOPOWER))
overlays += "minihibitor-powered"
if(panel_open)
overlays += "minihibitor-panel"
6 changes: 3 additions & 3 deletions code/modules/telesci/telesci_computer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@
var/turf/origin = get_turf(telepad)
if(!isPlayerLevel(targetZ))
return BS_DISTANCE_INVALID //Invalid area.
if(isSealedLevel(targetZ))
return BS_DISTANCE_STRESSFUL //Sealed Z levels like deep maint require stressing the telepad.
// if(isSealedLevel(targetZ)) //Commented out. Nearly all of our z-levels are sealed we don't need to check for this. -Benl8561
// return BS_DISTANCE_STRESSFUL //Sealed Z levels like deep maint require stressing the telepad.
if(targetArea.tele_inhibited())
return BS_DISTANCE_STRESSFUL //Tele inhibited Z levels also require stressing the telepad.
if(tracking_beacon)
Expand Down Expand Up @@ -592,4 +592,4 @@
#undef BS_RANGE_MEDIUM
#undef BS_RANGE_LONG

#undef BS_PATHING_DELAY
#undef BS_PATHING_DELAY
Binary file modified icons/obj/telescience.dmi
Binary file not shown.

0 comments on commit a484e9f

Please sign in to comment.