Skip to content

Commit

Permalink
Small Patch (#787)
Browse files Browse the repository at this point in the history
* fix 3 things

* fix grab bug, fix throwing bug

* oops

* fix susbsytem stuff
  • Loading branch information
Kapu1178 authored Jan 31, 2024
1 parent 352cad3 commit 6f55225
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 17 deletions.
1 change: 0 additions & 1 deletion code/controllers/subsystem/input.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ VERB_MANAGER_SUBSYSTEM_DEF(input)
flags = SS_TICKER
priority = FIRE_PRIORITY_INPUT
runlevels = RUNLEVELS_DEFAULT | RUNLEVEL_LOBBY

use_default_stats = FALSE

/// Standard macroset *ALL* players get
Expand Down
2 changes: 1 addition & 1 deletion code/controllers/subsystem/processing/kinesis.dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PROCESSING_SUBSYSTEM_DEF(kinesis)
name = "Kinesis"
wait = 0
wait = 1
stat_tag = "KN"
2 changes: 1 addition & 1 deletion code/controllers/subsystem/processing/projectiles.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PROCESSING_SUBSYSTEM_DEF(projectiles)
name = "Projectiles"
wait = 0
wait = 1
stat_tag = "PP"
flags = SS_NO_INIT|SS_HIBERNATE
var/global_max_tick_moves = 10
Expand Down
5 changes: 2 additions & 3 deletions code/controllers/subsystem/throwing.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
SUBSYSTEM_DEF(throwing)
name = "Throwing"
priority = FIRE_PRIORITY_THROWING
wait = SS_TICKER
flags = SS_NO_INIT
wait = 1
flags = SS_NO_INIT | SS_TICKER | SS_KEEP_TIMING
runlevels = RUNLEVEL_GAME | RUNLEVEL_POSTGAME

var/list/currentrun = list()
Expand All @@ -15,7 +15,6 @@ SUBSYSTEM_DEF(throwing)
msg = "P:[length(processing)]"
return ..()


/datum/controller/subsystem/throwing/fire(resumed = 0)
if (!resumed)
src.currentrun = processing.Copy()
Expand Down
2 changes: 1 addition & 1 deletion code/controllers/subsystem/verb_manager.dm
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/
SUBSYSTEM_DEF(verb_manager)
name = "Verb Manager"
wait = 0
wait = 1
flags = SS_TICKER | SS_HIBERNATE
priority = FIRE_PRIORITY_DELAYED_VERBS
runlevels = RUNLEVEL_LOBBY | RUNLEVELS_DEFAULT
Expand Down
2 changes: 1 addition & 1 deletion code/datums/martial/sleeping_carp.dm
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@

/obj/item/staff/bostaff/Initialize(mapload)
. = ..()
icon_state_wielded = "base_icon_state[1]"
icon_state_wielded = "[base_icon_state][1]"

/obj/item/staff/bostaff/update_icon_state()
icon_state = "[base_icon_state]0"
Expand Down
5 changes: 3 additions & 2 deletions code/game/objects/items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,9 @@ DEFINE_INTERACTABLE(/obj/item)
return TRUE

/obj/item/update_icon_state()
. = ..()
if(wielded && icon_state_wielded)
icon_state = icon_state_wielded
return ..()

/// Called when an action associated with our item is deleted
/obj/item/proc/on_action_deleted(datum/source)
Expand Down Expand Up @@ -818,6 +818,7 @@ DEFINE_INTERACTABLE(/obj/item)
// Change appearance
name = "[name] (Wielded)"
update_appearance()
user.update_held_items()
return TRUE

/obj/item/proc/unwield(mob/living/user, show_message = TRUE, dropping = FALSE)
Expand All @@ -843,7 +844,7 @@ DEFINE_INTERACTABLE(/obj/item)
if(!dropping)
var/slot = user.get_slot_by_item(src)
if(slot == ITEM_SLOT_HANDS)
user.update_worn_back()
user.update_held_items()
else if(slot)
user.update_clothing(slot)

Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/items/broom.dm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

/obj/item/pushbroom/Initialize(mapload)
. = ..()
icon_state_wielded = "base_icon_state[1]"
icon_state_wielded = "[base_icon_state][1]"

/obj/item/pushbroom/update_icon_state()
icon_state = "[base_icon_state]0"
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/items/fireaxe.dm
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

/obj/item/fireaxe/Initialize(mapload)
. = ..()
icon_state_wielded = "base_icon_state[1]"
icon_state_wielded = "[base_icon_state][1]"
AddComponent(/datum/component/butchering, 100, 80, 0 , hitsound) //axes are not known for being precision butchering tools

/obj/item/fireaxe/update_icon_state()
Expand Down
4 changes: 2 additions & 2 deletions code/game/objects/items/singularityhammer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

/obj/item/singularityhammer/Initialize(mapload)
. = ..()
icon_state_wielded = "base_icon_state[1]"
icon_state_wielded = "[base_icon_state][1]"
AddElement(/datum/element/kneejerk)

/obj/item/singularityhammer/update_icon_state()
Expand Down Expand Up @@ -88,7 +88,7 @@

/obj/item/mjollnir/Initialize(mapload)
. = ..()
icon_state_wielded = "base_icon_state[1]"
icon_state_wielded = "[base_icon_state][1]"

/obj/item/mjollnir/update_icon_state()
icon_state = "[base_icon_state]0"
Expand Down
6 changes: 4 additions & 2 deletions code/modules/grab/grab_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@

/// Frees src from all grabs.
/atom/movable/proc/free_from_all_grabs()
grabbed_by?.len = 0
grabbed_by = null
if(!LAZYLEN(grabbed_by))
return

for(var/obj/item/hand_item/grab/G in grabbed_by)
qdel(G)

/// Gets every grabber of this atom, and every grabber of those grabbers, repeat
/atom/movable/proc/recursively_get_all_grabbers()
Expand Down
2 changes: 2 additions & 0 deletions code/modules/mob/living/carbon/carbon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@
var/turf/end_T = get_turf(target)
if(start_T && end_T)
log_combat(src, thrown_thing, "thrown", addition="grab from tile in [AREACOORD(start_T)] towards tile at [AREACOORD(end_T)]")

var/power_throw = 0
if(HAS_TRAIT(src, TRAIT_HULK))
power_throw++
Expand All @@ -199,6 +200,7 @@
power_throw++
if(neckgrab_throw)
power_throw++

do_attack_animation(target, no_effect = TRUE) //PARIAH EDIT ADDITION - AESTHETICS
playsound(loc, 'sound/weapons/punchmiss.ogg', 50, TRUE, -1) //PARIAH EDIT ADDITION - AESTHETICS
visible_message(span_danger("[src] throws [thrown_thing][power_throw ? " really hard!" : "."]"), \
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/pain.dm
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

if(. && !is_healing)
switch(.)
if(1 to PAIN_AMT_MEDIUM)
if(1 to 20)
flash_pain(PAIN_SMALL)
if(20 to PAIN_AMT_MEDIUM)
flash_pain(PAIN_MEDIUM)
Expand Down

0 comments on commit 6f55225

Please sign in to comment.