mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Merge pull request #8799 from VOREStation/upstream-merge-7478
[MIRROR] Ports borg petting from CHOMPStation
This commit is contained in:
@@ -692,7 +692,7 @@
|
||||
//if(H.species.can_shred(H))
|
||||
// attack_generic(H, rand(30,50), "slashed")
|
||||
// return
|
||||
//VOREStation Edit: Adding borg petting. Help intent pets, Disarm intent taps, Grab should remove the battery for replacement, and Harm is punching(no damage)
|
||||
//Adding borg petting. Help intent pets, Disarm intent taps, Grab should remove the battery for replacement, and Harm is punching(no damage)
|
||||
switch(H.a_intent)
|
||||
if(I_HELP)
|
||||
visible_message("<span class='notice'>[H] pets [src].</span>")
|
||||
@@ -703,15 +703,15 @@
|
||||
attack_generic(H, rand(30,50), "slashed")
|
||||
return
|
||||
else
|
||||
playsound(src, 'sound/effects/bang.ogg', 10, 1)
|
||||
playsound(src.loc, 'sound/effects/bang.ogg', 10, 1)
|
||||
visible_message("<span class='warning'>[H] punches [src], but doesn't leave a dent.</span>")
|
||||
return
|
||||
if(I_DISARM)
|
||||
H.do_attack_animation(src)
|
||||
playsound(src, 'sound/effects/clang1.ogg', 10, 1)
|
||||
playsound(src.loc, 'sound/effects/clang2.ogg', 10, 1)
|
||||
visible_message("<span class='warning'>[H] taps [src].</span>")
|
||||
return
|
||||
//VOREStation Edit: Addition of borg petting end
|
||||
|
||||
if(opened && !wiresexposed && (!istype(user, /mob/living/silicon)))
|
||||
var/datum/robot_component/cell_component = components["power cell"]
|
||||
if(cell)
|
||||
@@ -1157,4 +1157,4 @@
|
||||
uneq_active()
|
||||
|
||||
if(current_selection_index) // Select what the player had before if possible.
|
||||
select_module(current_selection_index)
|
||||
select_module(current_selection_index)
|
||||
|
||||
5
html/changelogs/Lorilili - borgpet.yml
Normal file
5
html/changelogs/Lorilili - borgpet.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
author: Lorilili
|
||||
delete-after: True
|
||||
changes:
|
||||
- rscadd: "You can now pet borgs on help intent and punch on hurt intent. Old behavior is now grab intent."
|
||||
|
||||
BIN
sound/effects/clang2.ogg
Normal file
BIN
sound/effects/clang2.ogg
Normal file
Binary file not shown.
Reference in New Issue
Block a user