mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
Merge branch 'master' of https://github.com/tgstation/tgstation into upstream-sync
This commit is contained in:
@@ -472,25 +472,23 @@ Striking a noncultist, however, will tear their flesh."}
|
||||
|
||||
// on bound
|
||||
if(bound)
|
||||
remove_filter("unbound_ray", update = FALSE)
|
||||
add_filter("bind_glow", 2, list("type" = "outline", "color" = h_color, "size" = 0.1))
|
||||
remove_filter("unbound_ray")
|
||||
update_filters()
|
||||
// on unbound
|
||||
else
|
||||
// we re-add this every time it's picked up or dropped
|
||||
remove_filter("unbound_ray")
|
||||
add_filter(name = "unbound_ray", priority = 1, params = list(
|
||||
type = "rays",
|
||||
size = 16,
|
||||
color = COLOR_HERETIC_GREEN, // the sickly green of the heretic leaking through
|
||||
density = 16,
|
||||
))
|
||||
// because otherwise the animations stack and it looks ridiculous
|
||||
var/ray_filter = get_filter("unbound_ray")
|
||||
animate(ray_filter, offset = 100, time = 2 MINUTES, loop = -1, flags = ANIMATION_PARALLEL) // Absurdly long animate so nobody notices it hitching when it loops
|
||||
animate(offset = 0, time = 2 MINUTES) // I sure hope duration of animate doesnt have any performance effect
|
||||
return
|
||||
|
||||
update_filters()
|
||||
// on unbound
|
||||
// we re-add this every time it's picked up or dropped
|
||||
remove_filter("bind_glow", update = FALSE)
|
||||
add_filter(name = "unbound_ray", priority = 1, params = list(
|
||||
type = "rays",
|
||||
size = 16,
|
||||
color = COLOR_HERETIC_GREEN, // the sickly green of the heretic leaking through
|
||||
density = 16,
|
||||
))
|
||||
// because otherwise the animations stack and it looks ridiculous
|
||||
var/ray_filter = get_filter("unbound_ray")
|
||||
animate(ray_filter, offset = 100, time = 2 MINUTES, loop = -1, flags = ANIMATION_PARALLEL) // Absurdly long animate so nobody notices it hitching when it loops
|
||||
animate(offset = 0, time = 2 MINUTES) // I sure hope duration of animate doesnt have any performance effect
|
||||
|
||||
/obj/item/melee/cultblade/haunted/proc/start_glow_loop()
|
||||
var/filter = get_filter("bind_glow")
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
gloves = /obj/item/clothing/gloves/tackler/combat
|
||||
head = /obj/item/clothing/head/helmet/alt
|
||||
shoes = /obj/item/clothing/shoes/russian
|
||||
l_pocket = /obj/item/ammo_box/strilka310
|
||||
l_pocket = /obj/item/ammo_box/speedloader/strilka310
|
||||
r_pocket = /obj/item/restraints/handcuffs/cable/zipties
|
||||
id = /obj/item/card/id/advanced/bountyhunter
|
||||
|
||||
|
||||
@@ -174,10 +174,10 @@
|
||||
return ..()
|
||||
|
||||
// Extra ammunition can be made with a heretic ritual.
|
||||
/obj/item/ammo_box/strilka310/lionhunter
|
||||
/obj/item/ammo_box/speedloader/strilka310/lionhunter
|
||||
name = "stripper clip (.310 hunter)"
|
||||
desc = "A stripper clip of mysterious, atypical ammo. It doesn't fit into normal ballistic rifles."
|
||||
icon_state = "310_strip"
|
||||
icon_state = "lionhunter_strip"
|
||||
ammo_type = /obj/item/ammo_casing/strilka310/lionhunter
|
||||
max_ammo = 3
|
||||
multiple_sprites = AMMO_BOX_PER_BULLET
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
required_atoms = list(
|
||||
/obj/item/ammo_casing = 3,
|
||||
)
|
||||
result_atoms = list(/obj/item/ammo_box/strilka310/lionhunter)
|
||||
result_atoms = list(/obj/item/ammo_box/speedloader/strilka310/lionhunter)
|
||||
cost = 0
|
||||
|
||||
research_tree_icon_path = 'icons/obj/weapons/guns/ammo.dmi'
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
/datum/action/cooldown/spell/conjure/cosmic_expansion/proc/get_turfs(turf/target_turf)
|
||||
var/list/target_turfs = list()
|
||||
for (var/direction as anything in GLOB.cardinals)
|
||||
for (var/direction in GLOB.cardinals)
|
||||
target_turfs += get_ranged_target_turf(target_turf, direction, 2)
|
||||
target_turfs += get_ranged_target_turf(target_turf, direction, 3)
|
||||
return target_turfs
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
var/list/target_turfs = list(get_turf(owner))
|
||||
var/range = ascended ? 2 : 1
|
||||
var/list/directions = list(turn(owner.dir, 90), turn(owner.dir, 270))
|
||||
for (var/direction as anything in directions)
|
||||
for (var/direction in directions)
|
||||
for (var/i in 1 to range)
|
||||
target_turfs += get_ranged_target_turf(owner, direction, i)
|
||||
return target_turfs
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
/obj/structure/void_conduit/proc/build_view_turfs()
|
||||
for(var/turf/affected_turf as anything in overlayed_turfs)
|
||||
affected_turf.cut_overlay(void_overlay)
|
||||
for(var/turf/affected_turf as anything in view(effect_range, src))
|
||||
for(var/turf/affected_turf in view(effect_range, src))
|
||||
if(!isopenturf(affected_turf))
|
||||
continue
|
||||
affected_turf.add_overlay(void_overlay)
|
||||
@@ -72,7 +72,7 @@
|
||||
///Sends out a pulse
|
||||
/obj/structure/void_conduit/proc/do_conduit_pulse()
|
||||
var/list/turfs_to_affect = list()
|
||||
for(var/turf/affected_turf as anything in view(effect_range, loc))
|
||||
for(var/turf/affected_turf in view(effect_range, loc))
|
||||
var/distance = get_dist(loc, affected_turf)
|
||||
if(!turfs_to_affect["[distance]"])
|
||||
turfs_to_affect["[distance]"] = list()
|
||||
|
||||
Reference in New Issue
Block a user