mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
Merge remote-tracking branch 'remotes/git-svn' into bs12_with_tgport
Conflicts: code/ATMOSPHERICS/pipes.dm code/datums/organs/organ_external.dm code/game/gamemodes/changeling/modularchangling.dm code/game/gamemodes/events.dm code/game/gamemodes/events/ninja_equipment.dm code/game/hud.dm code/game/jobs/job/captain.dm code/game/machinery/atmoalter/area_atmos_computer.dm code/game/machinery/recharger.dm code/game/objects/hud.dm code/game/turfs/turf.dm code/modules/client/client defines.dm code/modules/clothing/head/misc.dm code/modules/clothing/spacesuits/rig.dm code/modules/clothing/under/miscellaneous.dm code/modules/mob/living/carbon/alien/humanoid/hud.dm code/modules/mob/living/carbon/human/hud.dm code/modules/mob/living/carbon/human/update_icons.dm code/modules/mob/living/carbon/monkey/hud.dm code/modules/mob/mob_cleanup.dm code/modules/mob/mob_defines.dm code/modules/mob/mob_helpers.dm code/modules/mob/mob_movement.dm code/modules/mob/screen.dm code/modules/paperwork/filingcabinet.dm code/modules/power/cable_heavyduty.dm code/modules/projectiles/guns/energy/temperature.dm code/setup.dm config/game_options.txt icons/mob/screen1_Midnight.dmi icons/mob/screen1_Orange.dmi icons/mob/screen1_alien.dmi icons/mob/screen1_old.dmi icons/obj/atmospherics/passive_gate.dmi icons/obj/pipe-item.dmi interface/interface.dm
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
var/oldenergy = energy
|
||||
energy = min(energy + addenergy, max_energy)
|
||||
if(energy != oldenergy)
|
||||
use_power(2000) // This thing uses up alot of power (this is still low as shit for creating reagents from thin air)
|
||||
use_power(3000) // This thing uses up alot of power (this is still low as shit for creating reagents from thin air)
|
||||
|
||||
/obj/machinery/chem_dispenser/power_change()
|
||||
if(powered())
|
||||
@@ -761,7 +761,7 @@
|
||||
O.contents -= G
|
||||
G.loc = src
|
||||
holdingitems += G
|
||||
if((holdingitems && holdingitems.len >= limit) || beaker.reagents.total_volume >= 80) //Sanity checking so the blender doesn't overfill
|
||||
if(holdingitems && holdingitems.len >= limit) //Sanity checking so the blender doesn't overfill
|
||||
user << "You fill the All-In-One grinder to the brim."
|
||||
break
|
||||
|
||||
|
||||
@@ -302,6 +302,9 @@ datum
|
||||
holder.remove_reagent("carpotoxin", 1)
|
||||
if(holder.has_reagent("zombiepowder"))
|
||||
holder.remove_reagent("zombiepowder", 0.5)
|
||||
if(holder.has_reagent("LSD"))
|
||||
holder.remove_reagent("LSD", 2)
|
||||
M.hallucination = max(0, M.hallucination - 5)
|
||||
M.adjustToxLoss(-2)
|
||||
..()
|
||||
return
|
||||
@@ -635,25 +638,38 @@ datum
|
||||
if(!istype(M, /mob/living))
|
||||
return
|
||||
if(method == TOUCH)
|
||||
if(istype(M, /mob/living/carbon/human))
|
||||
if(ishuman(M))
|
||||
var/mob/living/carbon/human/H = M
|
||||
|
||||
if(H.wear_mask)
|
||||
del (H.wear_mask)
|
||||
H.update_inv_wear_mask()
|
||||
H << "\red Your mask melts away but protects you from the acid!"
|
||||
if(!H.wear_mask.unacidable)
|
||||
del (H.wear_mask)
|
||||
H.update_inv_wear_mask()
|
||||
H << "\red Your mask melts away but protects you from the acid!"
|
||||
else
|
||||
H << "\red Your mask protects you from the acid!"
|
||||
return
|
||||
|
||||
if(H.head)
|
||||
del (H.head)
|
||||
H.update_inv_head()
|
||||
H << "\red Your helmet melts into uselessness but protects you from the acid!"
|
||||
if(prob(15) && !H.head.unacidable)
|
||||
del(H.head)
|
||||
H.update_inv_head()
|
||||
H << "\red Your helmet melts away but protects you from the acid"
|
||||
else
|
||||
H << "\red Your helmet protects you from the acid!"
|
||||
return
|
||||
else if(istype(M, /mob/living/carbon/monkey))
|
||||
|
||||
else if(ismonkey(M))
|
||||
var/mob/living/carbon/monkey/MK = M
|
||||
if(MK.wear_mask)
|
||||
del (MK.wear_mask)
|
||||
MK.update_inv_wear_mask()
|
||||
MK << "\red Your mask melts away but protects you from the acid!"
|
||||
if(!MK.wear_mask.unacidable)
|
||||
del (MK.wear_mask)
|
||||
MK.update_inv_wear_mask()
|
||||
MK << "\red Your mask melts away but protects you from the acid!"
|
||||
else
|
||||
MK << "\red Your mask protects you from the acid!"
|
||||
return
|
||||
|
||||
if(!M.unacidable)
|
||||
if(prob(15) && istype(M, /mob/living/carbon/human) && volume >= 30)
|
||||
var/mob/living/carbon/human/H = M
|
||||
@@ -697,15 +713,21 @@ datum
|
||||
if(method == TOUCH)
|
||||
if(ishuman(M))
|
||||
var/mob/living/carbon/human/H = M
|
||||
|
||||
if(H.wear_mask)
|
||||
del (H.wear_mask)
|
||||
H << "\red Your mask melts away!"
|
||||
if(!H.wear_mask.unacidable)
|
||||
del (H.wear_mask)
|
||||
H.update_inv_wear_mask()
|
||||
H << "\red Your mask melts away but protects you from the acid!"
|
||||
else
|
||||
H << "\red Your mask protects you from the acid!"
|
||||
return
|
||||
|
||||
if(H.head)
|
||||
if(prob(15))
|
||||
if(prob(15) && !H.head.unacidable)
|
||||
del(H.head)
|
||||
H.update_inv_head()
|
||||
H << "\red Your helmet melts from the acid!"
|
||||
H << "\red Your helmet melts away but protects you from the acid"
|
||||
else
|
||||
H << "\red Your helmet protects you from the acid!"
|
||||
return
|
||||
@@ -715,16 +737,20 @@ datum
|
||||
if(affecting.take_damage(15, 0))
|
||||
H.UpdateDamageIcon()
|
||||
H.emote("scream")
|
||||
else
|
||||
if(ismonkey(M))
|
||||
var/mob/living/carbon/monkey/MK = M
|
||||
if(MK.wear_mask)
|
||||
else if(ismonkey(M))
|
||||
var/mob/living/carbon/monkey/MK = M
|
||||
|
||||
if(MK.wear_mask)
|
||||
if(!MK.wear_mask.unacidable)
|
||||
del (MK.wear_mask)
|
||||
MK.update_inv_wear_mask()
|
||||
MK << "\red Your mask melts away but protects you from the acid!"
|
||||
return
|
||||
if(!MK.unacidable)
|
||||
MK.take_organ_damage(min(15, volume * 4)) // same deal as sulphuric acid
|
||||
else
|
||||
MK << "\red Your mask protects you from the acid!"
|
||||
return
|
||||
|
||||
if(!MK.unacidable)
|
||||
MK.take_organ_damage(min(15, volume * 4)) // same deal as sulphuric acid
|
||||
else
|
||||
if(!M.unacidable)
|
||||
if(ishuman(M))
|
||||
@@ -1278,6 +1304,9 @@ datum
|
||||
holder.remove_reagent("carpotoxin", 5)
|
||||
if(holder.has_reagent("zombiepowder"))
|
||||
holder.remove_reagent("zombiepowder", 5)
|
||||
if(holder.has_reagent("LSD"))
|
||||
holder.remove_reagent("LSD", 5)
|
||||
M.hallucination = 0
|
||||
M.setBrainLoss(0)
|
||||
M.disabilities = 0
|
||||
M.sdisabilities = 0
|
||||
@@ -1316,6 +1345,9 @@ datum
|
||||
M.AdjustParalysis(-1)
|
||||
M.AdjustStunned(-1)
|
||||
M.AdjustWeakened(-1)
|
||||
if(holder.has_reagent("LSD"))
|
||||
holder.remove_reagent("LSD", 5)
|
||||
M.hallucination = max(0, M.hallucination - 10)
|
||||
if(prob(60)) M.adjustToxLoss(1)
|
||||
..()
|
||||
return
|
||||
|
||||
@@ -101,6 +101,17 @@
|
||||
reagents.add_reagent("nutriment", 1+round((potency / 10), 1))
|
||||
bitesize = 1+round(reagents.total_volume / 2, 1)
|
||||
|
||||
/obj/item/weapon/reagent_containers/food/snacks/grown/cherries
|
||||
seed = "/obj/item/seeds/cherryseed"
|
||||
name = "cherries"
|
||||
desc = "Great for toppings!"
|
||||
icon_state = "cherry"
|
||||
New()
|
||||
..()
|
||||
spawn(5) //So potency can be set in the proc that creates these crops
|
||||
reagents.add_reagent("nutriment", 1+round((potency / 15), 1))
|
||||
reagents.add_reagent("sugar", 1+round((potency / 15), 1))
|
||||
bitesize = 1+round(reagents.total_volume / 2, 1)
|
||||
|
||||
/obj/item/weapon/reagent_containers/food/snacks/grown/poppy
|
||||
seed = "/obj/item/seeds/poppyseed"
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
|
||||
afterattack(obj/target, mob/user , flag)
|
||||
|
||||
if(target.is_open_container() == 1 && target.reagents)
|
||||
if(target.is_open_container() != 0 && target.reagents)
|
||||
if(!target.reagents.total_volume)
|
||||
user << "\red [target] is empty. Cant dissolve pill."
|
||||
return
|
||||
@@ -180,4 +180,4 @@
|
||||
icon_state = "pill18"
|
||||
New()
|
||||
..()
|
||||
reagents.add_reagent("bicaridine", 30)
|
||||
reagents.add_reagent("bicaridine", 30)
|
||||
|
||||
Reference in New Issue
Block a user