Skip to content

Commit

Permalink
noob
Browse files Browse the repository at this point in the history
  • Loading branch information
AndroBetel committed Sep 27, 2024
1 parent b745eab commit 6c6a1c5
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@
list("MRE", round(scale * 15), /obj/item/reagent_container/food/snacks/upp, VENDOR_ITEM_REGULAR),

list("TOOLS", -1, null, null),
list("Type 50 Entrenching Tool", round(scale * 2), /obj/item/tool/shovel/etoolupp/folded, VENDOR_ITEM_REGULAR),
list("Type 50 Entrenching Tool", round(scale * 2), /obj/item/tool/shovel/etool/upp/folded, VENDOR_ITEM_REGULAR),
list("Screwdriver", round(scale * 5), /obj/item/tool/screwdriver/tactical, VENDOR_ITEM_REGULAR),
list("Wirecutters", round(scale * 5), /obj/item/tool/wirecutters/tactical, VENDOR_ITEM_REGULAR),
list("Crowbar", round(scale * 5), /obj/item/tool/crowbar/tactical, VENDOR_ITEM_REGULAR),
Expand Down
61 changes: 16 additions & 45 deletions code/game/objects/items/tools/shovel_tools.dm
Original file line number Diff line number Diff line change
Expand Up @@ -218,14 +218,21 @@
dirt_amt_per_dig = 5
shovelspeed = 50

/obj/item/tool/shovel/etool/Initialize()
. = ..()
update_icon()
if(folded)
w_class = SIZE_SMALL
force = 5
hitsound = 'sound/weapons/genhit3.ogg'

/obj/item/tool/shovel/etool/update_icon()
if(folded)
icon_state = "etool_c"
item_state = "etool_c"
icon_state = "[initial(icon_state)]_c"
item_state = "[initial(item_state)]_c"
else
icon_state = "etool"
item_state = "etool"
icon_state = initial(icon_state)
item_state = initial(item_state)
..()


Expand All @@ -234,59 +241,23 @@
if(folded)
w_class = SIZE_SMALL
force = 5
hitsound = 'sound/weapons/genhit3.ogg'
else
w_class = SIZE_LARGE
force = 30
hitsound = initial(hitsound)
..()

/obj/item/tool/shovel/etool/folded
folded = TRUE
w_class = SIZE_SMALL
force = 5
icon_state = "etool_c"
item_state = "etool_c"
hitsound = 'sound/weapons/genhit3.ogg'

/obj/item/tool/shovel/etoolupp
/obj/item/tool/shovel/etool/upp
name = "Type 50 entrenching tool"
desc = "A serviceman's best friend. Dually useful for digging foxholes and bashing in heads. Folds in half for easier storage."
icon = 'icons/obj/items/marine-items.dmi'
icon_state = "etoolupp"
item_state = "etoolupp"
force = 30
throwforce = 2
w_class = SIZE_LARGE
hitsound = 'sound/weapons/bladeslice.ogg'

dirt_overlay = "etoolupp_overlay"
dirt_amt_per_dig = 5
shovelspeed = 50

/obj/item/tool/shovel/etoolupp/update_icon()
if(folded)
icon_state = "etoolupp_c"
item_state = "etoolupp_c"
else
icon_state = "etoolupp"
item_state = "etoolupp"
..()

/obj/item/tool/shovel/etoolupp/attack_self(mob/user as mob)
folded = !folded
if(folded)
w_class = SIZE_SMALL
force = 5
hitsound = 'sound/weapons/genhit3.ogg'
else
w_class = SIZE_LARGE
force = 30
hitsound = 'sound/weapons/bladeslice.ogg'
..()

/obj/item/tool/shovel/etoolupp/folded
/obj/item/tool/shovel/etool/upp/folded
folded = TRUE
w_class = SIZE_SMALL
force = 5
icon_state = "etoolupp_c"
item_state = "etoolupp_c"
hitsound = 'sound/weapons/genhit3.ogg'

2 changes: 1 addition & 1 deletion code/modules/gear_presets/synths.dm
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@

new_human.equip_to_slot_or_del(new /obj/item/storage/belt/utility/full(new_human), WEAR_WAIST)
new_human.equip_to_slot_or_del(new /obj/item/storage/pouch/etool(new_human), WEAR_L_STORE)
new_human.equip_to_slot_or_del(new /obj/item/tool/shovel/etoolupp/folded(new_human), WEAR_IN_L_STORE)
new_human.equip_to_slot_or_del(new /obj/item/tool/shovel/etool/upp/folded(new_human), WEAR_IN_L_STORE)
new_human.equip_to_slot_or_del(new /obj/item/storage/pouch/general/medium(new_human), WEAR_R_STORE)
new_human.equip_to_slot_or_del(new /obj/item/device/lightreplacer(new_human.back), WEAR_IN_R_STORE)

Expand Down
2 changes: 1 addition & 1 deletion code/modules/gear_presets/upp.dm
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
new_human.equip_to_slot_or_del(new /obj/item/storage/pouch/firstaid/full/alternate, WEAR_L_STORE)
new_human.equip_to_slot_or_del(new /obj/item/storage/pouch/general/medium, WEAR_R_STORE)
new_human.equip_to_slot_or_del(new /obj/item/prop/helmetgarb/compass, WEAR_IN_R_STORE)
new_human.equip_to_slot_or_del(new /obj/item/tool/shovel/etoolupp/folded, WEAR_IN_R_STORE)
new_human.equip_to_slot_or_del(new /obj/item/tool/shovel/etool/upp/folded, WEAR_IN_R_STORE)

var/random_gear = rand(1,5)
switch(random_gear)
Expand Down

0 comments on commit 6c6a1c5

Please sign in to comment.