Skip to content

Commit

Permalink
pod smash!
Browse files Browse the repository at this point in the history
  • Loading branch information
TobleroneSwordfish committed Apr 18, 2023
1 parent c816c33 commit abab59f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
4 changes: 4 additions & 0 deletions code/modules/atmospherics/portable/canister.dm
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,10 @@ ADMIN_INTERACT_PROCS(/obj/machinery/portable_atmospherics/canister, proc/toggle_
return
return

/obj/machinery/portable_atmospherics/canister/damage_blunt(amount)
src.health -= amount
src.healthcheck()

/obj/machinery/portable_atmospherics/canister/toxins/New()

..()
Expand Down
21 changes: 5 additions & 16 deletions code/modules/transport/pods/vehicle.dm
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
var/view_offset_y = 0
var/datum/movement_controller/movement_controller

var/req_smash_velocity = 9 //7 is the 'normal' cap right now
var/req_smash_velocity = 7 //7 is the 'normal' cap right now
var/hitmob = 0
var/ram_self_damage_multiplier = 0.09
var/ram_self_damage_multiplier = 0.5

/// I got sick of having the comms type swapping code in 17 New() ship types
/// so this is the initial type of comms array this vehicle will have
Expand Down Expand Up @@ -583,7 +583,7 @@
if (get_move_velocity_magnitude() > 5)
var/power = get_move_velocity_magnitude()

src.health -= min(power * ram_self_damage_multiplier,5)
src.health -= min(power * ram_self_damage_multiplier,10)
checkhealth()

if (istype(target, /obj/machinery/vehicle/))
Expand Down Expand Up @@ -634,15 +634,8 @@
D.try_force_open(src)
if (istype(O, /obj/structure/girder) || istype(O, /obj/foamedmetal))
qdel(O)

if (istype(target, /obj/window))
var/obj/window/W = target
W.health = 0
W.smash()

if (istype(O, /obj/grille))
var/obj/grille/G = target
G.damage_slashing(15)
var/obj_damage = 5 * power
target.damage_blunt(obj_damage)

if (istype(O, /obj/table))
var/obj/table/table = target
Expand All @@ -651,10 +644,6 @@
if (istype(O,/obj/machinery/vending))
var/obj/machinery/vending/V = O
V.fall(src)
if (istype(O,/obj/machinery/portable_atmospherics/canister))
var/obj/machinery/portable_atmospherics/canister/C = O
C.health -= power
C.healthcheck()
logTheThing(LOG_COMBAT, src, "(piloted by [constructTarget(src.pilot,"combat")]) crashes into [constructTarget(target,"combat")] [log_loc(src)].")

playsound(src.loc, 'sound/impact_sounds/Generic_Hit_Heavy_1.ogg', 40, 1)
Expand Down
2 changes: 2 additions & 0 deletions strings/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

(t)tue apr 18 23
(u)LeahTheTech
(*)Pods and cars now damage things (windows, tables, vending machines) they crash into, and also take slightly more damage from said crashes.
(u)Sord
(+)Engineering manufacturers now have some more items available for production
(+)Engineers now spawn with their own jumpsuits instead of mechanics jumpsuits
Expand Down

0 comments on commit abab59f

Please sign in to comment.