mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 15:47:15 +01:00
Merge pull request #5776 from MrPerson/throwing_changes
Throwing bugfixes
This commit is contained in:
@@ -220,7 +220,7 @@
|
||||
icon_state = "act_throw_off"
|
||||
|
||||
/obj/screen/throw_catch/Click()
|
||||
if(iscarbon(usr) && !usr.stat && isturf(usr.loc) && !usr.restrained())
|
||||
if(iscarbon(usr))
|
||||
var/mob/living/carbon/C = usr
|
||||
C.toggle_throw_mode()
|
||||
|
||||
|
||||
@@ -83,6 +83,11 @@
|
||||
user.s_active = src
|
||||
|
||||
|
||||
/obj/item/weapon/storage/throw_at(atom/target, range, speed)
|
||||
close_all()
|
||||
return ..()
|
||||
|
||||
|
||||
/obj/item/weapon/storage/proc/hide_from(mob/user)
|
||||
if(!user.client)
|
||||
return
|
||||
|
||||
@@ -220,6 +220,8 @@
|
||||
|
||||
//Throwing stuff
|
||||
/mob/living/carbon/proc/toggle_throw_mode()
|
||||
if(stat)
|
||||
return
|
||||
if(in_throw_mode)
|
||||
throw_mode_off()
|
||||
else
|
||||
@@ -240,9 +242,9 @@
|
||||
|
||||
/mob/living/carbon/throw_item(atom/target)
|
||||
throw_mode_off()
|
||||
if(usr.stat || !target)
|
||||
if(!target || !isturf(loc))
|
||||
return
|
||||
if(target.type == /obj/screen) return
|
||||
if(istype(target, /obj/screen)) return
|
||||
|
||||
var/atom/movable/item = src.get_active_hand()
|
||||
|
||||
@@ -260,7 +262,7 @@
|
||||
var/start_T_descriptor = "<font color='#6b5d00'>tile at [start_T.x], [start_T.y], [start_T.z] in area [get_area(start_T)]</font>"
|
||||
var/end_T_descriptor = "<font color='#6b4400'>tile at [end_T.x], [end_T.y], [end_T.z] in area [get_area(end_T)]</font>"
|
||||
|
||||
add_logs(usr, M, "thrown", admin=0, addition="from [start_T_descriptor] with the target [end_T_descriptor]")
|
||||
add_logs(src, M, "thrown", admin=0, addition="from [start_T_descriptor] with the target [end_T_descriptor]")
|
||||
|
||||
if(!item) return //Grab processing has a chance of returning null
|
||||
|
||||
|
||||
@@ -61,16 +61,6 @@
|
||||
return
|
||||
|
||||
|
||||
/client/verb/toggle_throw_mode()
|
||||
set hidden = 1
|
||||
if(!istype(mob, /mob/living/carbon))
|
||||
return
|
||||
if (!mob.stat && isturf(mob.loc) && !mob.restrained())
|
||||
mob:toggle_throw_mode()
|
||||
else
|
||||
return
|
||||
|
||||
|
||||
/client/verb/drop_item()
|
||||
set hidden = 1
|
||||
if(!isrobot(mob))
|
||||
|
||||
Reference in New Issue
Block a user