Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintenance Jack pry time decreased on unpowered doors #6300

Merged
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions code/game/objects/items/tools/maintenance_tools.dm
Original file line number Diff line number Diff line change
Expand Up @@ -557,13 +557,19 @@
if(requires_superstrength_pry)
if(!HAS_TRAIT(user, TRAIT_SUPER_STRONG)) //basically IS_PRY_CAPABLE_CROWBAR
return
if(!attacked_door.density) //If its open
return
Drulikar marked this conversation as resolved.
Show resolved Hide resolved
if(attacked_door.heavy) //Unopenable
to_chat(usr, SPAN_DANGER("You cannot force [attacked_door] open."))
return
if(user.action_busy)
return
if(!attacked_door.density && !attacked_door.arePowerSystemsOn()) //If its open and unpowered
attacked_door.close(TRUE)
return
if(attacked_door.density && !attacked_door.arePowerSystemsOn()) // if its closed and unpowered
attacked_door.open(TRUE)
return
if(!attacked_door.density && attacked_door.arePowerSystemsOn()) //If its open and powered
Drulikar marked this conversation as resolved.
Show resolved Hide resolved
return

user.visible_message(SPAN_DANGER("[user] jams [src] into [attacked_door] and starts to pry it open."),
SPAN_DANGER("You jam [src] into [attacked_door] and start to pry it open."))
Expand Down
Loading