Skip to content

Commit

Permalink
add belt slot plasma tank
Browse files Browse the repository at this point in the history
  • Loading branch information
Sord213 committed May 6, 2024
1 parent 068f323 commit 6371a8f
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions code/obj/item/tank.dm
Original file line number Diff line number Diff line change
Expand Up @@ -511,15 +511,15 @@ TYPEINFO(/obj/item/tank/jetpack/micro)
/obj/item/tank/mini_oxygen
name = "mini oxygen tank"
icon_state = "mini_oxtank"
item_state = "em_oxtank"
item_state = "mini_oxtank"
flags = FPRINT | TABLEPASS | CONDUCT
c_flags = ONBELT
health = 5
w_class = W_CLASS_NORMAL
force = 3
force = 4
stamina_damage = 30
stamina_cost = 16
desc = "A personal oxygen tank meant to keep you alive in an emergency. To use, put on a secure mask and open the tank's release valve."
desc = "A personal oxygen tank meant to keep you alive in an emergency. This one hooks directly to your jumpsuit's belt. To use, put on a secure mask and open the tank's release valve."
wear_image_icon = 'icons/mob/clothing/belt.dmi'
distribute_pressure = 17
compatible_with_TTV = FALSE
Expand Down Expand Up @@ -686,3 +686,31 @@ TYPEINFO(/obj/item/tank/jetpack/micro)
S.part2 = null
//S = null
qdel(S)

/obj/item/tank/mini_plasma
name = "mini plasma tank"
icon_state = "mini_plastank"
item_state = "mini_plastank"
flags = FPRINT | TABLEPASS | CONDUCT
c_flags = ONBELT
health = 5
w_class = W_CLASS_NORMAL
force = 4
stamina_damage = 30
stamina_cost = 16
desc = "This orange gas tank is used to contain toxic, volatile plasma. This one hooks directly to your jumpsuit's belt."
wear_image_icon = 'icons/mob/clothing/belt.dmi'
distribute_pressure = 17
compatible_with_TTV = FALSE

New()
..()
src.air_contents.volume = 15
src.air_contents.toxins = (ONE_ATMOSPHERE * 2) * 70 / (R_IDEAL_GAS_EQUATION * T20C)
return

empty
New()
..()
src.air_contents.toxins = null
return
Binary file modified icons/mob/clothing/belt.dmi
Binary file not shown.
Binary file modified icons/mob/inhand/hand_tools.dmi
Binary file not shown.
Binary file modified icons/obj/items/tank.dmi
Binary file not shown.

0 comments on commit 6371a8f

Please sign in to comment.