Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

Commit

Permalink
Fixes up salvaging a bit, adds new blueprints (#424)
Browse files Browse the repository at this point in the history
* crafting touchups

* Update fortune13.dme

* Update fortune13.dme

* Update code/game/objects/items/granters.dm

Co-authored-by: buffyuwu <[email protected]>

* Update recipes_weapon_and_ammo.dm

Co-authored-by: buffyuwu <[email protected]>
  • Loading branch information
AdamElTablawy and buffyuwu authored Nov 18, 2021
1 parent bb5bd28 commit d9a574d
Show file tree
Hide file tree
Showing 5 changed files with 136 additions and 32 deletions.
76 changes: 74 additions & 2 deletions code/datums/components/crafting/recipes/recipes_weapon_and_ammo.dm
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,32 @@
subcategory = CAT_WEAPON
always_availible = FALSE

/datum/crafting_recipe/pps
name = "Ppsh-41"
result = /obj/item/gun/ballistic/automatic/smg/ppsh
reqs = list(/obj/item/stack/sheet/metal = 5,
/obj/item/advanced_crafting_components/receiver = 1,
/obj/item/stack/crafting/metalparts = 2
)
tools = list(TOOL_AWORKBENCH)
time = 120
category = CAT_WEAPONRY
subcategory = CAT_WEAPON
always_availible = FALSE

/datum/crafting_recipe/commando
name = "DeLisle Commando Carbine"
result = /obj/item/gun/ballistic/automatic/delisle/commando
reqs = list(/obj/item/stack/sheet/metal = 5,
/obj/item/advanced_crafting_components/receiver = 1,
/obj/item/stack/crafting/metalparts = 2
)
tools = list(TOOL_WORKBENCH)
time = 120
category = CAT_WEAPONRY
subcategory = CAT_WEAPON
always_availible = FALSE

//infiltrator
/datum/crafting_recipe/infiltrator
name = "Infiltrator Carbine"
Expand Down Expand Up @@ -552,6 +578,40 @@
subcategory = CAT_WEAPON
always_availible = FALSE

/datum/crafting_recipe/gaussrifle
name = "M72 Gauss Rifle"
result = /obj/item/gun/ballistic/automatic/m72
reqs = list(/obj/item/stack/sheet/metal = 15,
/obj/item/advanced_crafting_components/flux = 1,
/obj/item/advanced_crafting_components/conductors = 2,
/obj/item/advanced_crafting_components/alloys = 2,
/obj/item/advanced_crafting_components/assembly = 1,
/obj/item/advanced_crafting_components/receiver = 1,
/obj/item/stack/crafting/metalparts = 5,
/obj/item/stack/crafting/electronicparts = 15
)
tools = list(TOOL_AWORKBENCH)
time = 120
category = CAT_WEAPONRY
subcategory = CAT_WEAPON
always_availible = FALSE

/datum/crafting_recipe/neostead
name = "Neostead 2000"
result = /obj/item/gun/ballistic/shotgun/automatic/combat/neostead
reqs = list(/obj/item/stack/sheet/metal = 10,
/obj/item/advanced_crafting_components/assembly = 1,
/obj/item/advanced_crafting_components/alloys = 1,
/obj/item/advanced_crafting_components/receiver = 1,
/obj/item/stack/crafting/goodparts = 15,
)
tools = list(TOOL_AWORKBENCH)
time = 120
category = CAT_WEAPONRY
subcategory = CAT_WEAPON
always_availible = FALSE


//aep7
/datum/crafting_recipe/AEP7
name = "AEP-7"
Expand Down Expand Up @@ -724,6 +784,19 @@
subcategory = CAT_WEAPON
always_availible = FALSE

/datum/crafting_recipe/m1carbine
name = "M1 Carbine"
result = /obj/item/gun/ballistic/automatic/m1carbine
reqs = list(/obj/item/stack/sheet/metal = 5,
/obj/item/stack/sheet/mineral/wood = 5,
/obj/item/stack/crafting/goodparts = 5
)
tools = list(TOOL_WORKBENCH)
time = 120
category = CAT_WEAPONRY
subcategory = CAT_WEAPON
always_availible = FALSE

//deagle
/datum/crafting_recipe/deagle
name = "Desert Eagle"
Expand Down Expand Up @@ -932,6 +1005,7 @@




//////////////////////////////////
///GUN ATTACHMENT/PARTS CRAFTING//
//////////////////////////////////
Expand Down Expand Up @@ -1006,8 +1080,6 @@
category = CAT_WEAPONRY
subcategory = CAT_PARTS
always_availible = FALSE


/*
/datum/crafting_recipe/flux
name = "Flux capacitor"
Expand Down
20 changes: 17 additions & 3 deletions code/game/objects/effects/spawners/f13lootdrop.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1871,8 +1871,15 @@
/obj/item/book/granter/crafting_recipe/blueprint/marksman,
/obj/item/book/granter/crafting_recipe/blueprint/plasmapistol,
/obj/item/book/granter/crafting_recipe/blueprint/brushgun,
/obj/item/book/granter/crafting_recipe/blueprint/aer9,
/obj/item/book/granter/crafting_recipe/blueprint/greasegun,
/obj/item/book/granter/crafting_recipe/blueprint/r82,
/obj/item/book/granter/crafting_recipe/blueprint/service,
/obj/item/book/granter/crafting_recipe/blueprint/trailcarbine,
/obj/item/book/granter/crafting_recipe/blueprint/thatgun,
/obj/item/book/granter/crafting_recipe/blueprint/uzi,
/obj/item/book/granter/crafting_recipe/blueprint/smg10mm,
/obj/item/book/granter/crafting_recipe/blueprint/m1carbine,
/obj/item/book/granter/crafting_recipe/blueprint/scoutcarbine
)

/obj/effect/spawner/lootdrop/f13/blueprintHigh
Expand All @@ -1884,7 +1891,11 @@
/obj/item/book/granter/crafting_recipe/blueprint/sniper,
/obj/item/book/granter/crafting_recipe/blueprint/riotshotgun,
/obj/item/book/granter/crafting_recipe/blueprint/r84,
/obj/item/book/granter/crafting_recipe/blueprint/deagle
/obj/item/book/granter/crafting_recipe/blueprint/deagle,
/obj/item/book/granter/crafting_recipe/blueprint/commando,
/obj/item/book/granter/crafting_recipe/blueprint/pps,
/obj/item/book/granter/crafting_recipe/blueprint/leveraction,
/obj/item/book/granter/crafting_recipe/blueprint/aep7
)

/obj/effect/spawner/lootdrop/f13/blueprintVHigh
Expand All @@ -1894,7 +1905,10 @@
loot = list(
/obj/item/book/granter/crafting_recipe/blueprint/am_rifle,
/obj/item/book/granter/crafting_recipe/blueprint/citykiller,
/obj/item/book/granter/crafting_recipe/blueprint/rangemaster
/obj/item/book/granter/crafting_recipe/blueprint/rangemaster,
/obj/item/book/granter/crafting_recipe/blueprint/neostead,
/obj/item/book/granter/crafting_recipe/blueprint/aer9,
/obj/item/book/granter/crafting_recipe/blueprint/gauss
)

/obj/effect/spawner/lootdrop/f13/blueprintVHighBallistics
Expand Down
25 changes: 25 additions & 0 deletions code/game/objects/items/granters.dm
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,21 @@
icon_state = "blueprint2"
crafting_recipe_types = list(/datum/crafting_recipe/gun/lsw)

/obj/item/book/granter/crafting_recipe/blueprint/m1carbine
name = "m1 carbine blueprint"
icon_state = "blueprint2"
crafting_recipe_types = list(/datum/crafting_recipe/m1carbine)

/obj/item/book/granter/crafting_recipe/blueprint/pps
name = "ppsh-41 blueprint"
icon_state = "blueprint2"
crafting_recipe_types = list(/datum/crafting_recipe/pps)

/obj/item/book/granter/crafting_recipe/blueprint/commando
name = "commando carbine blueprint"
icon_state = "blueprint2"
crafting_recipe_types = list(/datum/crafting_recipe/commando)

/obj/item/book/granter/crafting_recipe/blueprint/trapper
name = "guide to minelaying"
icon_state = "blueprint2"
Expand All @@ -788,6 +803,16 @@
icon_state = "blueprint2"
crafting_recipe_types = list(/datum/crafting_recipe/scoutcarbine)

/obj/item/book/granter/crafting_recipe/blueprint/neostead
name = "neostead 2000 blueprint"
icon_state = "blueprint2"
crafting_recipe_types = list(/datum/crafting_recipe/neostead)

/obj/item/book/granter/crafting_recipe/blueprint/gauss
name = "gauss rifle blueprint"
icon_state = "blueprint2"
crafting_recipe_types = list(/datum/crafting_recipe/gaussrifle)

/obj/item/book/granter/crafting_recipe/manual/denvr
name = "den vr configuration"
icon_state = "book"
Expand Down
8 changes: 4 additions & 4 deletions code/game/objects/structures/wrecks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@
if(!I.use_tool(src, user, 0, volume=100)) //here is the dilemma, use_tool doesn't work like do_after, so moving away screws it(?)
inuse = FALSE
return //you can't use the tool, so stop
for(var/i1 in 1 to 2) //so, I hate waiting 30 seconds straight... what if we wait 10 seconds 3 times? (yes, its the same, but it'll feel more!)
if(!do_after(user, 10 SECONDS*W.toolspeed, target = src)) //this is my work around, because do_After does have a move away
for(var/i1 in 1 to 2) //so, I hate waiting
if(!do_after(user, 3 SECONDS*W.toolspeed, target = src)) //this is my work around, because do_After does have a move away
user.visible_message("[user] stops disassembling [src].")
inuse = FALSE
return //you did something, like moving, so stop
Expand Down Expand Up @@ -401,8 +401,8 @@
if(!I.use_tool(src, user, 0, volume=100)) //here is the dilemma, use_tool doesn't work like do_after, so moving away screws it(?)
inuse = FALSE
return //you can't use the tool, so stop
for(var/i1 in 1 to 2) //so, I hate waiting 30 seconds straight... what if we wait 10 seconds 3 times? (yes, its the same, but it'll feel more!)
if(!do_after(user, 10 SECONDS, target = src)) //this is my work around, because do_After does have a move away
for(var/i1 in 1 to 2) //so, I hate waiting
if(!do_after(user, 3 SECONDS, target = src)) //this is my work around, because do_After does have a move away
user.visible_message("[user] stops disassembling [src].")
inuse = FALSE
return //you did something, like moving, so stop
Expand Down
39 changes: 16 additions & 23 deletions code/modules/crafting/items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -937,60 +937,45 @@
/obj/item/stack/ore/blackpowder/two,
/obj/item/stack/crafting/electronicparts/three,
/obj/item/stack/sheet/mineral/titanium,
/obj/item/stack/sheet/mineral/gold,
/obj/item/stack/sheet/mineral/silver,
/obj/item/stack/sheet/lead/five,
/obj/item/stack/sheet/metal/ten,
/obj/item/stack/sheet/glass/ten,
/obj/item/stack/sheet/cloth/five,
/obj/item/stack/sheet/leather/five,
/obj/item/scrap/research,
/obj/item/stock_parts/cell/ammo/ec,
/obj/item/stack/crafting/goodparts
/obj/item/stack/crafting/goodparts/five
)

/obj/item/salvage/crafting
name = "salvaged components"
desc = "Some salvaged components, it could contain some useful materials if dissasembled using a workbench..."
icon_state = "salvagecomponents"
Loot = list(/obj/item/crafting/diode,
/obj/item/crafting/transistor,
/obj/item/crafting/capacitor,
/obj/item/crafting/fuse,
/obj/item/crafting/resistor,
/obj/item/crafting/switch_crafting,
/obj/item/crafting/bulb,
/obj/item/crafting/board,
/obj/item/crafting/buzzer,
/obj/item/crafting/frame,
/obj/item/crafting/small_gear,
/obj/item/crafting/large_gear,
/obj/item/crafting/duct_tape,
Loot = list(/obj/item/crafting/duct_tape,
/obj/item/crafting/coffee_pot,
/obj/item/crafting/wonderglue,
/obj/item/crafting/turpentine,
/obj/item/crafting/abraxo,
/obj/item/crafting/igniter,
/obj/item/crafting/timer,
/obj/item/crafting/sensor,
/obj/item/crafting/lunchbox)
/obj/item/crafting/lunchbox,
/obj/item/reagent_containers/glass/bottle/blackpowder)

/obj/item/salvage/tool
name = "Pre-war tool salvage"
desc = "Some tools meshed together. It could contain working tools or other useful items if dissasembled using a workbench..."
icon_state = "toolsalvage"
Loot = list(/obj/item/blueprint/research,
/obj/item/reagent_containers/hypospray/medipen/stimpak,
/obj/item/reagent_containers/pill/patch/healingpowder,
/obj/item/stack/ore/blackpowder/two,
/obj/item/reagent_containers/pill/patch/healpoultice,
/obj/item/weldingtool/advanced,
/obj/item/crowbar/hightech,
/obj/item/screwdriver/hightech,
/obj/item/wrench/hightech,
/obj/item/wirecutters/hightech,
/obj/item/multitool/advanced,
/obj/item/stock_parts/cell/ammo/mfc,
/obj/item/stock_parts/cell/ammo/ecp,
/obj/item/melee/onehanded/knife/switchblade,
/obj/item/melee/onehanded/knife/cosmic,
/obj/item/megaphone)

/obj/item/salvage/high
Expand All @@ -999,5 +984,13 @@
icon_state = "goodsalvage"
Loot = list(/obj/item/advanced_crafting_components/receiver,
/obj/item/advanced_crafting_components/assembly,
/obj/item/advanced_crafting_components/alloys)
/obj/item/advanced_crafting_components/alloys,
/obj/item/advanced_crafting_components/conductors,
/obj/item/advanced_crafting_components/lenses,
/obj/item/advanced_crafting_components/flux,
/obj/item/attachments/scope,
/obj/item/suppressor,
/obj/item/attachments/burst_improvement,
/obj/item/attachments/recoil_decrease,
/obj/item/attachments/auto_sear)

0 comments on commit d9a574d

Please sign in to comment.