mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-30 00:30:06 +01:00
+3
-3
@@ -12,7 +12,7 @@ Version 1 never existed.
|
||||
To set up the exonet link, define a variable on your desired atom it is like this;
|
||||
var/datum/exonet_protocol/exonet = null
|
||||
Afterwards, before you want to do networking, call exonet = New(src), then exonet.make_address(string), and give it a string to hash into the new IP.
|
||||
The reason it needs a string is so you can have the addresses be persistant, assuming no-one already took it first.
|
||||
The reason it needs a string is so you can have the addresses be persistent, assuming no-one already took it first.
|
||||
|
||||
When you're no longer wanting to use the address and want to free it up, like when you want to Destroy() it, you need to call remove_address()
|
||||
|
||||
@@ -47,7 +47,7 @@ var/global/list/all_exonet_connections = list()
|
||||
|
||||
// Proc: make_address()
|
||||
// Parameters: 1 (string - used to make into a hash that will be part of the new address)
|
||||
// Description: Allocates a new address based on the string supplied. It results in consistant addresses for each round assuming it is not already taken..
|
||||
// Description: Allocates a new address based on the string supplied. It results in consistent addresses for each round assuming it is not already taken..
|
||||
/datum/exonet_protocol/proc/make_address(var/string)
|
||||
if(string)
|
||||
var/new_address = null
|
||||
@@ -118,7 +118,7 @@ var/global/list/all_exonet_connections = list()
|
||||
// Proc: send_message()
|
||||
// Parameters: 3 (target_address - the desired address to send the message to, data_type - text stating what the content is meant to be used for,
|
||||
// content - the actual 'message' being sent to the address)
|
||||
// Description: Sends the message to target_address, by calling receive_message() on the desired datum. Returns true if the message is recieved.
|
||||
// Description: Sends the message to target_address, by calling receive_message() on the desired datum. Returns true if the message is received.
|
||||
/datum/exonet_protocol/proc/send_message(var/target_address, var/data_type, var/content)
|
||||
if(!address)
|
||||
return FALSE
|
||||
|
||||
@@ -173,7 +173,7 @@
|
||||
artist = "Quimorucru"
|
||||
title = "Salut John"
|
||||
song = 'sound/music/salutjohn.ogg'
|
||||
album = "Un m�chant party"
|
||||
album = "Un méchant party"
|
||||
license = /decl/license/cc_by_nc_nd_4_0
|
||||
url = "http://freemusicarchive.org/music/Quimorucru/Un_mchant_party/Quimorucru_-_Un_mchant_party__Compilation__-_20_Salut_John"
|
||||
|
||||
|
||||
@@ -163,7 +163,7 @@
|
||||
* Register to listen for a signal from the passed in target
|
||||
*
|
||||
* This sets up a listening relationship such that when the target object emits a signal
|
||||
* the source datum this proc is called upon, will recieve a callback to the given proctype
|
||||
* the source datum this proc is called upon, will receive a callback to the given proctype
|
||||
* Return values from procs registered must be a bitfield
|
||||
*
|
||||
* Arguments:
|
||||
|
||||
@@ -46,8 +46,8 @@
|
||||
/datum/locations/kallo
|
||||
name = "Kal'lo"
|
||||
desc = "A relatively recent city compared to the other major cities of the planet, Kal'lo quickly rose in status by fathering some of the most \
|
||||
important figures of modern skrellian society. It is notably the birthplace of Xikrra Kol'goa, who wrote the Lo'glo'mog'rri in 46 BCE, \
|
||||
the constitutional code that is still used by most of the skrellian states in the galaxy."
|
||||
important figures of modern Skrellian society. It is notably the birthplace of Xikrra Kol'goa, who wrote the Lo'glo'mog'rri in 46 BCE, \
|
||||
the constitutional code that is still used by most of the Skrellian states in the galaxy."
|
||||
|
||||
/datum/locations/glimorr
|
||||
name = "Gli'morr"
|
||||
|
||||
@@ -122,7 +122,7 @@
|
||||
desc = "The larger world that Ahdomai orbits. It is often mythologically associated as S'randarr's Shield, and is informally known \
|
||||
as Shield among the Tajaran and formally among the humans. It is uninhabitable, as it has a largely methane atmosphere and lacks water \
|
||||
or other features necessary to life. Nonetheless, a domed, underdeveloped colony exists, called Hran'vasa, heavily funded by Osiris Atmospherics, \
|
||||
practically the only non-Ahdomain official holding for the Tajaran race. It is incredibly dependant on outside support and imports for life, \
|
||||
practically the only non-Ahdomain official holding for the Tajaran race. It is incredibly dependent on outside support and imports for life, \
|
||||
but has a high export of noble gasses for corporate use."
|
||||
|
||||
/datum/locations/messa
|
||||
@@ -132,5 +132,5 @@
|
||||
|
||||
/datum/locations/al_benj_sri
|
||||
name = "Al-Benj S'ri"
|
||||
desc = "An astroid belt seperating S'randarr and Messa from Ahdomai. This is known also as \"The Sea of Souls\". Those sould in Al-Benj S'ri \
|
||||
desc = "An asteroid belt separating S'randarr and Messa from Ahdomai. This is known also as \"The Sea of Souls\". Those sold in Al-Benj S'ri \
|
||||
are said to be in limbo between S'randarr and Messa, as they both fight over them."
|
||||
@@ -60,7 +60,7 @@
|
||||
#define MORSE_DASH "-"
|
||||
#define MORSE_BASE_DELAY 1 // If you change this you will also need to change [dot|dash]_soundfile variables.
|
||||
|
||||
// This implements an automatic conversion of text (the sequence) into audible morse code.
|
||||
// This implements an automatic conversion of text (the sequence) into audible Morse code.
|
||||
// This can be useful for flavor purposes. For 'real' usage its suggested to also display the sequence in text form, for the benefit of those without sound.
|
||||
/datum/looping_sound/sequence/morse
|
||||
// This is just to pass validation in the base type.
|
||||
@@ -85,9 +85,9 @@
|
||||
var/spaces_between_words = MORSE_BASE_DELAY * 7 // How many spaces are between different words.
|
||||
|
||||
// Morse Alphabet.
|
||||
// Note that it is case-insensative. 'A' and 'a' will make the same sounds.
|
||||
// Note that it is case-insensitive. 'A' and 'a' will make the same sounds.
|
||||
// Unfortunately there isn't a nice way to implement procedure signs w/o the space inbetween the letters.
|
||||
// Also some of the punctuation isn't super offical/widespread in real life but its the future so *shrug.
|
||||
// Also some of the punctuation isn't super official/widespread in real life but its the future so *shrug.
|
||||
var/static/list/morse_alphabet = list(
|
||||
"A" = list("*", "-"),
|
||||
"B" = list("-", "*", "*", "*"),
|
||||
@@ -149,14 +149,14 @@
|
||||
|
||||
|
||||
/datum/looping_sound/sequence/morse/process_data(letter)
|
||||
letter = uppertext(letter) // Make it case-insensative.
|
||||
letter = uppertext(letter) // Make it case-insensitive.
|
||||
|
||||
// If it's whitespace, treat it as a (Morse) space.
|
||||
if(letter == " ")
|
||||
return spaces_between_words
|
||||
|
||||
if(!(letter in morse_alphabet))
|
||||
CRASH("Encountered invalid character in morse sequence \"[letter]\".")
|
||||
CRASH("Encountered invalid character in Morse sequence \"[letter]\".")
|
||||
|
||||
// So I heard you like sequences...
|
||||
// Play a sequence of sounds while inside the current iteration of the outer sequence.
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
/datum/managed_browser/feedback_viewer/New(client/new_client)
|
||||
if(!check_rights(R_ADMIN|R_DEBUG|R_EVENT, new_client)) // Just in case someone figures out a way to spawn this as non-staff.
|
||||
message_admins("[new_client] tried to view feedback with insufficent permissions.")
|
||||
message_admins("[new_client] tried to view feedback with insufficient permissions.")
|
||||
qdel(src)
|
||||
|
||||
..()
|
||||
@@ -110,7 +110,7 @@
|
||||
dat += "</body></html>"
|
||||
return dat.Join()
|
||||
|
||||
// Used to show the full version of feedback in a seperate window.
|
||||
// Used to show the full version of feedback in a separate window.
|
||||
/datum/managed_browser/feedback_viewer/proc/display_big_feedback(author, text)
|
||||
var/list/dat = list("<html><body>")
|
||||
dat += replacetext(text, "\n", "<br>")
|
||||
|
||||
+1
-1
@@ -517,7 +517,7 @@
|
||||
/mob/living/carbon/human/mind_initialize()
|
||||
. = ..()
|
||||
if(!mind.assigned_role)
|
||||
mind.assigned_role = "Assistant" //defualt
|
||||
mind.assigned_role = "Assistant" //default
|
||||
|
||||
//slime
|
||||
/mob/living/simple_mob/slime/mind_initialize()
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
return ..()
|
||||
|
||||
/datum/orbit/proc/Check(turf/targetloc, list/checked_already = list())
|
||||
//Avoid infinite loops for people who end up orbiting themself through another orbiter
|
||||
//Avoid infinite loops for people who end up orbiting themselves through another orbiter
|
||||
checked_already[src] = TRUE
|
||||
if (!orbiter)
|
||||
qdel(src)
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
// This is used to make things that are supposed to move while buckled more consistant and easier to handle code-wise.
|
||||
// This is used to make things that are supposed to move while buckled more consistent and easier to handle code-wise.
|
||||
|
||||
/datum/riding
|
||||
var/next_vehicle_move = 0 // Used for move delays
|
||||
var/vehicle_move_delay = 2 // Decisecond delay between movements, lower = faster, higher = slower
|
||||
var/keytype = null // Can give this a type to require the rider to hold the item type inhand to move the ridden atom.
|
||||
var/nonhuman_key_exemption = FALSE // If true, nonhumans who can't hold keys don't need them, like borgs and simplemobs.
|
||||
var/key_name = "the keys" // What the 'keys' for the thing being rided on would be called.
|
||||
var/key_name = "the keys" // What the 'keys' for the thing being ridden on would be called.
|
||||
var/atom/movable/ridden = null // The thing that the datum is attached to.
|
||||
var/only_one_driver = FALSE // If true, only the person in 'front' (first on list of riding mobs) can drive.
|
||||
|
||||
@@ -150,8 +150,8 @@
|
||||
/datum/riding/boat/small // 'Small' boats can hold up to two people.
|
||||
|
||||
/datum/riding/boat/small/get_offsets(pass_index) // list(dir = x, y, layer)
|
||||
var/H = 7 // Horizontal seperation.
|
||||
var/V = 5 // Vertical seperation.
|
||||
var/H = 7 // Horizontal separation.
|
||||
var/V = 5 // Vertical separation.
|
||||
var/O = 2 // Vertical offset.
|
||||
switch(pass_index)
|
||||
if(1) // Person in front.
|
||||
@@ -177,8 +177,8 @@
|
||||
/datum/riding/boat/big // 'Big' boats can hold up to five people.
|
||||
|
||||
/datum/riding/boat/big/get_offsets(pass_index) // list(dir = x, y, layer)
|
||||
var/H = 12 // Horizontal seperation. Halved when facing up-down.
|
||||
var/V = 4 // Vertical seperation.
|
||||
var/H = 12 // Horizontal separation. Halved when facing up-down.
|
||||
var/V = 4 // Vertical separation.
|
||||
var/O = 7 // Vertical offset.
|
||||
switch(pass_index)
|
||||
if(1) // Person in center front, first row.
|
||||
@@ -229,8 +229,8 @@
|
||||
only_one_driver = TRUE // Keep your hands to yourself back there!
|
||||
|
||||
/datum/riding/snowmobile/get_offsets(pass_index) // list(dir = x, y, layer)
|
||||
var/H = 3 // Horizontal seperation.
|
||||
var/V = 2 // Vertical seperation.
|
||||
var/H = 3 // Horizontal separation.
|
||||
var/V = 2 // Vertical separation.
|
||||
var/O = 2 // Vertical offset.
|
||||
switch(pass_index)
|
||||
if(1) // Person on front.
|
||||
|
||||
@@ -148,7 +148,7 @@
|
||||
access = access_medical_equip
|
||||
|
||||
/datum/supply_pack/voidsuits/medical/alt/tesh
|
||||
name = "Vey-Med Autoadaptive voidsuits (teshari)"
|
||||
name = "Vey-Med Autoadaptive voidsuits (Teshari)"
|
||||
contains = list(
|
||||
/obj/item/clothing/suit/space/void/medical/alt/tesh = 2,
|
||||
/obj/item/clothing/head/helmet/space/void/medical/alt/tesh = 2,
|
||||
@@ -156,7 +156,7 @@
|
||||
/obj/item/clothing/shoes/magboots = 2,
|
||||
/obj/item/tank/oxygen = 2
|
||||
)
|
||||
containername = "Vey-Med Autoadaptive voidsuit (teshari) crate"
|
||||
containername = "Vey-Med Autoadaptive voidsuit (Teshari) crate"
|
||||
|
||||
/datum/supply_pack/voidsuits/security
|
||||
name = "Security voidsuits"
|
||||
|
||||
+16
-16
@@ -71,7 +71,7 @@
|
||||
* Checks if the user exists, is a mob, the wires are attached to something (`holder`) and makes sure `interactable(user)` returns TRUE.
|
||||
* If all the checks succeed, open the TGUI interface for the user.
|
||||
*
|
||||
* Arugments:
|
||||
* Arguments:
|
||||
* * user - the mob trying to interact with the wires.
|
||||
*/
|
||||
/datum/wires/proc/Interact(mob/user)
|
||||
@@ -79,7 +79,7 @@
|
||||
tgui_interact(user)
|
||||
|
||||
/**
|
||||
* Base proc, intended to be overriden. Wire datum specific checks you want to run before the TGUI is shown to the user should go here.
|
||||
* Base proc, intended to be overridden. Wire datum specific checks you want to run before the TGUI is shown to the user should go here.
|
||||
*/
|
||||
/datum/wires/proc/interactable(mob/user)
|
||||
return TRUE
|
||||
@@ -262,7 +262,7 @@
|
||||
/**
|
||||
* Determines if the passed in wire is a dud or not. Returns TRUE if the wire is a dud, FALSE otherwise.
|
||||
*
|
||||
* Arugments:
|
||||
* Arguments:
|
||||
* * wire - a wire define, NOT a color. For example `WIRE_ELECTRIFY`.
|
||||
*/
|
||||
/datum/wires/proc/is_dud(wire)
|
||||
@@ -271,7 +271,7 @@
|
||||
/**
|
||||
* Returns TRUE if the wire that corresponds to the passed in color is a dud. FALSE otherwise.
|
||||
*
|
||||
* Arugments:
|
||||
* Arguments:
|
||||
* * color - a wire color.
|
||||
*/
|
||||
/datum/wires/proc/is_dud_color(color)
|
||||
@@ -280,7 +280,7 @@
|
||||
/**
|
||||
* Gets the wire associated with the color passed in.
|
||||
*
|
||||
* Arugments:
|
||||
* Arguments:
|
||||
* * color - a wire color.
|
||||
*/
|
||||
/datum/wires/proc/get_wire(color)
|
||||
@@ -289,7 +289,7 @@
|
||||
/**
|
||||
* Determines if the passed in wire is cut or not. Returns TRUE if it's cut, FALSE otherwise.
|
||||
*
|
||||
* Arugments:
|
||||
* Arguments:
|
||||
* * wire - a wire define, NOT a color. For example `WIRE_ELECTRIFY`.
|
||||
*/
|
||||
/datum/wires/proc/is_cut(wire)
|
||||
@@ -298,7 +298,7 @@
|
||||
/**
|
||||
* Determines if the wire associated with the passed in color, is cut or not. Returns TRUE if it's cut, FALSE otherwise.
|
||||
*
|
||||
* Arugments:
|
||||
* Arguments:
|
||||
* * wire - a wire color.
|
||||
*/
|
||||
/datum/wires/proc/is_color_cut(color)
|
||||
@@ -313,7 +313,7 @@
|
||||
/**
|
||||
* Cut or mend a wire. Calls `on_cut()`.
|
||||
*
|
||||
* Arugments:
|
||||
* Arguments:
|
||||
* * wire - a wire define, NOT a color. For example `WIRE_ELECTRIFY`.
|
||||
*/
|
||||
/datum/wires/proc/cut(wire)
|
||||
@@ -327,7 +327,7 @@
|
||||
/**
|
||||
* Cut the wire which corresponds with the passed in color.
|
||||
*
|
||||
* Arugments:
|
||||
* Arguments:
|
||||
* * color - a wire color.
|
||||
*/
|
||||
/datum/wires/proc/cut_color(color)
|
||||
@@ -349,10 +349,10 @@
|
||||
/**
|
||||
* Proc called when any wire is cut.
|
||||
*
|
||||
* Base proc, intended to be overriden.
|
||||
* Base proc, intended to be overridden.
|
||||
* Place an behavior you want to happen when certain wires are cut, into this proc.
|
||||
*
|
||||
* Arugments:
|
||||
* Arguments:
|
||||
* * wire - a wire define, NOT color. For example 'WIRE_ELECTRIFY'.
|
||||
* * mend - TRUE if we're mending the wire. FALSE if we're cutting.
|
||||
*/
|
||||
@@ -362,7 +362,7 @@
|
||||
/**
|
||||
* Pulses the given wire. Calls `on_pulse()`.
|
||||
*
|
||||
* Arugments:
|
||||
* Arguments:
|
||||
* * wire - a wire define, NOT a color. For example `WIRE_ELECTRIFY`.
|
||||
*/
|
||||
/datum/wires/proc/pulse(wire)
|
||||
@@ -373,7 +373,7 @@
|
||||
/**
|
||||
* Pulses the wire associated with the given color.
|
||||
*
|
||||
* Arugments:
|
||||
* Arguments:
|
||||
* * wire - a wire color.
|
||||
*/
|
||||
/datum/wires/proc/pulse_color(color)
|
||||
@@ -382,10 +382,10 @@
|
||||
/**
|
||||
* Proc called when any wire is pulsed.
|
||||
*
|
||||
* Base proc, intended to be overriden.
|
||||
* Base proc, intended to be overridden.
|
||||
* Place behavior you want to happen when certain wires are pulsed, into this proc.
|
||||
*
|
||||
* Arugments:
|
||||
* Arguments:
|
||||
* * wire - a wire define, NOT color. For example 'WIRE_ELECTRIFY'.
|
||||
*/
|
||||
/datum/wires/proc/on_pulse(wire)
|
||||
@@ -396,7 +396,7 @@
|
||||
*
|
||||
* Searches through the `assemblies` list for the wire that the signaler is attached to. Pulses the wire when it's found.
|
||||
*
|
||||
* Arugments:
|
||||
* Arguments:
|
||||
* * S - the attached signaler receiving the signal.
|
||||
*/
|
||||
/datum/wires/proc/pulse_assembly(obj/item/assembly/signaler/S)
|
||||
|
||||
Reference in New Issue
Block a user