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

Gives flooded fighter engines a description that tells you how to unflood it #2723

Merged
merged 1 commit into from
Dec 27, 2024
Merged
Changes from all 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
9 changes: 8 additions & 1 deletion nsv13/code/modules/overmap/fighters/_fighters.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1272,6 +1272,12 @@ due_to_damage: If the removal was caused voluntarily (FALSE), or if it was cause
var/rpm = 0
var/flooded = FALSE

/obj/item/fighter_component/engine/examine(mob/user)
. = ..()
if(flooded)
. += "<span class='notice'>You can hear liquid sloshing around inside.</span>"
. += "<span class='notice'>The combustion chamber is <b>screwed<b> closed.</span>"

/obj/item/fighter_component/engine/flooded //made just so I can put it in pilot-specific mail
desc = "A mighty engine capable of propelling small spacecraft to high speeds. Something doesn't seem right, though..."
flooded = TRUE
Expand All @@ -1280,8 +1286,9 @@ due_to_damage: If the removal was caused voluntarily (FALSE), or if it was cause
. = ..()
if(!flooded)
return
to_chat(user, "<span class='notice'>You start to purge [src] of its flooded fuel.</span>")
balloon_alert(user, "You start to purge [src] of its flooded fuel.")
if(do_after(user, 10 SECONDS, target=src))
balloon_alert(user, "You finish clearing the fuel out of [src].")
flooded = FALSE
shake_animation()

Expand Down
Loading