Skip to content

Commit

Permalink
less shoddy way of angling the beam
Browse files Browse the repository at this point in the history
  • Loading branch information
realkhad committed Jun 29, 2023
1 parent 70c726e commit 284fe4a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions code/game/machinery/iv_drip.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
anchored = FALSE
density = FALSE
drag_delay = 1
base_pixel_x = 5

var/mob/living/carbon/attached = null
var/mode = 1 // 1 is injecting, 0 is taking blood.
Expand Down
3 changes: 3 additions & 0 deletions code/game/objects/items/reagent_containers/blood_pack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
user.visible_message("[user] detaches [src] from [connected_to].", \
"You detach [src] from [connected_to].")
connected_to.active_transfusions -= src
connected_to.base_pixel_x = 0
connected_to = null
connected_from = null
delete_beam()
Expand All @@ -83,6 +84,7 @@
connected_to = attacked_mob
connected_from = user
connected_to.active_transfusions += src
connected_to.base_pixel_x = 5
START_PROCESSING(SSobj, src)
user.visible_message("[user] attaches \the [src] to [connected_to].", \
"You attach \the [src] to [connected_to].")
Expand Down Expand Up @@ -145,6 +147,7 @@
if(connected_to.pain.feels_pain)
connected_to.emote("scream")
connected_to.active_transfusions -= src
connected_to.base_pixel_x = 0
connected_to = null
connected_from = null
delete_beam()
Expand Down
Binary file modified icons/effects/beam.dmi
Binary file not shown.

0 comments on commit 284fe4a

Please sign in to comment.