-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a bunch of miscellainous stuff i made (#402)
- Loading branch information
1 parent
60968f5
commit 67083f8
Showing
31 changed files
with
248 additions
and
46 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
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
Binary file modified
BIN
+91 Bytes
(110%)
...modules/unit_tests/screenshots/screenshot_humanoids__datum_species_ornithid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,5 +1,11 @@ | ||
// --Adds the trait for the cardcollector quirk | ||
#define TRAIT_CARDCOLLECTOR "cardcollector" | ||
|
||
// -- increases damage from weapons with the "sharpness" trait. Such as the chef's knife, or a claymore. | ||
#define TRAIT_SHARPNESS_VULNERABLE "sharpnessvulnerable" | ||
|
||
// -- used for species that use the "feathers" dna to color stuff. Necessary to allow access to its color setter pref. | ||
#define TRAIT_FEATHERED "feathers" | ||
|
||
///Gives positive mood on drinking anything caffeinated, kinda generic so people can like coffee, tea, energy drinks, whatever. | ||
#define TRAIT_CAFFEINE_LOVER "caffeine_lover" |
101 changes: 74 additions & 27 deletions
101
maplestation_modules/code/game/objects/items/storage/belt.dm
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 |
---|---|---|
@@ -1,54 +1,101 @@ | ||
// Baseball sheathe | ||
/obj/item/storage/belt/baseball | ||
// Sheathe Base Type | ||
/obj/item/storage/belt/sheathe | ||
icon = 'maplestation_modules/icons/obj/clothing/belts.dmi' | ||
lefthand_file = 'maplestation_modules/icons/mob/inhands/clothes/belts_lefthand.dmi' | ||
righthand_file = 'maplestation_modules/icons/mob/inhands/clothes/belts_righthand.dmi' | ||
worn_icon = 'maplestation_modules/icons/mob/clothing/belt.dmi' | ||
name = "Bat Sheath" | ||
desc = "A modified archery quiver meant to make offhand carrying of bats quick and easy." | ||
name = "Sheathe Basetype Item" | ||
desc = "Whoa there buddy! You've got the Sheathe Basetype, if you're looking for the captain's sheathe, try /obj/item/storage/belt/sabre !" // this will be changed when i bother to post this refactor to tg | ||
var/altclick_tip = "Altclick to draw the ITEM" | ||
icon_state = "baseball_pack" | ||
inhand_icon_state = "baseball_pack" | ||
worn_icon_state = "baseball_pack" | ||
w_class = WEIGHT_CLASS_BULKY | ||
content_overlays = TRUE | ||
var/storable_items = list() | ||
var/max_weight_class = WEIGHT_CLASS_HUGE | ||
|
||
/obj/item/storage/belt/baseball/Initialize(mapload) | ||
/obj/item/storage/belt/sheathe/Initialize(mapload) | ||
. = ..() | ||
AddElement(/datum/element/update_icon_updates_onmob) | ||
atom_storage.max_slots = 1 | ||
atom_storage.max_specific_storage = WEIGHT_CLASS_HUGE | ||
atom_storage.set_holdable(list( | ||
/obj/item/melee/baseball_bat, | ||
/obj/item/melee/baseball_bat/homerun, | ||
/obj/item/melee/baseball_bat/barbed, | ||
/obj/item/melee/baseball_bat/ablative, | ||
/obj/item/melee/baseball_bat/golden, | ||
)) | ||
|
||
/obj/item/storage/belt/baseball/examine(mob/user) | ||
atom_storage.max_specific_storage = max_weight_class | ||
atom_storage.set_holdable(storable_items) | ||
|
||
/obj/item/storage/belt/sheathe/examine(mob/user) | ||
. = ..() | ||
if(length(contents)) | ||
. += span_notice("Alt-click it to quickly draw the bat.") | ||
|
||
/obj/item/storage/belt/baseball/update_icon_state() | ||
. = ..() | ||
worn_icon_state = initial(worn_icon_state) | ||
for(var/obj/item/melee/baseball_bat/bat in contents) | ||
worn_icon_state += "[bat.belt_sprite]" | ||
. += span_notice(altclick_tip) | ||
|
||
/obj/item/storage/belt/baseball/AltClick(mob/user) | ||
/obj/item/storage/belt/sheathe/AltClick(mob/user) | ||
if(!user.can_perform_action(src, NEED_HANDS|FORBID_TELEKINESIS_REACH)) | ||
return | ||
if(length(contents)) | ||
var/obj/item/bat = contents[1] | ||
user.balloon_alert_to_viewers("unsheathes bat") | ||
user.put_in_hands(bat) | ||
var/obj/item/sheatheditem = contents[1] | ||
user.balloon_alert_to_viewers("unsheathes [sheatheditem]") | ||
user.put_in_hands(sheatheditem) | ||
update_icon() | ||
else | ||
balloon_alert(user, "empty!") | ||
|
||
/obj/item/storage/belt/sheathe/update_icon_state() | ||
icon_state = initial(icon_state) | ||
inhand_icon_state = initial(inhand_icon_state) | ||
worn_icon_state = initial(worn_icon_state) | ||
return ..() | ||
|
||
/obj/item/storage/belt/sheathe/maugrimsheathe | ||
icon = 'maplestation_modules/icons/obj/clothing/belts.dmi' | ||
lefthand_file = 'maplestation_modules/icons/mob/inhands/clothes/belts_lefthand.dmi' | ||
righthand_file = 'maplestation_modules/icons/mob/inhands/clothes/belts_righthand.dmi' | ||
worn_icon = 'maplestation_modules/icons/mob/clothing/belt.dmi' | ||
name = "Maugrim's Sheathe" | ||
desc = "A sheathe" | ||
altclick_tip = "Altclick to draw the sword" | ||
icon_state = "maugrim_sheathe" | ||
inhand_icon_state = "maugrim_sheathe" | ||
worn_icon_state = "maugrim_sheathe" | ||
w_class = WEIGHT_CLASS_BULKY | ||
content_overlays = TRUE | ||
storable_items = list(/obj/item/melee/sabre/maugrim) | ||
max_weight_class = WEIGHT_CLASS_HUGE | ||
|
||
/obj/item/storage/belt/sheathe/maugrimsheathe/update_icon_state() | ||
. = ..() | ||
if(length(contents)) | ||
icon_state += "-sword" | ||
inhand_icon_state += "-sword" | ||
worn_icon_state += "-sword" | ||
|
||
// baseball bat sheathe | ||
/obj/item/storage/belt/sheathe/baseball | ||
icon = 'maplestation_modules/icons/obj/clothing/belts.dmi' | ||
lefthand_file = 'maplestation_modules/icons/mob/inhands/clothes/belts_lefthand.dmi' | ||
righthand_file = 'maplestation_modules/icons/mob/inhands/clothes/belts_righthand.dmi' | ||
worn_icon = 'maplestation_modules/icons/mob/clothing/belt.dmi' | ||
name = "Bat Sheath" | ||
desc = "A modified archery quiver meant to make offhand carrying of bats quick and easy." | ||
altclick_tip = "Altclick to draw the bat" | ||
icon_state = "baseball_pack" | ||
inhand_icon_state = "baseball_pack" | ||
worn_icon_state = "baseball_pack" | ||
w_class = WEIGHT_CLASS_BULKY | ||
content_overlays = TRUE | ||
storable_items = list(/obj/item/melee/baseball_bat, | ||
/obj/item/melee/baseball_bat/homerun, | ||
/obj/item/melee/baseball_bat/barbed, | ||
/obj/item/melee/baseball_bat/ablative, | ||
/obj/item/melee/baseball_bat/golden, | ||
) | ||
max_weight_class = WEIGHT_CLASS_HUGE | ||
|
||
/obj/item/storage/belt/sheathe/baseball/update_icon_state() | ||
. = ..() | ||
for(var/obj/item/melee/baseball_bat/bat in contents) | ||
worn_icon_state += "[bat.belt_sprite]" | ||
|
||
// Add to leather recipes | ||
// We should genericize this in the future for modular recipes in general | ||
/obj/item/stack/sheet/leather/get_main_recipes() | ||
. = ..() | ||
. += list(new /datum/stack_recipe("bat sheathe", /obj/item/storage/belt/baseball, 4)) | ||
. += list(new /datum/stack_recipe("bat sheathe", /obj/item/storage/belt/sheathe/baseball, 4)) |
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
Oops, something went wrong.