mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-22 04:39:05 +01:00
## About The Pull Request adds generic system for atom health / integrity / damage everything that isn't flagged with not-bludgeonable can, well, now be bludgeoned. ## Why It's Good For The Game more interactive game world through the means of making people able to break Everything. ## Changelog 🆑 add: atom damage - (almost) everything is now breakable. refactor: new /atom level materials system refactor: a lot of the combat system / click code refactor: melee attack styles /🆑 --------- Co-authored-by: silicons <no@you.cat>
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
/obj/structure/blob/resource
|
|
name = "resource blob"
|
|
base_name = "resource blob"
|
|
icon = 'icons/mob/blob.dmi'
|
|
icon_state = "blob_resource"
|
|
desc = "A thin spire of slightly swaying tendrils."
|
|
integrity_max = 40
|
|
point_return = 15
|
|
var/resource_delay = 0
|
|
var/resource_cooldown = 4 SECONDS
|
|
|
|
/obj/structure/blob/resource/Initialize(mapload, new_overmind)
|
|
. = ..()
|
|
if(overmind)
|
|
overmind.resource_blobs += src
|
|
|
|
/obj/structure/blob/resource/Destroy()
|
|
if(overmind)
|
|
overmind.resource_blobs -= src
|
|
return ..()
|
|
|
|
/obj/structure/blob/resource/pulsed()
|
|
. = ..()
|
|
if(resource_delay > world.time)
|
|
return
|
|
flick("blob_resource_glow", src)
|
|
if(overmind)
|
|
overmind.add_points(1)
|
|
resource_delay = world.time + resource_cooldown + (overmind.resource_blobs.len * 2.5) //4 seconds plus a quarter second for each resource blob the overmind has
|
|
else
|
|
resource_delay = world.time + resource_cooldown
|
|
|
|
/obj/structure/blob/resource/sluggish // Tankier, but really slow.
|
|
name = "sluggish resource blob"
|
|
desc = "A thin spire of occasionally convulsing tendrils."
|
|
integrity_max = 80
|
|
resource_cooldown = 8 SECONDS
|