Skip to content

Commit

Permalink
TGS Test Merge (#5392)
Browse files Browse the repository at this point in the history
  • Loading branch information
cm13-github committed May 8, 2024
2 parents ce5add5 + 1b61578 commit c6953a9
Show file tree
Hide file tree
Showing 8 changed files with 264 additions and 113 deletions.
4 changes: 2 additions & 2 deletions code/datums/keybinding/human_combat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
if(!.)
return
var/mob/user_mob = user.mob
return isgun(user_mob.get_held_item())
return isweapon(user_mob.get_held_item())

/datum/keybinding/human/combat/field_strip_weapon
hotkey_keys = list("Unbound")
Expand Down Expand Up @@ -101,7 +101,7 @@
if(.)
return
var/mob/living/carbon/human/human = user.mob
var/obj/item/weapon/gun/held_item = human.get_held_item()
var/obj/item/weapon/held_item = human.get_held_item()
held_item.use_unique_action()
return TRUE

Expand Down
6 changes: 6 additions & 0 deletions code/game/objects/items/weapons/weapon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
name = "weapon"
icon = 'icons/obj/items/weapons/weapons.dmi'
hitsound = "swing_hit"
var/has_unique_action = FALSE

/obj/item/weapon/Initialize(mapload, ...)
. = ..()
if(!has_unique_action)
verbs -= /obj/item/weapon/verb/use_unique_action

/obj/item/get_examine_text(mob/user)
. = ..()
Expand Down
4 changes: 2 additions & 2 deletions code/modules/cm_preds/smartdisc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
unacidable = TRUE
embeddable = FALSE

force = 15
throwforce = 25
force = MELEE_FORCE_WEAK
throwforce = MELEE_FORCE_NORMAL

/obj/item/explosive/grenade/spawnergrenade/smartdisc/launch_towards(datum/launch_metadata/LM)
..()
Expand Down
Loading

0 comments on commit c6953a9

Please sign in to comment.