mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-02 13:32:32 +00:00
Merge branch 'master' into development
This commit is contained in:
@@ -153,6 +153,7 @@
|
||||
if (!(user in view(2)) && user!=src.loc) return
|
||||
|
||||
user << "The IV drip is [mode ? "injecting" : "taking blood"]."
|
||||
user << "<span class='notice'>The transfer rate is set to [src.transfer_amount] u/sec</span>"
|
||||
|
||||
if(beaker)
|
||||
if(beaker.reagents && beaker.reagents.reagent_list.len)
|
||||
@@ -177,7 +178,7 @@
|
||||
return
|
||||
set_rate:
|
||||
var/amount = input("Set transfer rate as u/sec (between 4 and 0.001)") as num
|
||||
if ((0.001 > transfer_amount || transfer_amount > 4) && transfer_amount != 0)
|
||||
if ((0.001 > amount || amount > 4) && amount != 0)
|
||||
usr << "<span class='warning'>Entered value must be between 0.001 and 4.</span>"
|
||||
goto set_rate
|
||||
if (transfer_amount == 0)
|
||||
|
||||
@@ -509,22 +509,9 @@ steam.start() -- spawns the effect
|
||||
M << "\red The solution violently explodes."
|
||||
|
||||
explosion(
|
||||
location,
|
||||
round(min(devst, BOMBCAP_DVSTN_RADIUS)),
|
||||
round(min(heavy, BOMBCAP_HEAVY_RADIUS)),
|
||||
round(min(light, BOMBCAP_LIGHT_RADIUS)),
|
||||
location,
|
||||
round(min(devst, BOMBCAP_DVSTN_RADIUS)),
|
||||
round(min(heavy, BOMBCAP_HEAVY_RADIUS)),
|
||||
round(min(light, BOMBCAP_LIGHT_RADIUS)),
|
||||
round(min(flash, BOMBCAP_FLASH_RADIUS))
|
||||
)
|
||||
|
||||
proc/holder_damage(var/atom/holder)
|
||||
if(holder)
|
||||
var/dmglevel = 4
|
||||
|
||||
if (round(amount/8) > 0)
|
||||
dmglevel = 1
|
||||
else if (round(amount/4) > 0)
|
||||
dmglevel = 2
|
||||
else if (round(amount/2) > 0)
|
||||
dmglevel = 3
|
||||
|
||||
if(dmglevel<4) holder.ex_act(dmglevel)
|
||||
|
||||
@@ -59,12 +59,16 @@
|
||||
|
||||
var/params[] = list(":ckey" = owner.current.client.ckey, ":char_id" = owner.current.client.prefs.current_character, ":char_faction" = INDEP, ":obj_type" = type_name, ":obj_side" = side, ":obj_outcome" = completed)
|
||||
|
||||
var/list/faction_data = contest_faction_data(get_query.item[1])
|
||||
params[":char_faction"] = faction_data[1]
|
||||
if (get_query.NextRow())
|
||||
var/list/faction_data = contest_faction_data(get_query.item[1])
|
||||
params[":char_faction"] = faction_data[1]
|
||||
|
||||
var/DBQuery/log_query = dbcon.NewQuery("INSERT INTO ss13_contest_reports (id, player_ckey, character_id, character_faction, objective_type, objective_side, objective_outcome, objective_datetime) VALUES (NULL, :ckey, :char_id, :char_faction, :obj_type, :obj_side, :obj_outcome, NOW())")
|
||||
log_query.Execute(params)
|
||||
|
||||
if (log_query.ErrorMsg())
|
||||
log_debug("CONTEST: Error uploading results. Datadump: [list2params(params)]")
|
||||
|
||||
/*
|
||||
* Pro-synth objectives
|
||||
*/
|
||||
@@ -161,6 +165,9 @@
|
||||
|
||||
return ..()
|
||||
|
||||
/datum/objective/competition/pro_synth/protect
|
||||
type_name = "pro_synth/protect"
|
||||
|
||||
/datum/objective/competition/pro_synth/protect/find_target()
|
||||
..(1)
|
||||
if (target && target.current)
|
||||
@@ -245,6 +252,9 @@
|
||||
|
||||
return ..()
|
||||
|
||||
/datum/objective/competition/anti_synth/demote
|
||||
type_name = "anti_synth/demote"
|
||||
|
||||
/datum/objective/competition/anti_synth/demote/find_target()
|
||||
..(1)
|
||||
if (target && target.current)
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
|
||||
wander = 0
|
||||
|
||||
health = 10
|
||||
maxHealth = 10
|
||||
health = 25
|
||||
maxHealth = 25
|
||||
hunger_enabled = 0
|
||||
|
||||
attacktext = "shocked"
|
||||
@@ -212,10 +212,12 @@
|
||||
if(camera)
|
||||
camera.status = 0
|
||||
|
||||
held_item.loc = src.loc
|
||||
held_item = null
|
||||
if (held_item)
|
||||
held_item.loc = src.loc
|
||||
held_item = null
|
||||
|
||||
gibs(loc, viruses, null, null, /obj/effect/gibspawner/robot) //TODO: use gib() or refactor spiderbots into synthetics.
|
||||
eject_brain()
|
||||
gibs(loc, viruses, null, /obj/effect/gibspawner/robot) //TODO: use gib() or refactor spiderbots into synthetics.
|
||||
qdel(src)
|
||||
return
|
||||
|
||||
|
||||
@@ -4,6 +4,41 @@
|
||||
return 1
|
||||
return 0
|
||||
|
||||
/proc/ishuman_species(A)
|
||||
if(istype(A, /mob/living/carbon/human) && (A:get_species() == "Human"))
|
||||
return 1
|
||||
return 0
|
||||
|
||||
/proc/isunathi(A)
|
||||
if(istype(A, /mob/living/carbon/human) && (A:get_species() == "Unathi"))
|
||||
return 1
|
||||
return 0
|
||||
|
||||
/proc/istajara(A)
|
||||
if(istype(A, /mob/living/carbon/human) && (A:get_species() == "Tajara"))
|
||||
return 1
|
||||
return 0
|
||||
|
||||
/proc/isskrell(A)
|
||||
if(istype(A, /mob/living/carbon/human) && (A:get_species() == "Skrell"))
|
||||
return 1
|
||||
return 0
|
||||
|
||||
/proc/isvaurca(A)
|
||||
if(istype(A, /mob/living/carbon/human) && (A:get_species() == "Vaurca"))
|
||||
return 1
|
||||
return 0
|
||||
|
||||
/proc/isipc(A)
|
||||
if(istype(A, /mob/living/carbon/human) && (A:get_species() == "Machine"))
|
||||
return 1
|
||||
return 0
|
||||
|
||||
/proc/isvox(A)
|
||||
if(istype(A, /mob/living/carbon/human) && (A:get_species() == "Vox"))
|
||||
return 1
|
||||
return 0
|
||||
|
||||
/proc/isalien(A)
|
||||
if(istype(A, /mob/living/carbon/alien))
|
||||
return 1
|
||||
|
||||
@@ -476,7 +476,6 @@
|
||||
/datum/chemical_reaction/explosion_potassium/on_reaction(var/datum/reagents/holder, var/created_volume)
|
||||
var/datum/effect/effect/system/reagents_explosion/e = new()
|
||||
e.set_up(round (created_volume/10, 1), holder.my_atom, 0, 0)
|
||||
e.holder_damage(holder.my_atom)
|
||||
if(isliving(holder.my_atom))
|
||||
e.amount *= 0.5
|
||||
var/mob/living/L = holder.my_atom
|
||||
@@ -542,7 +541,6 @@
|
||||
/datum/chemical_reaction/nitroglycerin/on_reaction(var/datum/reagents/holder, var/created_volume)
|
||||
var/datum/effect/effect/system/reagents_explosion/e = new()
|
||||
e.set_up(round (created_volume/2, 1), holder.my_atom, 0, 0)
|
||||
e.holder_damage(holder.my_atom)
|
||||
if(isliving(holder.my_atom))
|
||||
e.amount *= 0.5
|
||||
var/mob/living/L = holder.my_atom
|
||||
@@ -1978,7 +1976,7 @@
|
||||
result = "white_coffee"
|
||||
required_reagents = list("milk" = 1, "blackcoffee" = 2)
|
||||
result_amount = 2
|
||||
|
||||
|
||||
//aurora's drinks
|
||||
|
||||
/datum/chemical_reaction/daiquiri
|
||||
@@ -2064,7 +2062,7 @@
|
||||
result = "deweycocktail"
|
||||
required_reagents = list("cremeyvette" = 1, "gin" = 1, "grenadine" = 1)
|
||||
result_amount = 3
|
||||
|
||||
|
||||
/datum/chemical_reaction/rustynail
|
||||
name = "Rusty Nail"
|
||||
id = "rustynail"
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
#define CHEM_TOUCH 1
|
||||
#define CHEM_INGEST 2
|
||||
#define CHEM_BLOOD 3
|
||||
#define MINIMUM_CHEMICAL_VOLUME 0.01
|
||||
#define MINIMUM_CHEMICAL_VOLUME 0.001
|
||||
#define SOLID 1
|
||||
#define LIQUID 2
|
||||
#define GAS 3
|
||||
|
||||
Reference in New Issue
Block a user