-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a modpack for blacksmithy and forging.
- Loading branch information
1 parent
eb2a758
commit fdc5618
Showing
40 changed files
with
1,013 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Stub for forging. TODO barrel crafting. | ||
/obj/item/barrel_rim | ||
name = "barrel rim" | ||
desc = "A circular brace used to hold a barrel together." | ||
icon_state = ICON_STATE_WORLD | ||
icon = 'icons/obj/items/barrel_rim.dmi' | ||
material = /decl/material/solid/metal/iron | ||
material_alteration = MAT_FLAG_ALTERATION_ALL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Stub for forging. TODO shield crafting. | ||
/obj/item/shield_fasteners | ||
name = "shield fasteners" | ||
desc = "A handful of shaped fasteners used to hold a buckler or shield together." | ||
icon_state = ICON_STATE_WORLD | ||
icon = 'icons/obj/items/shield_fasteners.dmi' | ||
material = /decl/material/solid/metal/iron | ||
material_alteration = MAT_FLAG_ALTERATION_ALL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
/obj/item/tongs | ||
name = "tongs" | ||
desc = "Long-handled grippers well suited to fishing white-hot iron out of a forge fire." | ||
icon = 'icons/obj/items/tongs.dmi' | ||
material = /decl/material/solid/metal/iron | ||
obj_flags = OBJ_FLAG_INSULATED_HANDLE | ||
material_alteration = MAT_FLAG_ALTERATION_ALL | ||
var/obj/item/holding_item | ||
|
||
/obj/item/tongs/Destroy() | ||
QDEL_NULL(holding_item) | ||
. = ..() | ||
|
||
/obj/item/tongs/on_update_icon() | ||
. = ..() | ||
if(holding_item) | ||
// Note, not get_color(); heat color is (will be) temporarily applied over the top of base color. | ||
add_overlay(overlay_image(icon, "[icon_state]-bar", holding_item.color, RESET_COLOR)) | ||
|
||
/obj/item/tongs/dropped(mob/user) | ||
. = ..() | ||
if(holding_item) | ||
holding_item.dropInto(loc) | ||
holding_item = null | ||
update_icon() | ||
|
||
/obj/item/tongs/afterattack(turf/floor/target, mob/user, proximity) | ||
. = ..() | ||
if(holding_item) | ||
|
||
/* | ||
/obj/item/attackby(obj/item/used_item, mob/user) | ||
// Pick up items with tongs. | ||
if(istype(used_item, /obj/item/tongs)) | ||
var/obj/item/tongs/tongs = used_item | ||
if(!tongs.holding_item) | ||
tongs.collect_item(src) | ||
return TRUE | ||
return ..() | ||
/obj/item/stack/attackby(obj/item/used_item, mob/user) | ||
// Pick up items with tongs. | ||
if(istype(used_item, /obj/item/tongs)) | ||
var/obj/item/tongs/tongs = used_item | ||
if(!tongs.holding_item) | ||
var/obj/item/grabbing | ||
if(get_amount() == 1) | ||
grabbing = src | ||
else | ||
grabbing = split(1) | ||
tongs.collect_item(grabbing) | ||
return ..(() | ||
/obj/item/tongs/adjust_mob_overlay(mob/living/user_mob, bodytype, image/overlay, slot, bodypart, use_fallback_if_icon_missing) | ||
if(overlay && holding_item) | ||
var/check_state = "[overlay.icon_state]-bar" | ||
if(check_state_in_icon(check_state, overlay.icon)) | ||
overlay.overlays += overlay_image(overlay.icon, check_state, holding_item.get_color(), RESET_COLOR) | ||
. = ..() | ||
/obj/item/tongs/proc/collect_item(obj/item/grabbing) | ||
if(ismob(grabbing.loc)) | ||
var/mob/holding = grabbing.loc | ||
if(!holding.try_unequip(grabbing)) | ||
return FALSE | ||
else if(isatom(grabbing.loc)) | ||
var/atom/holder = grabbing.loc | ||
if(holder.storage) | ||
storage.remove_from_storage(null, grabbing, get_turf(user)) | ||
else | ||
return FALSE | ||
grabbing.forceMove(src) | ||
holding_item = grabbing | ||
update_icon() | ||
return TRUE | ||
/obj/item/tongs/Exited(atom/movable/AM, atom/new_loc) | ||
. = ..() | ||
if(AM == holding_item) | ||
holding_item = null | ||
update_icon() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/obj/item/stack/material/nail | ||
name = "nails" | ||
singular_name = "nail" | ||
plural_name = "nails" | ||
icon_state = "nail" | ||
plural_icon_state = "nail-mult" | ||
max_icon_state = "nail-max" | ||
stack_merge_type = /obj/item/stack/material/nail | ||
crafting_stack_type = /obj/item/stack/material/nail | ||
icon = 'icons/obj/items/stacks/nails.dmi' | ||
is_spawnable_type = TRUE | ||
matter_multiplier = 0.05 // 20 per standard sheet | ||
material = /decl/material/solid/metal/iron | ||
|
||
/obj/item/stack/material/nail/twelve | ||
amount = 12 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/decl/modpack/blacksmithy | ||
name = "Blacksmithy" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#ifndef MODPACK_BLACKSMITHY | ||
#define MODPACK_BLACKSMITHY | ||
// BEGIN_INCLUDE | ||
#include "_blacksmithy.dm" | ||
#include "anvil.dm" | ||
#include "bars.dm" | ||
#include "billet.dm" | ||
#include "boulder.dm" | ||
#include "forge_fire.dm" | ||
#include "forging_action.dm" | ||
#include "forging_step.dm" | ||
#include "tongs.dm" | ||
// END_INCLUDE | ||
#endif |
Oops, something went wrong.