Skip to content

Commit

Permalink
spacepodfluff
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurorablade committed Feb 10, 2018
1 parent bd50420 commit 3bdecb4
Showing 3 changed files with 30 additions and 0 deletions.
26 changes: 26 additions & 0 deletions code/modules/customitems/item_defines.dm
Original file line number Diff line number Diff line change
@@ -1262,3 +1262,29 @@
item_state = "victorianvest"
item_color = "victorianlightfire"
displays_id = FALSE


/obj/item/device/fluff/decemviri_spacepod_kit //Decemviri: Sylus Cain
name = "Spacepod mod kit"
desc = "a kit on tools and a blueprint detailing how to reconfigure a spacepod"
icon_state = "modkit"
used = 0

/obj/item/device/fluff/decemviri_spacepod_kit/afterattack(atom/target, mob/user, proximity)
if(!proximity || !ishuman(user) || user.incapacitated())
return
if(used)
to_chat(user, "<span class='warning'>The doesn't have any spare parts to use on another pod!</span>")
else
if(istype(target, /obj/spacepod))
to_chat(user, "<span class='notice'>You modify the appearance of [target] based on the kite blueprints.</span>")
var/obj/spacepod/pod = target
pod.icon = 'icons/48x48/custom_pod.dmi'
pod.icon_state = "pod_dece"
pod.name = "sleek spacepod"
pod.desc = "A modified varient of a space pod."
pod.can_paint = FALSE
used = 1
qdel(src)
return
to_chat(user, "<span class='warning'>You can't modify [target]!</span>")
4 changes: 4 additions & 0 deletions code/modules/spacepods/spacepod.dm
Original file line number Diff line number Diff line change
@@ -67,9 +67,13 @@

var/move_delay = 2
var/next_move = 0
var/can_paint = TRUE

/obj/spacepod/proc/apply_paint(mob/user as mob)
var/part_type
if(can_paint == FALSE)
to_chat(user, "You can't repaint this type of pod!")

var/part = input(user, "Choose part", null) as null|anything in list("Lights","Rim","Paint","Windows")
switch(part)
if("Lights")
Binary file added icons/48x48/custom_pod.dmi
Binary file not shown.

0 comments on commit 3bdecb4

Please sign in to comment.