Skip to content

Commit

Permalink
Update dropship_equipment.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGamerdk committed Mar 1, 2024
1 parent a9245b7 commit bd347f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/modules/cm_marines/dropship_equipment.dm
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,16 @@
playsound(loc, 'sound/machines/hydraulics_2.ogg', 40, 1)
var/duration_time = 10
var/point_loc
var/old_loc = src.loc
if(ship_base)
duration_time = 70 //uninstalling equipment takes more time
point_loc = ship_base.loc
if(!do_after(user, duration_time * user.get_skill_duration_multiplier(SKILL_ENGINEER), INTERRUPT_NO_NEEDHAND|BEHAVIOR_IMMOBILE, BUSY_ICON_BUILD))
return
if(point_loc && ship_base && ship_base.loc != point_loc) //dropship flew away
return
if(old_loc != src.loc) //We somehow moved (possibly into a different powerloader)
return
if(!PC.linked_powerloader || PC.loaded || PC.linked_powerloader.buckled_mob != user)
return
PC.grab_object(user, src, "ds_gear", 'sound/machines/hydraulics_1.ogg')
Expand Down

0 comments on commit bd347f9

Please sign in to comment.