Skip to content

Commit

Permalink
addresses comments thus far
Browse files Browse the repository at this point in the history
  • Loading branch information
dwasint committed Oct 31, 2023
1 parent 70d312d commit 0b2315a
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 12 deletions.
2 changes: 2 additions & 0 deletions code/__DEFINES/is_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -293,3 +293,5 @@ GLOBAL_LIST_INIT(book_types, typecacheof(list(

#define isprojectilespell(thing) (istype(thing, /datum/action/cooldown/spell/pointed/projectile))
#define is_multi_tile_object(atom) (atom.bound_width > world.icon_size || atom.bound_height > world.icon_size)

#define isartifact(thing) (istype(thing, /obj/structure/artifact) || istype(thing, /obj/item/melee/artifact) || istype(thing, /obj/item/gun/magic/artifact) || istype(thing, /obj/item/stock_parts/cell/artifact))
2 changes: 1 addition & 1 deletion code/__HELPERS/radiation.dm
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

if(should_rad_act)
for(var/obj/collector in range(5, source))
if(!istype(collector, /obj/machinery/power/rad_collector))
if(!istype(collector, /obj/machinery/power/rad_collector) && !isartifact(collector))
continue
collector.rad_act(intensity)

Expand Down
10 changes: 0 additions & 10 deletions code/modules/events/artifact_spawn.dm
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,6 @@
if(!spawn_location?.resolve())
return kill()

/datum/round_event_control/random_artifact/can_spawn_event(players_amt, allow_magic = FALSE, fake_check = FALSE)
. = ..()
if(!.)
return
//just in case
if(!length(GLOB.generic_event_spawns))
return FALSE
else
return

/datum/round_event/random_artifact/start()
var/marker = spawn_location.resolve()
if(!marker)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/power/singularity/singularity.dm
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
dissipate(seconds_per_tick)
radiation_pulse(src, 4, intensity = min(5000, (energy * 4.5) + 1000), should_rad_act = FALSE)
for(var/obj/collector in range(5, src))
if(!istype(collector, /obj/machinery/power/rad_collector) && !istype(collector, /obj/structure/artifact) && !istype(collector, /obj/item/melee/artifact) && !istype(collector, /obj/item/gun/magic/artifact) && !istype(collector, /obj/item/stock_parts/cell/artifact))
if(!istype(collector, /obj/machinery/power/rad_collector) && !isartifact(collector))
continue
collector.rad_act(intensity = min(2500, (energy * 2) + 500))
check_energy()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//range artifacts require stimuli to fall within a range between amount and upper range
// hint range and hint chance are added onto range to see if something we should pull a hint for the user

/datum/artifact_activator/range
name = "Generic Range Trigger"
//the upper range of the weapon basically between amount, and upper_range
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//touch artifacts are just if something comes into contact without a range IE if someone touches an artifact

/datum/artifact_activator/touch
name = "Generic Contact Trigger"
required_stimuli = STIMULUS_DATA | STIMULUS_CARBON_TOUCH | STIMULUS_SILICON_TOUCH
Expand Down

0 comments on commit 0b2315a

Please sign in to comment.