Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into reactiondatums
Browse files Browse the repository at this point in the history
  • Loading branch information
duncathan committed Apr 3, 2017
2 parents 1850f09 + 32f957d commit 55c1dff
Show file tree
Hide file tree
Showing 378 changed files with 153,865 additions and 9,780 deletions.
158,569 changes: 151,078 additions & 7,491 deletions _maps/map_files/Cerestation/cerestation.dmm

Large diffs are not rendered by default.

531 changes: 428 additions & 103 deletions _maps/map_files/MetaStation/MetaStation.dmm

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions _maps/map_files/TgStation/tgstation.2.1.3.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -29169,13 +29169,11 @@
},
/area/hallway/primary/central)
"bnO" = (
/obj/structure/table,
/obj/machinery/newscaster/security_unit{
pixel_x = 0;
pixel_y = 32
},
/obj/item/weapon/hand_labeler,
/obj/item/stack/packageWrap,
/obj/structure/filingcabinet/chestdrawer,
/turf/open/floor/plasteel,
/area/crew_quarters/heads)
"bnP" = (
Expand Down Expand Up @@ -31259,7 +31257,7 @@
icon_state = "4-8";
pixel_x = 0
},
/obj/structure/filingcabinet/chestdrawer,
/obj/machinery/vending/cart,
/turf/open/floor/plasteel,
/area/crew_quarters/heads)
"brX" = (
Expand Down Expand Up @@ -33388,7 +33386,11 @@
/area/crew_quarters/heads)
"bwk" = (
/obj/structure/table,
/obj/item/weapon/book/manual/wiki/security_space_law,
/obj/item/weapon/hand_labeler,
/obj/item/stack/packageWrap{
pixel_x = -1;
pixel_y = -1
},
/turf/open/floor/plasteel,
/area/crew_quarters/heads)
"bwl" = (
Expand Down
14 changes: 14 additions & 0 deletions code/__DEFINES/MC.dm
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,17 @@
#define SS_PAUSED 3 //paused by mc_tick_check
#define SS_SLEEPING 4 //fire() slept.
#define SS_PAUSING 5 //in the middle of pausing

#define SUBSYSTEM_DEF(X) var/datum/controller/subsystem/##X/SS##X;\
/datum/controller/subsystem/##X/New(){\
NEW_SS_GLOBAL(SS##X);\
PreInit();\
}\
/datum/controller/subsystem/##X

#define PROCESSING_SUBSYSTEM_DEF(X) var/datum/controller/subsystem/processing/##X/SS##X;\
/datum/controller/subsystem/processing/##X/New(){\
NEW_SS_GLOBAL(SS##X);\
PreInit();\
}\
/datum/controller/subsystem/processing/##X
22 changes: 8 additions & 14 deletions code/__DEFINES/flags.dm
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@
#define INFORM_ADMINS_ON_RELOCATE "inform_admins_on_relocate"
#define BANG_PROTECT "bang_protect"

// A mob with OMNITONGUE has no restriction in the ability to speak
// languages that they know. So even if they wouldn't normally be able to
// through mob or tongue restrictions, this flag allows them to ignore
// those restrictions.
#define OMNITONGUE "omnitongue"

//turf-only flags
#define NOJAUNT 1
#define UNUSED_TRANSIT_TURF 2
Expand All @@ -60,20 +66,6 @@
#define GROUND 1
#define FLYING 2


/*
These defines are used specifically with the atom/movable/languages bitmask.
They are used in atom/movable/Hear() and atom/movable/say() to determine whether hearers can understand a message.
*/
#define HUMAN 1
#define MONKEY 2
#define ALIEN 4
#define ROBOT 8
#define SLIME 16
#define DRONE 32
#define SWARMER 64
#define RATVAR 128

// Flags for reagents
#define REAGENT_NOREACT 1

Expand All @@ -85,3 +77,5 @@
#define UNACIDABLE 16 //acid can't even appear on it, let alone melt it.
#define ACID_PROOF 32 //acid stuck on it doesn't melt it.
#define INDESTRUCTIBLE 64 //doesn't take damage

// language secondary flags for atoms
2 changes: 2 additions & 0 deletions code/__DEFINES/is_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

#define ismineralturf(A) (istype(A, /turf/closed/mineral))

#define islava(A) (istype(A, /turf/open/floor/plating/lava))

//Mobs
#define isliving(A) (istype(A, /mob/living))

Expand Down
2 changes: 2 additions & 0 deletions code/__DEFINES/language.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#define NO_STUTTER 1
#define TONGUELESS_SPEECH 2
2 changes: 1 addition & 1 deletion code/__DEFINES/lighting.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#define LIGHTING_HEIGHT 1 // height off the ground of light sources on the pseudo-z-axis, you should probably leave this alone
#define LIGHTING_ROUND_VALUE 1 / 128 //Value used to round lumcounts, values smaller than 1/255 don't matter (if they do, thanks sinking points), greater values will make lighting less precise, but in turn increase performance, VERY SLIGHTLY.

#define LIGHTING_ICON 'icons/effects/lighting_object.png' // icon used for lighting shading effects
#define LIGHTING_ICON 'icons/effects/lighting_object.dmi' // icon used for lighting shading effects

// If the max of the lighting lumcounts of each spectrum drops below this, disable luminosity on the lighting objects.
// Set to zero to disable soft lighting. Luminosity changes then work if it's lit at all.
Expand Down
4 changes: 3 additions & 1 deletion code/__DEFINES/maps.dm
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,6 @@ Last space-z level = empty
#define ZLEVEL_EMPTY_SPACE 11

#define ZLEVEL_SPACEMIN 3
#define ZLEVEL_SPACEMAX 11
#define ZLEVEL_SPACEMAX 11

#define SPACERUIN_MAP_EDGE_PAD 15
2 changes: 1 addition & 1 deletion code/__DEFINES/misc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
#define STAGE_FIVE 9
#define STAGE_SIX 11 //From supermatter shard

//ticker.current_state values
//SSticker.current_state values
#define GAME_STATE_STARTUP 0
#define GAME_STATE_PREGAME 1
#define GAME_STATE_SETTING_UP 2
Expand Down
5 changes: 4 additions & 1 deletion code/__HELPERS/_lists.dm
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@
if(!L || !L.len || !A)

return 0
return L[A.type]
if(ispath(A))
. = L[A]
else
. = L[A.type]

//Checks for a string in a list
/proc/is_string_in_list(string, list/L)
Expand Down
1 change: 1 addition & 0 deletions code/__HELPERS/flags.dm
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#define HAS_SECONDARY_FLAG(atom, sflag) (atom.secondary_flags ? atom.secondary_flags[sflag] : FALSE)
#define SET_SECONDARY_FLAG(atom, sflag) if(!atom.secondary_flags) { atom.secondary_flags = list(); } atom.secondary_flags[sflag] = TRUE;
#define CLEAR_SECONDARY_FLAG(atom, sflag) if(atom.secondary_flags) atom.secondary_flags[sflag] = null
#define TOGGLE_SECONDARY_FLAG(atom, sflag) if(HAS_SECONDARY_FLAG(atom, sflag)) { CLEAR_SECONDARY_FLAG(atom, sflag); } else {SET_SECONDARY_FLAG(atom, sflag) ; }
2 changes: 1 addition & 1 deletion code/__HELPERS/game.dm
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@
winset(C, "mainwindow", "flash=5")

/proc/AnnounceArrival(var/mob/living/carbon/human/character, var/rank)
if(ticker.current_state != GAME_STATE_PLAYING || !character)
if(SSticker.current_state != GAME_STATE_PLAYING || !character)
return
var/area/A = get_area(character)
var/message = "<span class='game deadsay'><span class='name'>\
Expand Down
4 changes: 2 additions & 2 deletions code/__HELPERS/names.dm
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ var/religion_name = null
name = ""

// Prefix
for(var/holiday_name in SSevent.holidays)
for(var/holiday_name in SSevents.holidays)
if(holiday_name == "Friday the 13th")
random = 13
var/datum/holiday/holiday = SSevent.holidays[holiday_name]
var/datum/holiday/holiday = SSevents.holidays[holiday_name]
name = holiday.getStationPrefix()
//get normal name
if(!name)
Expand Down
8 changes: 5 additions & 3 deletions code/__HELPERS/time.dm
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
//Returns the world time in english
/proc/worldtime2text()
return gameTimestamp("hh:mm:ss")
return gameTimestamp("hh:mm:ss", world.time)

/proc/time_stamp(format = "hh:mm:ss", show_ds)
var/time_string = time2text(world.timeofday, format)
return show_ds ? "[time_string]:[world.timeofday % 10]" : time_string

/proc/gameTimestamp(format = "hh:mm:ss") // Get the game time in text
return time2text(world.time - timezoneOffset + 432000 - round_start_time, format)
/proc/gameTimestamp(format = "hh:mm:ss", wtime=null)
if(!wtime)
wtime = world.time
return time2text(wtime - timezoneOffset + SSticker.gametime_offset - round_start_time, format)

/* Returns 1 if it is the selected month and day */
/proc/isDay(month, day)
Expand Down
9 changes: 6 additions & 3 deletions code/__HELPERS/unsorted.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1313,7 +1313,7 @@ proc/pick_closest_path(value, list/matches = get_fancy_list_of_atom_types())
else
. = ""

var/mob/dead/dview/dview_mob = new
var/mob/dview/dview_mob = new

//Version of view() which ignores darkness, because BYOND doesn't have it (I actually suggested it but it was tagged redundant, BUT HEARERS IS A T- /rant).
/proc/dview(var/range = world.view, var/center, var/invis_flags = 0)
Expand All @@ -1327,15 +1327,15 @@ var/mob/dead/dview/dview_mob = new
. = view(range, dview_mob)
dview_mob.loc = null

/mob/dead/dview
/mob/dview
name = "INTERNAL DVIEW MOB"
invisibility = 101
density = FALSE
see_in_dark = 1e6
anchored = TRUE
var/ready_to_die = FALSE

/mob/dead/dview/Destroy(force = FALSE)
/mob/dview/Destroy(force = FALSE)
if(!ready_to_die)
stack_trace("ALRIGHT WHICH FUCKER TRIED TO DELETE *MY* DVIEW?")

Expand Down Expand Up @@ -1429,3 +1429,6 @@ var/valid_HTTPSGet = FALSE

/proc/to_chat(target, message)
target << message

/proc/pass()
return
21 changes: 0 additions & 21 deletions code/__PATH_COMPATIBILITY/path_compatibility.dm

This file was deleted.

3 changes: 2 additions & 1 deletion code/_globalvars/lists/mobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ var/global/list/dead_mob_list = list() //all dead mobs, including clientless.
var/global/list/joined_player_list = list() //all clients that have joined the game at round-start or as a latejoin.
var/global/list/silicon_mobs = list() //all silicon mobs
var/global/list/pai_list = list()
var/global/list/available_ai_shells = list()
var/global/list/available_ai_shells = list()
var/global/list/language_datums = list()
1 change: 1 addition & 0 deletions code/_globalvars/lists/names.dm
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ var/list/mime_names = file2list("config/names/mime.txt")
var/list/carp_names = file2list("config/names/carp.txt")
var/list/golem_names = file2list("config/names/golem.txt")
var/list/plasmaman_names = file2list("config/names/plasmaman.txt")
var/list/posibrain_names = list("PBU","HIU","SINA","ARMA","OSI","HBL","MSO","RR","CHRI","CDB","HG","XSI","ORNG","GUN","KOR","MET","FRE","XIS","SLI","PKP","HOG","RZH","GOOF","MRPR","JJR","FIRC","INC","PHL","BGB","ANTR","MIW","WJ","JRD","CHOC","ANCL","JLLO","JNLG","KOS","TKRG","XAL","STLP","CBOS","DUNC","FXMC","DRSD","COI")


var/list/verbs = file2list("config/names/verbs.txt")
Expand Down
2 changes: 1 addition & 1 deletion code/_globalvars/lists/objects.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var/global/list/portals = list() //list of all /obj/effect/portal
var/global/list/airlocks = list() //list of all airlocks
var/global/list/mechas_list = list() //list of all mechs. Used by hostile mobs target tracking.
var/global/list/shuttle_caller_list = list() //list of all communication consoles and AIs, for automatic shuttle calls when there are none.
var/global/list/machines = list() //NOTE: this is a list of ALL machines now. The processing machines list is SSmachine.processing !
var/global/list/machines = list() //NOTE: this is a list of ALL machines now. The processing machines list is SSmachines.processing !
var/global/list/syndicate_shuttle_boards = list() //important to keep track of for managing nukeops war declarations.
var/global/list/navbeacons = list() //list of all bot nagivation beacons, used for patrolling.
var/global/list/teleportbeacons = list() //list of all tracking beacons used by teleporters
Expand Down
5 changes: 3 additions & 2 deletions code/_onclick/hud/_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#define ui_lingstingdisplay "WEST:6,CENTER-3:11"
#define ui_crafting "12:-10,1:5"
#define ui_building "12:-10,1:21"
#define ui_language_menu "11:6,2:-11"

#define ui_devilsouldisplay "WEST:6,CENTER-1:15"

Expand Down Expand Up @@ -61,7 +62,7 @@
#define ui_borg_store "CENTER+2:16,SOUTH:5" //borgs
#define ui_borg_camera "CENTER+3:21,SOUTH:5" //borgs
#define ui_borg_album "CENTER+4:21,SOUTH:5" //borgs
#define ui_borg_talk_wheel "CENTER+4:21,SOUTH+1:5" //borgs
#define ui_borg_language_menu "CENTER+4:21,SOUTH+1:5" //borgs

#define ui_monkey_head "CENTER-4:13,SOUTH:5" //monkey
#define ui_monkey_mask "CENTER-3:14,SOUTH:5" //monkey
Expand All @@ -70,7 +71,7 @@

#define ui_alien_storage_l "CENTER-2:14,SOUTH:5"//alien
#define ui_alien_storage_r "CENTER+1:18,SOUTH:5"//alien
#define ui_alien_talk_wheel "EAST-3:26,SOUTH:5" //alien
#define ui_alien_language_menu "EAST-3:26,SOUTH:5" //alien

#define ui_drone_drop "CENTER+1:18,SOUTH:5" //maintenance drones
#define ui_drone_pull "CENTER+2:2,SOUTH:5" //maintenance drones
Expand Down
5 changes: 5 additions & 0 deletions code/_onclick/hud/ai.dm
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,11 @@
..()
var/obj/screen/using

// Language menu
using = new /obj/screen/language_menu
using.screen_loc = ui_borg_language_menu
static_inventory += using

//AI core
using = new /obj/screen/ai/aicore()
using.screen_loc = ui_ai_core
Expand Down
5 changes: 2 additions & 3 deletions code/_onclick/hud/alien.dm
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@
H.leap_icon.screen_loc = ui_alien_storage_r
static_inventory += H.leap_icon

using = new/obj/screen/wheel/talk
using.screen_loc = ui_alien_talk_wheel
wheels += using
using = new/obj/screen/language_menu
using.screen_loc = ui_alien_language_menu
static_inventory += using

using = new /obj/screen/drop()
Expand Down
5 changes: 2 additions & 3 deletions code/_onclick/hud/alien_larva.dm
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@
pull_icon.screen_loc = ui_pull_resist
hotkeybuttons += pull_icon

using = new/obj/screen/wheel/talk
using.screen_loc = ui_alien_talk_wheel
wheels += using
using = new/obj/screen/language_menu
using.screen_loc = ui_alien_language_menu
static_inventory += using

zone_select = new /obj/screen/zone_sel/alien()
Expand Down
14 changes: 0 additions & 14 deletions code/_onclick/hud/hud.dm
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
var/obj/screen/throw_icon
var/obj/screen/module_store_icon

var/list/wheels = list() //list of the wheel screen objects

var/list/static_inventory = list() //the screen objects which are static
var/list/toggleable_inventory = list() //the screen objects which can be hidden
var/list/obj/screen/hotkeybuttons = list() //the buttons that can be used via hotkeys
Expand Down Expand Up @@ -78,8 +76,6 @@
qdel(module_store_icon)
module_store_icon = null

wheels = null //all wheels are also in static_inventory

if(static_inventory.len)
for(var/thing in static_inventory)
qdel(thing)
Expand Down Expand Up @@ -226,16 +222,6 @@
/datum/hud/proc/persistent_inventory_update(mob/viewer)
if(!mymob)
return
var/mob/living/L = mymob

var/mob/screenmob = viewer || L

for(var/X in wheels)
var/obj/screen/wheel/W = X
if(W.toggled)
screenmob.client.screen |= W.buttons_list
else
screenmob.client.screen -= W.buttons_list

//Triggered when F12 is pressed (Unless someone changed something in the DMF)
/mob/verb/button_pressed_F12()
Expand Down
3 changes: 1 addition & 2 deletions code/_onclick/hud/human.dm
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,8 @@
using.icon = ui_style
static_inventory += using

using = new/obj/screen/wheel/talk
using = new/obj/screen/language_menu
using.icon = ui_style
wheels += using
static_inventory += using

using = new /obj/screen/area_creator
Expand Down
3 changes: 1 addition & 2 deletions code/_onclick/hud/monkey.dm
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
using.screen_loc = ui_movi
static_inventory += using

using = new/obj/screen/wheel/talk
using = new/obj/screen/language_menu
using.icon = ui_style
wheels += using
static_inventory += using

using = new /obj/screen/drop()
Expand Down
Loading

0 comments on commit 55c1dff

Please sign in to comment.