Merge branch 'master' into gatofication2
This commit is contained in:
@@ -163,12 +163,14 @@
|
||||
if(_codeword)
|
||||
codeword = _codeword
|
||||
else
|
||||
codeword = pick(strings("ion_laws.json", "ionabstract")\
|
||||
| strings("ion_laws.json", "ionobjects")\
|
||||
| strings("ion_laws.json", "ionadjectives")\
|
||||
| strings("ion_laws.json", "ionthreats")\
|
||||
| strings("ion_laws.json", "ionfood")\
|
||||
| strings("ion_laws.json", "iondrinks"))
|
||||
//GS13 Start: We're using our file
|
||||
codeword = pick(strings("ion_laws_gs.json", "ionabstract")\
|
||||
| strings("ion_laws_gs.json", "ionobjects")\
|
||||
| strings("ion_laws_gs.json", "ionadjectives")\
|
||||
| strings("ion_laws_gs.json", "ionthreats")\
|
||||
| strings("ion_laws_gs.json", "ionfood")\
|
||||
| strings("ion_laws_gs.json", "iondrinks"))
|
||||
//GS13 End
|
||||
|
||||
/datum/brain_trauma/severe/split_personality/brainwashing/on_gain()
|
||||
..()
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
#define MAX_STACK_PICKUP 30
|
||||
|
||||
/datum/component/storage/concrete/rped
|
||||
collection_mode = COLLECT_EVERYTHING
|
||||
allow_quick_gather = TRUE
|
||||
@@ -9,13 +11,61 @@
|
||||
max_items = 100
|
||||
display_numerical_stacking = TRUE
|
||||
|
||||
var/static/list/allowed_material_types = list(
|
||||
/obj/item/stack/sheet/glass,
|
||||
/obj/item/stack/sheet/plasteel,
|
||||
/obj/item/stack/cable_coil,
|
||||
)
|
||||
|
||||
var/static/list/allowed_bluespace_types = list(
|
||||
/obj/item/stack/ore/bluespace_crystal,
|
||||
/obj/item/stack/sheet/bluespace_crystal,
|
||||
)
|
||||
|
||||
/datum/component/storage/concrete/rped/can_be_inserted(obj/item/I, stop_messages, mob/M)
|
||||
. = ..()
|
||||
if(!I.get_part_rating())
|
||||
if (!stop_messages)
|
||||
to_chat(M, "<span class='warning'>[parent] only accepts machine parts!</span>")
|
||||
if(!.)
|
||||
return .
|
||||
|
||||
//we check how much of glass,plasteel & cable the user can insert
|
||||
if(isstack(I))
|
||||
//user tried to insert invalid stacktype
|
||||
if(!is_type_in_list(I, allowed_material_types) && !is_type_in_list(I, allowed_bluespace_types))
|
||||
return FALSE
|
||||
|
||||
var/obj/item/stack/the_stack = I
|
||||
var/present_amount = 0
|
||||
|
||||
//we try to count & limit how much the user can insert of each type to prevent them from using it as an normal storage medium
|
||||
for(var/obj/item/stack/stack_content in parent)
|
||||
//is user trying to insert any of these listed bluespace stuff
|
||||
if(is_type_in_list(I, allowed_bluespace_types))
|
||||
//if yes count total bluespace stuff is the RPED and then compare the total amount to the value the user is trying to insert
|
||||
if(is_type_in_list(stack_content, allowed_bluespace_types))
|
||||
present_amount += stack_content.amount
|
||||
//count other normal stack stuff
|
||||
else if(istype(I,stack_content.type))
|
||||
present_amount = stack_content.amount
|
||||
break
|
||||
|
||||
//no more storage for this specific stack type
|
||||
if(MAX_STACK_PICKUP - present_amount == 0)
|
||||
return FALSE
|
||||
|
||||
//we want the user to insert the exact stack amount which is available so we dont have to bother subtracting & leaving left overs for the user
|
||||
var/available = MAX_STACK_PICKUP-present_amount
|
||||
if(available - the_stack.amount < 0)
|
||||
return FALSE
|
||||
|
||||
else if(istype(I, /obj/item/circuitboard/machine) || istype(I, /obj/item/circuitboard/computer))
|
||||
return TRUE
|
||||
|
||||
//check normal insertion of other stock parts
|
||||
else if(!I.get_part_rating())
|
||||
return FALSE
|
||||
|
||||
return .
|
||||
|
||||
/datum/component/storage/concrete/rped/quick_empty(mob/M)
|
||||
var/atom/A = parent
|
||||
if(!M.canUseStorage() || !A.Adjacent(M) || M.incapacitated())
|
||||
@@ -52,13 +102,60 @@
|
||||
max_items = 350
|
||||
display_numerical_stacking = TRUE
|
||||
|
||||
var/static/list/allowed_material_types = list(
|
||||
/obj/item/stack/sheet/glass,
|
||||
/obj/item/stack/sheet/plasteel,
|
||||
/obj/item/stack/cable_coil,
|
||||
)
|
||||
|
||||
var/static/list/allowed_bluespace_types = list(
|
||||
/obj/item/stack/ore/bluespace_crystal,
|
||||
/obj/item/stack/sheet/bluespace_crystal,
|
||||
)
|
||||
|
||||
/datum/component/storage/concrete/bluespace/rped/can_be_inserted(obj/item/I, stop_messages, mob/M)
|
||||
. = ..()
|
||||
if(!I.get_part_rating())
|
||||
if (!stop_messages)
|
||||
to_chat(M, "<span class='warning'>[parent] only accepts machine parts!</span>")
|
||||
if(!.)
|
||||
return .
|
||||
|
||||
//we check how much of glass,plasteel & cable the user can insert
|
||||
if(isstack(I))
|
||||
//user tried to insert invalid stacktype
|
||||
if(!is_type_in_list(I, allowed_material_types) && !is_type_in_list(I, allowed_bluespace_types))
|
||||
return FALSE
|
||||
|
||||
var/obj/item/stack/the_stack = I
|
||||
var/present_amount = 0
|
||||
|
||||
//we try to count & limit how much the user can insert of each type to prevent them from using it as an normal storage medium
|
||||
for(var/obj/item/stack/stack_content in parent)
|
||||
//is user trying to insert any of these listed bluespace stuff
|
||||
if(is_type_in_list(I, allowed_bluespace_types))
|
||||
//if yes count total bluespace stuff is the RPED and then compare the total amount to the value the user is trying to insert
|
||||
if(is_type_in_list(stack_content, allowed_bluespace_types))
|
||||
present_amount += stack_content.amount
|
||||
//count other normal stack stuff
|
||||
else if(istype(I,stack_content.type))
|
||||
present_amount = stack_content.amount
|
||||
break
|
||||
|
||||
//no more storage for this specific stack type
|
||||
if(MAX_STACK_PICKUP - present_amount == 0)
|
||||
return FALSE
|
||||
|
||||
//we want the user to insert the exact stack amount which is available so we dont have to bother subtracting & leaving left overs for the user
|
||||
var/available = MAX_STACK_PICKUP-present_amount
|
||||
if(available - the_stack.amount < 0)
|
||||
return FALSE
|
||||
|
||||
else if(istype(I, /obj/item/circuitboard/machine) || istype(I, /obj/item/circuitboard/computer))
|
||||
return TRUE
|
||||
|
||||
//check normal insertion of other stock parts
|
||||
else if(!I.get_part_rating())
|
||||
return FALSE
|
||||
|
||||
return .
|
||||
|
||||
/datum/component/storage/concrete/bluespace/rped/quick_empty(mob/M)
|
||||
var/atom/A = parent
|
||||
@@ -85,3 +182,5 @@
|
||||
stoplag(1)
|
||||
progress.end_progress()
|
||||
A.do_squish(0.8, 1.2)
|
||||
|
||||
#undef MAX_STACK_PICKUP
|
||||
|
||||
@@ -138,12 +138,18 @@
|
||||
var/static/list/show_directions = list(SOUTH, WEST)
|
||||
if(H.mind && (H.mind.assigned_role != H.mind.special_role))
|
||||
var/assignment
|
||||
var/displayed_rank
|
||||
if(H.mind.assigned_role)
|
||||
assignment = H.mind.assigned_role
|
||||
else if(H.job)
|
||||
assignment = H.job
|
||||
else
|
||||
assignment = "Unassigned"
|
||||
if(C && C.prefs && C.prefs.alt_titles_preferences[assignment])
|
||||
assignment = C.prefs.alt_titles_preferences[assignment]
|
||||
|
||||
if(assignment)
|
||||
displayed_rank = C.prefs.alt_titles_preferences[assignment]
|
||||
|
||||
var/static/record_id_num = 1001
|
||||
var/id = num2hex(record_id_num++,6)
|
||||
@@ -166,7 +172,7 @@
|
||||
var/datum/data/record/G = new()
|
||||
G.fields["id"] = id
|
||||
G.fields["name"] = H.real_name
|
||||
G.fields["rank"] = assignment
|
||||
G.fields["rank"] = displayed_rank
|
||||
G.fields["age"] = H.age
|
||||
G.fields["species"] = H.dna.species.name
|
||||
G.fields["fingerprint"] = md5(H.dna.uni_identity)
|
||||
@@ -213,7 +219,7 @@
|
||||
var/datum/data/record/L = new()
|
||||
L.fields["id"] = md5("[H.real_name][H.mind.assigned_role]") //surely this should just be id, like the others?
|
||||
L.fields["name"] = H.real_name
|
||||
L.fields["rank"] = H.mind.assigned_role
|
||||
L.fields["rank"] = displayed_rank
|
||||
L.fields["age"] = H.age
|
||||
if(H.gender == MALE)
|
||||
G.fields["gender"] = "Male"
|
||||
|
||||
@@ -284,4 +284,4 @@
|
||||
weight = 2
|
||||
event_control_path = /datum/round_event_control/radiation_storm
|
||||
weight_multiplier = 1.5
|
||||
max_occurrences_modifier = 2
|
||||
max_occurrences_modifier = 0 //GS13 - radstorm bad
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
area_type = /area
|
||||
protected_areas = list(/area/maintenance, /area/ai_monitored/turret_protected/ai_upload, /area/ai_monitored/turret_protected/ai_upload_foyer,
|
||||
/area/ai_monitored/turret_protected/ai, /area/commons/storage/emergency/starboard, /area/commons/storage/emergency/port, /area/shuttle, /area/ruin/lavaland)
|
||||
/area/ai_monitored/turret_protected/ai, /area/commons/storage/emergency/starboard, /area/commons/storage/emergency/port, /area/shuttle, /area/ruin/lavaland, /area/commons/dorms, /area/service/bar) //GS13 Edit: Dorms and bar are safe...
|
||||
target_trait = ZTRAIT_STATION
|
||||
|
||||
immunity_type = TRAIT_RADSTORM_IMMUNE
|
||||
|
||||
Reference in New Issue
Block a user