Adds edit, variables

This commit is contained in:
Heroman
2019-09-18 17:24:23 +10:00
parent 0fb140d01c
commit 444c06b8d1
2 changed files with 6 additions and 2 deletions

View File

@@ -39,10 +39,11 @@
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)
S.heal_damage(restoration_internal, restoration_internal, robo_repair = 1)
else if(do_after(user,5 * toolspeed))
S.heal_damage(5,5, robo_repair =1)
S.heal_damage(restoration_external,restoration_external, 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>",\
"<span class='notice'>You apply some nanite paste on [user == M ? "your" : "[M]'s"] [S.name].</span>")
//VOREStation Edit End

View File

@@ -1,8 +1,11 @@
/obj/item/stack/nanopaste
var/restoration_external = 5
var/restoration_internal = 20
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"
restoration_external = 10
repair_external = TRUE