mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-13 19:02:56 +00:00
* Find and replace argless atom New() to Initialize(). * Manual replacement of no-arg New() to Initialize(). * Manually replacing remaining New() overrides. * Fixing linter issues with now-removed New() args. * Tidying area init overrides. * Porting Neb's atom subsystem. * Trying to isolate init problems. * Adjusting Init code post-test. * Merging duplicate Initialize() procs. * Merge resolution.
24 lines
684 B
Plaintext
24 lines
684 B
Plaintext
/obj/item/weapon/material/star
|
|
name = "shuriken"
|
|
desc = "A sharp, perfectly weighted piece of metal."
|
|
icon_state = "star"
|
|
force_divisor = 0.1 // 6 with hardness 60 (steel)
|
|
thrown_force_divisor = 0.75 // 15 with weight 20 (steel)
|
|
throw_speed = 10
|
|
throw_range = 15
|
|
sharp = 1
|
|
edge = 1
|
|
|
|
/obj/item/weapon/material/star/Initialize()
|
|
. = ..()
|
|
src.pixel_x = rand(-12, 12)
|
|
src.pixel_y = rand(-12, 12)
|
|
|
|
/obj/item/weapon/material/star/throw_impact(atom/hit_atom)
|
|
..()
|
|
if(material.radioactivity>0 && istype(hit_atom,/mob/living))
|
|
var/mob/living/M = hit_atom
|
|
M.adjustToxLoss(rand(20,40))
|
|
|
|
/obj/item/weapon/material/star/ninja
|
|
default_material = "uranium" |