Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrects arg indices in artifact attacby callback. #9297

Merged
merged 1 commit into from
Dec 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions code/modules/xenoarcheaology/effect_master.dm
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@


/datum/component/artifact_master/proc/on_attackby()
var/obj/item/W = args[0]
var/obj/item/W = args[2]
for(var/datum/artifact_effect/my_effect in my_effects)

if (istype(W, /obj/item/reagent_containers))
Expand Down Expand Up @@ -325,11 +325,10 @@
else
if (my_effect.trigger == TRIGGER_FORCE && W.force >= 10)
return my_effect.ToggleActivate()
return my_effect.attackby(args[1], args[0])

return my_effect.attackby(args[3], args[2])

/datum/component/artifact_master/proc/on_reagent()
var/datum/reagent/Touching = args[2]
var/datum/reagent/Touching = args[1]

var/list/water = list("hydrogen", "water")
var/list/acid = list("sacid", "pacid", "diethylamine")
Expand Down