mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-25 00:22:39 +00:00
* Renames a few variables. Also reorders fallback order again. Renames item_state to inhand_icon_state Renames mob_overlay_icon to worn_icon Renames mob_overlay_state to worn_icon_state worn_icon_state/mob_overlay_state now never gets used for inhands. * Fixes some comments * Fixes map issue * Restart lints * Properly resolves conflicts
19 lines
440 B
Plaintext
19 lines
440 B
Plaintext
/obj/item/grenade/antigravity
|
|
name = "antigravity grenade"
|
|
icon_state = "emp"
|
|
inhand_icon_state = "emp"
|
|
|
|
var/range = 7
|
|
var/forced_value = 0
|
|
var/duration = 300
|
|
|
|
/obj/item/grenade/antigravity/prime(mob/living/lanced_by)
|
|
. = ..()
|
|
update_mob()
|
|
|
|
for(var/turf/T in view(range,src))
|
|
T.AddElement(/datum/element/forced_gravity, forced_value)
|
|
addtimer(CALLBACK(T, /datum/.proc/_RemoveElement, list(forced_value)), duration)
|
|
|
|
qdel(src)
|