Multiplies all Telecrystal stuff by ten to setup for fine cost adjusting

This commit is contained in:
Yoshax
2016-07-22 17:35:20 +01:00
parent 0f46a1855c
commit 21f856ed47
20 changed files with 184 additions and 136 deletions
+6 -3
View File
@@ -69,7 +69,6 @@
icon_state = "emag"
item_state = "card-id"
origin_tech = list(TECH_MAGNET = 2, TECH_ILLEGAL = 2)
var/default_uses = 10
var/uses = 10
/obj/item/weapon/card/emag/resolve_attackby(atom/A, mob/user)
@@ -90,8 +89,12 @@
return 1
/obj/item/weapon/card/emag/attackby(obj/item/O as obj, mob/user as mob)
if(istype(O, /obj/item/device/telecrystal))
src.uses += default_uses/2 //Adds half the default amount of uses which is more than you get per TC when buying, as to balance the utility of having multiple emags vs one heavily usable one
if(istype(O, /obj/item/stack/telecrystal))
var/obj/item/stack/telecrystal/T = O
if(T.amount/2 < 0)
usr << "<span class='notice'>You are not adding enough telecrystals to fuel \the [src].</span>"
return
src.uses += T.amount/2 //Gives 5 uses per 10 TC
usr << "<span class='notice'>You add \the [O] to \the [src]. Increasing the uses of \the [src] to [uses].</span>"
qdel(O)