Skip to content

Commit

Permalink
Players can no longer exploit Meteorshot to throw anything that's not…
Browse files Browse the repository at this point in the history
… a turf (#17465)

* glorious fix

* moves check over to move_resist

* Update code/modules/projectiles/projectile/bullets.dm

Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>

Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
  • Loading branch information
Sirryan2002 and AffectedArc07 authored Mar 8, 2022
1 parent 25ebebb commit 6070a92
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions code/game/machinery/shieldgen.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
density = 1
opacity = FALSE
anchored = 1
move_resist = INFINITY
resistance_flags = LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF
flags_2 = RAD_NO_CONTAMINATE_2
max_integrity = 200
Expand Down Expand Up @@ -532,6 +533,7 @@
icon_state = "shieldwall"
anchored = 1
density = 1
move_resist = INFINITY
resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF
light_range = 3
var/needs_power = 0
Expand Down
1 change: 1 addition & 0 deletions code/modules/power/apc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
req_access = list(ACCESS_ENGINE_EQUIP)
siemens_strength = 1
damage_deflection = 10
move_resist = INFINITY
var/area/area
var/areastring = null
var/obj/item/stock_parts/cell/cell
Expand Down
5 changes: 3 additions & 2 deletions code/modules/projectiles/projectile/bullets.dm
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,9 @@
..()
if(ismovable(target))
var/atom/movable/M = target
var/atom/throw_target = get_edge_target_turf(M, get_dir(src, get_step_away(M, src)))
M.throw_at(throw_target, 3, 2)
if(M.move_resist < INFINITY)
var/atom/throw_target = get_edge_target_turf(M, get_dir(src, get_step_away(M, src)))
M.throw_at(throw_target, 3, 2)

/obj/item/projectile/bullet/meteorshot/New()
..()
Expand Down

0 comments on commit 6070a92

Please sign in to comment.