mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Nerfs regular nanopaste, adds advanced one
This commit is contained in:
@@ -29,17 +29,19 @@
|
||||
if (istype(M,/mob/living/carbon/human)) //Repairing robolimbs
|
||||
var/mob/living/carbon/human/H = M
|
||||
var/obj/item/organ/external/S = H.get_organ(user.zone_sel.selecting)
|
||||
|
||||
//VOREStation Edit Start
|
||||
if (S && (S.robotic >= ORGAN_ROBOT))
|
||||
if(!S.get_damage())
|
||||
user << "<span class='notice'>Nothing to fix here.</span>"
|
||||
to_chat(user, "<span class='notice'>Nothing to fix here.</span>")
|
||||
else if((S.open < 2) && (S.get_damage() > 10) && !repair_external)
|
||||
to_chat(user, "<span class='notice'>The damage is too extensive for this nanite swarm to handle.</span>")
|
||||
else if(can_use(1))
|
||||
user.setClickCooldown(user.get_attack_speed(src))
|
||||
if(S.open >= 2)
|
||||
if(do_after(user,5 * toolspeed))
|
||||
S.heal_damage(20, 20, robo_repair = 1)
|
||||
else if(do_after(user,5 * toolspeed))
|
||||
S.heal_damage(10,10, robo_repair =1)
|
||||
S.heal_damage(5,5, robo_repair =1)
|
||||
H.updatehealth()
|
||||
use(1)
|
||||
user.visible_message("<span class='notice'>\The [user] applies some nanite paste on [user != M ? "[M]'s [S.name]" : "[S]"] with [src].</span>",\
|
||||
|
||||
8
code/game/objects/items/stacks/nanopaste_vr.dm
Normal file
8
code/game/objects/items/stacks/nanopaste_vr.dm
Normal file
@@ -0,0 +1,8 @@
|
||||
/obj/item/stack/nanopaste
|
||||
var/repair_external = FALSE
|
||||
|
||||
/obj/item/stack/nanopaste/advanced
|
||||
name = "advanced nanopaste"
|
||||
singular_name = "advanced nanite swarm"
|
||||
desc = "A tube of paste containing swarms of repair nanites. Very effective in repairing robotic machinery. These ones are capable of restoring condition even of most thrashed robotic parts"
|
||||
repair_external = TRUE
|
||||
Reference in New Issue
Block a user