This commit is contained in:
izac112
2023-06-03 19:53:45 +02:00
608 changed files with 17985 additions and 4722 deletions
+16 -2
View File
@@ -138,12 +138,26 @@
var/obj/item/stack/nanopaste/NP = W
if(integrity < max_integrity)
to_chat(user, "<span class='notice'>You start to repair damage to \the [src].</span>")
while(integrity < max_integrity && NP)
if(do_after(user, 1 SECOND, src) && NP.use(1))
adjust_integrity(10)
if(do_after(user, 1 SECOND, src))
NP.use(1)
adjust_integrity(NP.mech_repair)
if(integrity >= max_integrity)
to_chat(user, "<span class='notice'>You finish repairing \the [src].</span>")
break
else if(NP.amount == 0)
to_chat(user, "<span class='warning'>Insufficient nanopaste to complete repairs!</span>")
break
return
else
to_chat(user, "<span class='notice'>\The [src] doesn't require repairs.</span>")
return ..()
// Various procs to handle different calls by Exosuits. IE, movement actions, damage actions, etc.
@@ -8,4 +8,5 @@
projectile = /obj/item/projectile/beam/medigun
fire_sound = 'sound/weapons/eluger.ogg'
equip_type = EQUIP_UTILITY
origin_tech = list(TECH_MATERIAL = 5, TECH_COMBAT = 5, TECH_BIO = 6, TECH_POWER = 6)
required_type = /obj/mecha/medical
origin_tech = list(TECH_MATERIAL = 5, TECH_COMBAT = 5, TECH_BIO = 6, TECH_POWER = 6)
+18 -6
View File
@@ -1567,15 +1567,27 @@
for(var/slot in internal_components)
var/obj/item/mecha_parts/component/C = internal_components[slot]
if(C)
if(!C)
to_chat(user, "<span class='notice'>There are no components installed!</span>")
return
if(C.integrity < C.max_integrity)
while(C.integrity < C.max_integrity && NP && do_after(user, 1 SECOND, src))
if(NP.use(1))
C.adjust_integrity(10)
if(C.integrity >= C.max_integrity)
to_chat(user, "<span class='notice'>\The [C] does not require repairs.</span>")
to_chat(user, "<span class='notice'>You repair damage to \the [C].</span>")
else if(C.integrity < C.max_integrity)
to_chat(user, "<span class='notice'>You start to repair damage to \the [C].</span>")
while(C.integrity < C.max_integrity && NP)
if(do_after(user, 1 SECOND, src))
NP.use(1)
C.adjust_integrity(NP.mech_repair)
if(C.integrity >= C.max_integrity)
to_chat(user, "<span class='notice'>You finish repairing \the [C].</span>")
break
else if(NP.amount == 0)
to_chat(user, "<span class='warning'>Insufficient nanopaste to complete repairs!</span>")
break
return
else