Skip to content

Commit

Permalink
Merge pull request #29 from ARF-SS13/fenwork
Browse files Browse the repository at this point in the history
*kisser
  • Loading branch information
Tk420634 committed Jul 17, 2024
2 parents b91e0d6 + 97f3d96 commit d4371cf
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/_onclick/item_attack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@

var/force_out = force + force_modifier
if(force_out <= 0)
playsound(loc, pokesound, get_clamped_volume(), 1, -1)
playsound(loc, safepick(pokesound), get_clamped_volume(), 1, -1)
else if(hitsound)
playsound(loc, hitsound, get_clamped_volume(), 1, -1)
playsound(loc, safepick(hitsound), get_clamped_volume(), 1, -1)

M.lastattacker = user.real_name
M.lastattackerckey = user.ckey
Expand Down
25 changes: 25 additions & 0 deletions code/game/objects/hand_items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,27 @@
action_verb_ing = "touching"
can_taste = FALSE

/obj/item/hand_item/healable/kisser
name = "kisser"
desc = "A kisser, for smooching things."
icon = 'icons/obj/in_hands.dmi'
icon_state = "kisser"
attack_verb = list("kissed", "smooched", "snogged")
hitsound = list(
'sound/effects/kiss.ogg',
'modular_splurt/sound/interactions/kiss/kiss1.ogg',
'modular_splurt/sound/interactions/kiss/kiss2.ogg',
'modular_splurt/sound/interactions/kiss/kiss3.ogg',
'modular_splurt/sound/interactions/kiss/kiss4.ogg',
)
healthing = /obj/item/stack/medical/bruise_pack/lick/touch
needed_trait = TRAIT_HEAL_TOUCH
tend_word = "smooching"
action_verb = "kiss"
action_verb_s = "kisses"
action_verb_ing = "kissing"
can_taste = FALSE

/obj/item/hand_item/healable/licker
name = "tongue"
desc = "Mlem."
Expand Down Expand Up @@ -136,6 +157,10 @@
span_notice("I hear [action_verb_ing]."),
LICK_SOUND_TEXT_RANGE
)
var/list/sounds2play = list()
sounds2play += hitsound
sounds2play += pokesound
playsound(licked, safepick(sounds2play), 85, TRUE)
if(can_taste && iscarbon(user))
lick_flavor(atom_licked = licked, licker = user)

Expand Down
19 changes: 19 additions & 0 deletions code/modules/mob/living/carbon/emote.dm
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,25 @@
else
qdel(touchy)

/datum/emote/living/carbon/kiss
key = "kiss"
key_third_person = "kisses"
restraint_check = TRUE

/datum/emote/living/carbon/kiss/run_emote(mob/user)
. = ..()
var/obj/item/I = user.get_active_held_item()
if(istype(I, /obj/item/hand_item/healable/))
I.melee_attack_chain(user, user)
// else if(I)
// to_chat(user, span_warning("My active hand is full, and therefore you can't touch anything!"))
// return
var/obj/item/hand_item/healable/kisser/touchy = new(user)
if(user.put_in_hands(touchy))
to_chat(user, span_notice("I get ready to smooch something."))
else
qdel(touchy)

/datum/emote/living/carbon/tend
key = "tend"
key_third_person = "tends"
Expand Down
2 changes: 2 additions & 0 deletions code/modules/mob/living/emote.dm
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@
message = "grimaces."
message_param = "grimaces at %t."

/*
/datum/emote/living/kiss
key = "kiss"
key_third_person = "kisses"
Expand All @@ -361,6 +362,7 @@
if(. && iscarbon(user))
var/mob/living/carbon/C = user
return !C.silent && (!C.mind || !C.mind.miming)
*/

/datum/emote/living/audible/laugh
key = "laugh"
Expand Down
Binary file modified icons/obj/in_hands.dmi
Binary file not shown.

0 comments on commit d4371cf

Please sign in to comment.