Files
Paradise/code/modules/mining/equipment/mining_tools.dm
Chap d90a70ecda [REFACTOR] Consolidates SLOT_FLAG and SLOT_HUD into one ITEM_SLOT flag (#26743)
* IT WORKS UP UNTIL THIS POINT

* Consolidates SLOT_FLAG and SLOT_HUD into one

* Remove cover_both_ears

* SLOT_HUD to ITEM_SLOT

* Remove clothing_trait changes for the time being

* Remove accidental copy-paste

* Re-add no-slip var

* More failure to copy-paste correctly

* Leftover flag

* Combine left and right slot flags where possible

* UNGOOF MY DEFINES, PHAND IS NOT A THING

* Minor spacing changes

* Some more fixes from merge

* Seperates ITEM SLOT AMOUNT into two defines

* ON SECOND THOUGHT LETS NOT DO THAT.

* Addresses Contra's review

* Thank you GREP

* Rename ITEM_SLOT_FEET to ITEM_SLOT_SHOES

* Added a comment to the bitmasks in clothing defines

* Rename ITEM_SLOT_TIE to ITEM_SLOT_ACCESSORY

* These are for a seperate PR.

* Magboot fixes

* Requested changes

* Re-add accidental removal

* Wrong flags

* Update code/__DEFINES/clothing_defines.dm

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
Signed-off-by: Chap <erwin@lombok.demon.nl>

* Requested changes

* Merge fixes

* Fix double headset

* Fixes multiple accessories

---------

Signed-off-by: Chap <erwin@lombok.demon.nl>
Co-authored-by: Adrer <adrermail@gmail.com>
Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
2024-11-13 13:02:29 +00:00

160 lines
5.1 KiB
Plaintext

/*****************Pickaxes & Drills & Shovels****************/
/obj/item/pickaxe
name = "pickaxe"
desc = "A tool for digging rock and stone. Better get to work."
icon = 'icons/obj/mining_tool.dmi'
icon_state = "pickaxe"
flags = CONDUCT
slot_flags = ITEM_SLOT_BELT
force = 15
throwforce = 10
item_state = "pickaxe"
w_class = WEIGHT_CLASS_BULKY
materials = list(MAT_METAL = 2000) //one sheet, but where can you make them?
origin_tech = "materials=2;engineering=3"
attack_verb = list("hit", "pierced", "sliced", "attacked")
var/list/digsound = list('sound/effects/picaxe1.ogg','sound/effects/picaxe2.ogg','sound/effects/picaxe3.ogg')
var/drill_verb = "picking"
sharp = TRUE
var/excavation_amount = 100
usesound = 'sound/effects/picaxe1.ogg'
toolspeed = 1
/obj/item/pickaxe/proc/playDigSound()
playsound(src, pick(digsound),20,1)
/obj/item/pickaxe/emergency
name = "emergency disembarkation tool"
desc = "For extracting yourself from rough landings."
/obj/item/pickaxe/safety
name = "safety pickaxe"
desc = "A pickaxe designed to be only effective at digging rock and ore, very ineffective as a weapon."
force = 1
throwforce = 1
attack_verb = list("ineffectively hit")
/obj/item/pickaxe/mini
name = "compact pickaxe"
desc = "A smaller, compact version of the standard pickaxe."
icon_state = "minipick"
force = 10
throwforce = 7
w_class = WEIGHT_CLASS_NORMAL
materials = list(MAT_METAL = 1000)
/obj/item/pickaxe/bone
name = "bone pickaxe"
desc = "Do it yourself pickaxe."
icon_state = "bone_pickaxe"
item_state = "bone_pickaxe"
origin_tech = "materials=1;engineering=2"
toolspeed = 0.7
force = 16
materials = list()
/obj/item/pickaxe/silver
name = "silver-plated pickaxe"
desc = "A silver-plated pickaxe that mines slightly faster than standard-issue."
icon_state = "spickaxe"
item_state = "spickaxe"
origin_tech = "materials=3;engineering=4"
toolspeed = 0.5 //mines faster than a normal pickaxe, bought from mining vendor
force = 17
materials = list(MAT_METAL = 1900, MAT_SILVER = 100)
/obj/item/pickaxe/gold
name = "golden pickaxe"
desc = "A gold-plated pickaxe that mines faster than standard-issue."
icon_state = "gpickaxe"
item_state = "gpickaxe"
origin_tech = "materials=4;engineering=4"
toolspeed = 0.4
force = 18
materials = list(MAT_METAL = 1900, MAT_GOLD = 100)
/obj/item/pickaxe/diamond
name = "diamond-tipped pickaxe"
desc = "A pickaxe with a diamond pick head. Extremely robust at cracking rock walls and digging up dirt."
icon_state = "dpickaxe"
item_state = "dpickaxe"
origin_tech = "materials=5;engineering=4"
toolspeed = 0.3
force = 19
materials = list(MAT_METAL = 1900, MAT_DIAMOND = 100)
/obj/item/pickaxe/drill
name = "mining drill"
desc = "An electric mining drill for the especially scrawny."
icon_state = "handdrill"
item_state = "jackhammer"
digsound = list('sound/weapons/drill.ogg')
toolspeed = 0.6 //available from roundstart, faster than a pickaxe.
hitsound = 'sound/weapons/drill.ogg'
usesound = 'sound/weapons/drill.ogg'
origin_tech = "materials=2;powerstorage=2;engineering=3"
/obj/item/pickaxe/drill/cyborg
name = "cyborg mining drill"
desc = "An integrated electric mining drill."
flags = NODROP
/obj/item/pickaxe/drill/diamonddrill
name = "diamond-tipped mining drill"
desc = "Yours is the drill that will pierce the heavens!"
icon_state = "diamonddrill"
origin_tech = "materials=6;powerstorage=4;engineering=4"
toolspeed = 0.2
/// This is the BORG version!
/obj/item/pickaxe/drill/cyborg/diamond
name = "diamond-tipped cyborg mining drill" //To inherit the NODROP flag, and easier to change borg specific drill mechanics.
icon_state = "diamonddrill"
toolspeed = 0.2
/obj/item/pickaxe/drill/jackhammer
name = "sonic jackhammer"
desc = "Cracks rocks with sonic blasts, and doubles as a demolition power tool for smashing walls."
icon_state = "jackhammer"
item_state = "jackhammer"
origin_tech = "materials=6;powerstorage=4;engineering=5;magnets=4"
digsound = list('sound/weapons/sonic_jackhammer.ogg')
hitsound = 'sound/weapons/sonic_jackhammer.ogg'
usesound = 'sound/weapons/sonic_jackhammer.ogg'
toolspeed = 0.1 //the epitome of powertools. extremely fast mining, laughs at puny walls
force = 20 //This thing breaks rwalls, it should be able to hit harder than a DIY bone pickaxe.
/obj/item/shovel
name = "shovel"
desc = "A large tool for digging and moving dirt."
icon = 'icons/obj/mining_tool.dmi'
icon_state = "shovel"
flags = CONDUCT
slot_flags = ITEM_SLOT_BELT
force = 8
throwforce = 4
item_state = "shovel"
w_class = WEIGHT_CLASS_NORMAL
materials = list(MAT_METAL = 200)
origin_tech = "materials=2;engineering=2"
attack_verb = list("bashed", "bludgeoned", "thrashed", "whacked")
usesound = 'sound/effects/shovel_dig.ogg'
toolspeed = 0.5
/obj/item/shovel/spade
name = "spade"
desc = "A small tool for digging and moving dirt."
icon_state = "spade"
item_state = "spade"
belt_icon = "spade"
force = 5
throwforce = 7
w_class = WEIGHT_CLASS_SMALL
/obj/item/shovel/safety
name = "safety shovel"
desc = "A large tool for digging and moving dirt. Was modified with extra safety, making it ineffective as a weapon."
force = 1
throwforce = 1
attack_verb = list("ineffectively hit")