Skip to content

Commit

Permalink
DS equipment is unslashable and unacidable when installed
Browse files Browse the repository at this point in the history
  • Loading branch information
uuuuhuuuu committed May 16, 2024
1 parent 5da327a commit 5ed8883
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/modules/cm_marines/dropship_equipment.dm
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
var/point_cost = 0 //how many points it costs to build this with the fabricator, set to 0 if unbuildable.
var/skill_required = SKILL_PILOT_TRAINED
var/combat_equipment = TRUE
unslashable = FALSE
unacidable = FALSE


/obj/structure/dropship_equipment/Destroy()
Expand Down Expand Up @@ -121,6 +123,8 @@
return
if(!PC.linked_powerloader || PC.loaded || PC.linked_powerloader.buckled_mob != user)
return
src.unslashable = FALSE
src.unacidable = FALSE
PC.grab_object(user, src, "ds_gear", 'sound/machines/hydraulics_1.ogg')
if(ship_base)
ship_base.installed_equipment = null
Expand Down
1 change: 1 addition & 0 deletions code/modules/dropships/attach_points/attach_point.dm
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
clamp.update_icon()
installed_equipment = ds_equipment
ds_equipment.ship_base = src
ds_equipment.unslashable = TRUE
ds_equipment.plane = plane

for(var/obj/docking_port/mobile/marine_dropship/shuttle in SSshuttle.mobile)
Expand Down

0 comments on commit 5ed8883

Please sign in to comment.