Rework / refactor of how the Give verb works. Give now has a re-bindable hotkey for it (#18646)

* give verb rework ; adds a hotkey for give

* moxian review

* Adds new alert sprite shown to item giver
* Converts offering item trait to a status effect to facilitate the new alert

* Update screen_alert.dmi

* Add a `/datum/proc/signal_qdel()` helper

To cut down on copy and paste. Fixed alert flash icon not having transparency.

* lewcc review

* farie review and other fixes

For some reason my alert flash sprite no longer had an empty frame at the end so it would reach the end of the animation and be a solid yellow outline instead of invisible.

Touched screen_alert.dmi to fix that.

* reverts the addition of the give hud icon, restores give verb

I realized that making a new hud icon button would require multiple hud icons for each hud theme (the red one, green one, white one, etc.). I'm not prepared to do that much work right now.

* Update code/modules/mob/living/carbon/give.dm

Co-authored-by: Farie82 <farie82@users.noreply.github.com>

Co-authored-by: Farie82 <farie82@users.noreply.github.com>
This commit is contained in:
SteelSlayer
2022-08-24 07:51:05 -05:00
committed by GitHub
parent d39a6e4906
commit d355a60a2d
8 changed files with 225 additions and 57 deletions
+9
View File
@@ -22,6 +22,15 @@
var/mob/living/carbon/M = C.mob
M.throw_mode_off()
/datum/keybinding/carbon/give_item
name = "Give Item (Toggle)"
keys = null
/datum/keybinding/carbon/give_item/down(client/C)
. = ..()
var/mob/living/carbon/user = C.mob
user.toggle_give()
/datum/keybinding/carbon/intent
/// The intent to switch to.
var/intent