mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-19 05:26:28 +00:00
## About The Pull Request It has come to my attention that it isn't possible for admins to grant the abilities to place web, lay eggs, and issue commands to spiders to arbitrary mobs. This refactors Spider, Goliath, and Meteor Heart abilities (hey what do you know I last touched all of those) such that they can. ## Why It's Good For The Game You **can** create the spider pig as an event. ## Changelog 🆑 admin: Adds Spider, Goliath, and Meteor Heart actions to the "Grant Mob Action" menu. /🆑
32 lines
1.0 KiB
Plaintext
32 lines
1.0 KiB
Plaintext
//spider webs
|
|
/datum/mutation/human/webbing
|
|
name = "Webbing Production"
|
|
desc = "Allows the user to lay webbing, and travel through it."
|
|
quality = POSITIVE
|
|
text_gain_indication = "<span class='notice'>Your skin feels webby.</span>"
|
|
instability = 15
|
|
power_path = /datum/action/cooldown/mob_cooldown/lay_web/genetic
|
|
energy_coeff = 1
|
|
|
|
/datum/mutation/human/webbing/modify()
|
|
. = ..()
|
|
var/datum/action/cooldown/mob_cooldown/lay_web/genetic/to_modify = .
|
|
|
|
if(!istype(to_modify)) // null or invalid
|
|
return
|
|
|
|
if(GET_MUTATION_ENERGY(src) == 1) // Energetic chromosome outputs a value less than 1 when present, 1 by default
|
|
to_modify.webbing_time = initial(to_modify.webbing_time)
|
|
return
|
|
to_modify.webbing_time = 2 SECONDS // Spin webs faster but not more often
|
|
|
|
/datum/mutation/human/webbing/on_acquiring(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
ADD_TRAIT(owner, TRAIT_WEB_WEAVER, GENETIC_MUTATION)
|
|
|
|
/datum/mutation/human/webbing/on_losing(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
REMOVE_TRAIT(owner, TRAIT_WEB_WEAVER, GENETIC_MUTATION)
|