mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-07-21 05:02:40 +01:00
Personal Crafting & Dependencies
This commit is contained in:
@@ -53,6 +53,7 @@
|
||||
sync_organ_dna()
|
||||
|
||||
verbs |= /mob/living/proc/toggle_selfsurgery
|
||||
AddComponent(/datum/component/personal_crafting)
|
||||
|
||||
/mob/living/carbon/human/Destroy()
|
||||
human_mob_list -= src
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
next_move = 1
|
||||
sight |= SEE_SELF
|
||||
..()
|
||||
SEND_SIGNAL(src, COMSIG_MOB_LOGIN)
|
||||
|
||||
if(loc && !isturf(loc))
|
||||
client.eye = loc
|
||||
@@ -80,4 +81,5 @@
|
||||
update_client_z(T.z)
|
||||
|
||||
if(cloaked && cloaked_selfimage)
|
||||
client.images += cloaked_selfimage
|
||||
client.images += cloaked_selfimage
|
||||
SEND_SIGNAL(src, COMSIG_MOB_CLIENT_LOGIN, client)
|
||||
@@ -80,7 +80,7 @@
|
||||
material_needs[component_needed] = rand(1,3)
|
||||
|
||||
if(ispath(my_guntype, /obj/item/weapon/gun/launcher) && prob(50))
|
||||
var/component_needed = pick(/obj/item/weapon/tape_roll, /obj/item/weapon/material/wirerod)
|
||||
var/component_needed = pick(/obj/item/weapon/tape_roll, /obj/item/stack/rods, /obj/item/weapon/handcuffs/cable)
|
||||
material_needs[component_needed] = 1
|
||||
|
||||
if(ispath(my_guntype, /obj/item/weapon/gun/magnetic) && prob(70))
|
||||
|
||||
@@ -37,7 +37,8 @@
|
||||
CheckParts()
|
||||
FireModeModify()
|
||||
|
||||
/obj/item/weapon/gun/energy/modular/proc/CheckParts() //What parts do we have inside us, and how good are they?
|
||||
/obj/item/weapon/gun/energy/modular/CheckParts() //What parts do we have inside us, and how good are they?
|
||||
..()
|
||||
capacitor_rating = 0
|
||||
laser_rating = 0
|
||||
manipulator_rating = 0
|
||||
|
||||
@@ -516,4 +516,16 @@
|
||||
trans_to(M, mobportion, multiplier, copy)
|
||||
trans_to(T, total_volume, multiplier, copy)
|
||||
if (total_volume <= 0)
|
||||
qdel(src)
|
||||
qdel(src)
|
||||
|
||||
/**
|
||||
* Calls [/datum/reagent/proc/on_update] on every reagent in this holder
|
||||
*
|
||||
* Arguments:
|
||||
* * atom/A - passed to on_update
|
||||
*/
|
||||
/datum/reagents/proc/conditional_update(atom/A)
|
||||
var/list/cached_reagents = reagent_list
|
||||
for(var/datum/reagent/reagent as anything in cached_reagents)
|
||||
reagent.on_update(A)
|
||||
update_total()
|
||||
|
||||
@@ -235,3 +235,7 @@
|
||||
|
||||
/datum/reagent/proc/reaction_mob(var/mob/target)
|
||||
touch_mob(target)
|
||||
|
||||
/// Called by [/datum/reagents/proc/conditional_update]
|
||||
/datum/reagent/proc/on_update(atom/A)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user