forked from tgstation/tgstation
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into Loadouts-Possibly
Signed-off-by: SomeRandomOwl <[email protected]>
- Loading branch information
Showing
289 changed files
with
15,254 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
//Species | ||
#define isprimitivedemihuman(A) (is_species(A, /datum/species/human/felinid/primitive)) | ||
//Customization bases | ||
#define isfeline(A) (isfelinid(A) || HAS_TRAIT(A, TRAIT_FELINE)) |
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,2 +1,3 @@ | ||
#define COMSIG_KB_LIVING_COMBAT_INDICATOR "keybinding_living_combat_indicator" | ||
#define COMSIG_KB_MOB_PIXEL_SHIFT_DOWN "keybinding_mob_pixel_shift_down" | ||
#define COMSIG_KB_MOB_PIXEL_SHIFT_UP "keybinding_mob_pixel_shift_up" |
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,2 @@ | ||
/// Whether something is repairable by the anvil | ||
#define ANVIL_REPAIR (1<<0) |
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,4 @@ | ||
#define TOOL_BILLOW "billow" | ||
#define TOOL_TONG "tong" | ||
#define TOOL_HAMMER "hammer" | ||
#define TOOL_BLOWROD "blowrod" |
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 @@ | ||
#define RESKIN_ICON "reskin_icon" | ||
#define RESKIN_ICON_STATE "reskin_icon_state" | ||
#define RESKIN_WORN_ICON "reskin_worn_icon" | ||
#define RESKIN_WORN_ICON_STATE "reskin_worn_icon_state" | ||
#define RESKIN_SUPPORTS_VARIATIONS_FLAGS "reskin_supports_variations_flags" | ||
#define RESKIN_INHAND_L "reskin_inhand_l" | ||
#define RESKIN_INHAND_R "reskin_inhand_r" | ||
#define RESKIN_INHAND_STATE "reskin_inhand_state" |
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,2 @@ | ||
///Fired in combat_indicator.dm, used for syncing CI between mech and pilot | ||
#define COMSIG_MOB_CI_TOGGLED "mob_ci_toggled" |
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,6 @@ | ||
/** | ||
* Sound effect defines, used in modular_sounds on proc get_sfx. | ||
*/ | ||
|
||
#define SFX_BRICK_DROP "brick_drop" | ||
#define SFX_BRICK_PICKUP "brick_pickup" |
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 @@ | ||
#define span_italics(str) ("<span class='italics'>" + str + "</span>") |
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,2 +1,4 @@ | ||
// Hearthkin, from the Ice Moon | ||
#define SPECIES_FELINE_PRIMITIVE "primitive_felinid" | ||
// Slugcats, from Talon III. | ||
#define SPECIES_SLUGCAT "slugcat" |
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,4 @@ | ||
#define TECHWEB_NODE_XENOARCH_ADVANCED "adv_xenoarch" | ||
#define TECHWEB_NODE_XENOARCH_BASIC "basic_xenoarch" | ||
#define TECHWEB_NODE_XENOARCH_MACHINES "xenoarch_machines" | ||
#define TECHWEB_NODE_XENOARCH_STORAGE "xenoarch_storage" |
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,11 @@ | ||
/// trait that lets you do xenoarch magnification | ||
#define TRAIT_XENOARCH_QUALIFIED "trait_xenoarch_qualified" | ||
|
||
/// Traits granted by glassblowing | ||
#define TRAIT_GLASSBLOWING "glassblowing" | ||
|
||
/// Trait that is applied whenever someone or something is glassblowing | ||
#define TRAIT_CURRENTLY_GLASSBLOWING "currently_glassblowing" | ||
|
||
// felinid traits | ||
#define TRAIT_FELINE "feline_aspect" |
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,29 @@ | ||
/proc/init_doppler_stack_recipes() | ||
var/list/additional_stack_recipes = list( | ||
/obj/item/stack/sheet/leather = list(GLOB.doppler_leather_recipes, GLOB.doppler_leather_belt_recipes), | ||
/obj/item/stack/sheet/iron = list(GLOB.doppler_metal_recipes), | ||
/obj/item/stack/sheet/plasteel = list(GLOB.doppler_plasteel_recipes), | ||
/obj/item/stack/sheet/mineral/wood = list(GLOB.doppler_wood_recipes), | ||
/obj/item/stack/sheet/cloth = list(GLOB.doppler_cloth_recipes), | ||
/obj/item/stack/ore/glass = list(GLOB.doppler_sand_recipes), | ||
/obj/item/stack/rods = list(GLOB.doppler_rod_recipes), | ||
/obj/item/stack/sheet/mineral/stone = list(GLOB.stone_recipes), | ||
/obj/item/stack/sheet/mineral/clay = list(GLOB.clay_recipes), | ||
) | ||
for(var/stack in additional_stack_recipes) | ||
for(var/material_list in additional_stack_recipes[stack]) | ||
for(var/stack_recipe in material_list) | ||
if(istype(stack_recipe, /datum/stack_recipe_list)) | ||
var/datum/stack_recipe_list/stack_recipe_list = stack_recipe | ||
for(var/nested_recipe in stack_recipe_list.recipes) | ||
if(!nested_recipe) | ||
continue | ||
var/datum/crafting_recipe/stack/recipe = new/datum/crafting_recipe/stack(stack, nested_recipe) | ||
if(recipe.name != "" && recipe.result) | ||
GLOB.crafting_recipes += recipe | ||
else | ||
if(!stack_recipe) | ||
continue | ||
var/datum/crafting_recipe/stack/recipe = new/datum/crafting_recipe/stack(stack, stack_recipe) | ||
if(recipe.name != "" && recipe.result) | ||
GLOB.crafting_recipes += recipe |
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,4 @@ | ||
///reagent forging module | ||
DEFINE_BITFIELD(obj_flags_doppler, list( | ||
"ANVIL_REPAIR" = ANVIL_REPAIR, | ||
)) |
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,2 @@ | ||
///new addition to cryosleep module | ||
GLOBAL_LIST_EMPTY(objectives) |
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 @@ | ||
/// list of weakrefs to highpriest successor candidates. Every chaplain who joins after the initial chaplain is added to this list. The next high priest is chosen from them by seniority. | ||
GLOBAL_LIST(holy_successors) | ||
/// A weakref to the current high priest mob | ||
GLOBAL_VAR(current_highpriest) | ||
/// The previous sect's favor value | ||
GLOBAL_VAR(prev_favor) | ||
/// The previous sect's typepath | ||
GLOBAL_VAR(prev_sect_type) |
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 added
BIN
+1.01 KB
...sts/screenshots/screenshot_humanoids__datum_species_human_felinid_primitive.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
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,8 @@ | ||
## Combat indicator, comment out to disable it | ||
COMBAT_INDICATOR | ||
|
||
## How long until someone can be put in cryo if they are SSD, default is 9000 (15 minutes) | ||
CRYO_MIN_SSD_TIME 9000 | ||
|
||
## Primitive demihumans | ||
ROUNDSTART_RACES primitive_felinid |
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,68 @@ | ||
/obj/item | ||
/// Does this use the advanced reskinning setup? | ||
var/uses_advanced_reskins = FALSE | ||
|
||
/obj/item/reskin_obj(mob/M) | ||
if(!uses_advanced_reskins) | ||
return ..() | ||
if(!LAZYLEN(unique_reskin)) | ||
return | ||
|
||
/// Is the obj a glasses icon with swappable item states? | ||
var/is_swappable = FALSE | ||
// /// if the item are glasses, this variable stores the item. | ||
// var/obj/item/clothing/glasses/reskinned_glasses | ||
|
||
// if(istype(src, /obj/item/clothing/glasses)) // TODO - Remove this mess about glasses, it shouldn't be necessary anymore. | ||
// reskinned_glasses = src | ||
// if(reskinned_glasses.can_switch_eye) | ||
// is_swappable = TRUE | ||
|
||
var/list/items = list() | ||
|
||
|
||
for(var/reskin_option in unique_reskin) | ||
var/image/item_image = image(icon = unique_reskin[reskin_option][RESKIN_ICON] ? unique_reskin[reskin_option][RESKIN_ICON] : icon, icon_state = "[unique_reskin[reskin_option][RESKIN_ICON_STATE]]") | ||
items += list("[reskin_option]" = item_image) | ||
sort_list(items) | ||
|
||
var/pick = show_radial_menu(M, src, items, custom_check = CALLBACK(src, PROC_REF(check_reskin_menu), M), radius = 38, require_near = TRUE) | ||
if(!pick) | ||
return | ||
if(!unique_reskin[pick]) | ||
return | ||
current_skin = pick | ||
|
||
if(unique_reskin[pick][RESKIN_ICON]) | ||
icon = unique_reskin[pick][RESKIN_ICON] | ||
|
||
if(unique_reskin[pick][RESKIN_ICON_STATE]) | ||
if(is_swappable) | ||
base_icon_state = unique_reskin[pick][RESKIN_ICON_STATE] | ||
icon_state = base_icon_state | ||
else | ||
icon_state = unique_reskin[pick][RESKIN_ICON_STATE] | ||
|
||
if(unique_reskin[pick][RESKIN_WORN_ICON]) | ||
worn_icon = unique_reskin[pick][RESKIN_WORN_ICON] | ||
|
||
if(unique_reskin[pick][RESKIN_WORN_ICON_STATE]) | ||
worn_icon_state = unique_reskin[pick][RESKIN_WORN_ICON_STATE] | ||
|
||
if(unique_reskin[pick][RESKIN_INHAND_L]) | ||
lefthand_file = unique_reskin[pick][RESKIN_INHAND_L] | ||
if(unique_reskin[pick][RESKIN_INHAND_R]) | ||
righthand_file = unique_reskin[pick][RESKIN_INHAND_R] | ||
if(unique_reskin[pick][RESKIN_INHAND_STATE]) | ||
inhand_icon_state = unique_reskin[pick][RESKIN_INHAND_STATE] | ||
if(unique_reskin[pick][RESKIN_SUPPORTS_VARIATIONS_FLAGS]) | ||
supports_variations_flags = unique_reskin[pick][RESKIN_SUPPORTS_VARIATIONS_FLAGS] | ||
if(ishuman(M)) | ||
var/mob/living/carbon/human/wearer = M | ||
wearer.regenerate_icons() // update that mf | ||
to_chat(M, "[src] is now skinned as '[pick].'") | ||
post_reskin(M) | ||
|
||
/// Automatically called after a reskin, for any extra variable changes. | ||
/obj/item/proc/post_reskin(mob/our_mob) | ||
return |
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,25 @@ | ||
## Title: Advanced Reskin | ||
|
||
MODULE ID: ADVANCED_RESKIN | ||
|
||
### Description: | ||
|
||
This module adds more customization to the reskin function, as well as serving as a place to add more to it. | ||
|
||
### TG Proc Changes: | ||
|
||
N/A | ||
|
||
### Defines: | ||
|
||
- `code\__DEFINES\~doppler_defines\reskin_defines.dm` module's defines | ||
|
||
### Master file additions | ||
|
||
N/A | ||
|
||
### Included files that are not contained in this module: | ||
|
||
N/A | ||
|
||
### Credits: |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/// Send player in not-quiet cryopod. If with_paper = TRUE, place a paper with notification under player. | ||
/mob/proc/send_to_cryo(with_paper = FALSE) | ||
//effect | ||
playsound(loc, 'sound/magic/Repulse.ogg', 100, 1) | ||
var/datum/effect_system/spark_spread/quantum/sparks = new | ||
sparks.set_up(10, 1, loc) | ||
sparks.attach(loc) | ||
sparks.start() | ||
|
||
//make a paper if need | ||
if(with_paper) | ||
var/obj/item/paper/cryo_paper = new /obj/item/paper(loc) | ||
cryo_paper.name = "Notification - [name]" | ||
cryo_paper.add_raw_text("Our sincerest apologies, [name][job ? ", [job]," : ""] had to be sent back in Cryogenic Storage for reasons that cannot be elaborated on at the moment.<br><br>Sincerely,<br><i>Nanotrasen Anti-Sudden Sleep Disorder Agency</i>") | ||
cryo_paper.update_appearance() | ||
//find cryopod | ||
for(var/obj/machinery/cryopod/cryo in GLOB.valid_cryopods) | ||
if(!cryo.occupant && cryo.state_open && !cryo.panel_open) //free, opened, and panel closed? | ||
if(buckled) | ||
buckled.unbuckle_mob(src, TRUE) | ||
if(buckled_mobs) | ||
for(var/mob/buckled_mob in buckled_mobs) | ||
unbuckle_mob(buckled_mob) | ||
cryo.close_machine(src) //put player | ||
break | ||
|
||
|
Oops, something went wrong.