mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-17 01:53:35 +01:00
Removes swiftness, add speed potions back as oil slick potions (#20939)
* Removes swiftness, add speed potions back as oil potions * no shorting, icon update on mob * early and forgotten returns * ramon oil colours * Update code/modules/research/xenobiology/xenobiology.dm Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> * no more slipery vehicles, now slippery tables * just because it compiled the first time doesn't mean the second list will compile idiot * icons my hated * bottle4 * cleaner up * qwerty my man what you doin: s34n 2023 --------- Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
@@ -877,3 +877,23 @@ GLOBAL_DATUM_INIT(welding_sparks, /mutable_appearance, mutable_appearance('icons
|
||||
|
||||
/obj/item/proc/remove_tape()
|
||||
return
|
||||
|
||||
/obj/item/water_act(volume, temperature, source, method)
|
||||
. = ..()
|
||||
if(HAS_TRAIT(src, TRAIT_OIL_SLICKED))
|
||||
slowdown = initial(slowdown)
|
||||
remove_atom_colour(FIXED_COLOUR_PRIORITY)
|
||||
REMOVE_TRAIT(src, TRAIT_OIL_SLICKED, "potion")
|
||||
if(ishuman(loc))
|
||||
var/mob/living/carbon/human/H = loc
|
||||
H.regenerate_icons()
|
||||
|
||||
/obj/item/cleaning_act(mob/user, atom/cleaner, cleanspeed, text_verb, text_description, text_targetname)
|
||||
. = ..()
|
||||
if(HAS_TRAIT(src, TRAIT_OIL_SLICKED))
|
||||
slowdown = initial(slowdown)
|
||||
remove_atom_colour(FIXED_COLOUR_PRIORITY)
|
||||
REMOVE_TRAIT(src, TRAIT_OIL_SLICKED, "potion")
|
||||
if(ishuman(loc))
|
||||
var/mob/living/carbon/human/H = loc
|
||||
H.regenerate_icons()
|
||||
|
||||
@@ -286,28 +286,6 @@
|
||||
block = GLOB.regenerateblock
|
||||
..()
|
||||
|
||||
/obj/item/dnainjector/runfast
|
||||
name = "DNA-Injector (Increase Run)"
|
||||
desc = "Running Man."
|
||||
datatype = DNA2_BUF_SE
|
||||
value = 0xFFF
|
||||
forcedmutation = TRUE
|
||||
|
||||
/obj/item/dnainjector/runfast/Initialize()
|
||||
block = GLOB.increaserunblock
|
||||
..()
|
||||
|
||||
/obj/item/dnainjector/antirunfast
|
||||
name = "DNA-Injector (Anti-Increase Run)"
|
||||
desc = "Walking Man."
|
||||
datatype = DNA2_BUF_SE
|
||||
value = 0x001
|
||||
forcedmutation = TRUE
|
||||
|
||||
/obj/item/dnainjector/antirunfast/Initialize()
|
||||
block = GLOB.increaserunblock
|
||||
..()
|
||||
|
||||
/obj/item/dnainjector/morph
|
||||
name = "DNA-Injector (Morph)"
|
||||
desc = "A total makeover."
|
||||
|
||||
@@ -36,6 +36,8 @@
|
||||
var/framestackamount = 2
|
||||
var/deconstruction_ready = TRUE
|
||||
var/flipped = FALSE
|
||||
///If this is true, the table will have items slide off it when placed.
|
||||
var/slippery = FALSE
|
||||
/// The minimum level of environment_smash required for simple animals to be able to one-shot this.
|
||||
var/minimum_env_smash = ENVIRONMENT_SMASH_WALLS
|
||||
|
||||
@@ -235,7 +237,12 @@
|
||||
//Clamp it so that the icon never moves more than 16 pixels in either direction (thus leaving the table turf)
|
||||
I.pixel_x = clamp(text2num(click_params["icon-x"]) - 16, -(world.icon_size/2), world.icon_size/2)
|
||||
I.pixel_y = clamp(text2num(click_params["icon-y"]) - 16, -(world.icon_size/2), world.icon_size/2)
|
||||
item_placed(I)
|
||||
if(slippery)
|
||||
step_away(I, user)
|
||||
visible_message("<span class='warning'>[I] slips right off [src]!</span>")
|
||||
playsound(loc, 'sound/misc/slip.ogg', 50, 1, -1)
|
||||
else //Don't want slippery moving tables to have the item attached to them if it slides off.
|
||||
item_placed(I)
|
||||
else
|
||||
return ..()
|
||||
|
||||
@@ -402,6 +409,14 @@
|
||||
return 1
|
||||
|
||||
|
||||
/obj/structure/table/water_act(volume, temperature, source, method)
|
||||
. = ..()
|
||||
if(HAS_TRAIT(src, TRAIT_OIL_SLICKED))
|
||||
slippery = initial(slippery)
|
||||
remove_atom_colour(FIXED_COLOUR_PRIORITY)
|
||||
REMOVE_TRAIT(src, TRAIT_OIL_SLICKED, "potion")
|
||||
|
||||
|
||||
/*
|
||||
* Glass Tables
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user