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

Adds a visual indicator to the Transfer Plasma ability #5862

Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,9 @@

to_chat(src, SPAN_NOTICE("We start focusing our plasma towards [target]."))
to_chat(target, SPAN_NOTICE("We feel that [src] starts transferring some of their plasma to us."))
face_atom(target)
target.flick_heal_overlay(transfer_delay, COLOR_CYAN)

if(!do_after(src, transfer_delay, INTERRUPT_ALL, BUSY_ICON_FRIENDLY))
return

Expand All @@ -320,6 +323,7 @@
amount = plasma_stored //Just use all of it
use_plasma(amount)
target.gain_plasma(amount)
target.xeno_jitter(1 SECONDS)
to_chat(target, SPAN_XENOWARNING("[src] has transfered [amount] plasma to us. We now have [target.plasma_stored]."))
to_chat(src, SPAN_XENOWARNING("We have transferred [amount] plasma to [target]. We now have [plasma_stored]."))
playsound(src, "alien_drool", 25)
Expand Down
Loading