mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] usr to user up to player effects (#9552)
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
a7e4ef7dad
commit
0180cc74c5
@@ -138,7 +138,7 @@
|
||||
var/multiplier = text2num(params["multiplier"])
|
||||
if(!multiplier || (multiplier <= 0)) //href exploit protection
|
||||
return
|
||||
produce_recipe(R, multiplier, usr)
|
||||
produce_recipe(R, multiplier, ui.user)
|
||||
return TRUE
|
||||
|
||||
/obj/item/stack/proc/is_valid_recipe(datum/stack_recipe/R, list/recipe_list)
|
||||
@@ -404,7 +404,7 @@
|
||||
|
||||
/obj/item/stack/attack_hand(mob/user as mob)
|
||||
if (user.get_inactive_hand() == src)
|
||||
var/N = tgui_input_number(usr, "How many stacks of [src] would you like to split off? There are currently [amount].", "Split stacks", 1, amount, 1)
|
||||
var/N = tgui_input_number(user, "How many stacks of [src] would you like to split off? There are currently [amount].", "Split stacks", 1, amount, 1)
|
||||
if(N != round(N))
|
||||
to_chat(user, span_warning("You cannot separate a non-whole number of stacks!"))
|
||||
return
|
||||
@@ -415,8 +415,8 @@
|
||||
src.add_fingerprint(user)
|
||||
F.add_fingerprint(user)
|
||||
spawn(0)
|
||||
if (src && usr.machine==src)
|
||||
src.interact(usr)
|
||||
if (src && user.machine==src)
|
||||
src.interact(user)
|
||||
else
|
||||
..()
|
||||
return
|
||||
@@ -427,10 +427,10 @@
|
||||
src.transfer_to(S)
|
||||
|
||||
spawn(0) //give the stacks a chance to delete themselves if necessary
|
||||
if (S && usr.machine==S)
|
||||
S.interact(usr)
|
||||
if (src && usr.machine==src)
|
||||
src.interact(usr)
|
||||
if (S && user.machine==S)
|
||||
S.interact(user)
|
||||
if (src && user.machine==src)
|
||||
src.interact(user)
|
||||
else
|
||||
return ..()
|
||||
|
||||
|
||||
@@ -56,8 +56,8 @@
|
||||
return
|
||||
|
||||
if(WT.remove_fuel(0,user))
|
||||
new welds_into(usr.loc)
|
||||
usr.update_icon()
|
||||
new welds_into(user.loc)
|
||||
user.update_icon()
|
||||
visible_message(span_notice("\The [src] is shaped by [user.name] with the welding tool."),"You hear welding.")
|
||||
var/obj/item/stack/tile/T = src
|
||||
src = null
|
||||
|
||||
Reference in New Issue
Block a user