mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-01 13:12:23 +00:00
* fleshed out engi and asteroid * command work * more department fleshing out: sec * sec work * perma work * Update EmeraldStation.dmm * Update EmeraldStation.dmm * Update EmeraldStation.dmm * Update EmeraldStation.dmm * med and dorms fleshing out * sci and service fleshing out * Update EmeraldStation.dmm * APCs done + detailing * Update EmeraldStation.dmm * wire work * more wire work * wires and LIGHTS * ATMOS DONE now onto DECOR * AI/status monitors * intercoms and newscasters * Wall items and cameras! * Update EmeraldStation.dmm * Update EmeraldStation.dmm * Update EmeraldStation.dmm * Update EmeraldStation.dmm * Update EmeraldStation.dmm * moved the file to the correct area * bugfixes, starting up the map * refining the asteroid * merge fixes * logs of bugstomping * more bugfixing * bugfixing * bugfixin * trying to make the stupid lava work * adds plasma vent for test * more testing * swapped file places * vents work now! * Update paradise.dme * vent sprite update * file corrections * Asteroid MILLA changes * adds a new MILLA atmos type * Build MILLA * oopsie * fixes * removed testing code * reverts map start * reverts the atmos change * respriting geyser * comments * Update code/__DEFINES/atmospherics_defines.dm Co-authored-by: Charlie Nolan <funnyman3595@gmail.com> Signed-off-by: Kyani <65205627+EmeraldCandy@users.noreply.github.com> * Update geyser.dmi * Update paradise.dme * fixing past merges * adds some missing items from merges * reverting * reverts changes again * deleted unused file * oops forgot nearspace areas * Update code/game/objects/structures/plasma_geyser.dm Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com> Signed-off-by: Kyani <65205627+EmeraldCandy@users.noreply.github.com> * Update code/game/turfs/simulated/floor/lava.dm Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com> Signed-off-by: Kyani <65205627+EmeraldCandy@users.noreply.github.com> * Update code/game/area/ss13_areas/engineering_areas.dm Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com> Signed-off-by: Kyani <65205627+EmeraldCandy@users.noreply.github.com> * Update code/game/objects/structures/plasma_geyser.dm Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com> Signed-off-by: Kyani <65205627+EmeraldCandy@users.noreply.github.com> * Update code/game/turfs/simulated/floor/lava.dm Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com> Signed-off-by: Kyani <65205627+EmeraldCandy@users.noreply.github.com> * Update code/game/objects/structures/plasma_geyser.dm Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com> Signed-off-by: Kyani <65205627+EmeraldCandy@users.noreply.github.com> * Lots of map fixes * Update EmeraldStation.dmm * trying to unfuck the milla merge * removed station from dme * fixes/small tweaks/suggested changes * removed errant turret * redid telecomms * Update EmeraldStation.dmm * rebuilding everything * redoing security * more sec work * perma shaped up + more items * renamed properly this time * resetting atmos code * more secwork and move papers off varedits * more secwork + dorms + funeral services * added new areas + pipe/wires/floors * security electrified windows/wires/alarms/lights * cameras, dorms pipes/ires/alarms/apcs * merged * disposals * lots of wall things + added map datum for testing * pipe fix for linter * fiddled with maints * minor maint edits * fixes + maint work * more bugfix * even more bugfixing * MORE nearspace fixing * dumb nearspace fix * Update code/game/objects/structures/plasma_geyser.dm Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Signed-off-by: Kyani <65205627+EmeraldCandy@users.noreply.github.com> * a LOT of fixes + door access * disposal pipe update script * oops linter fixes * fixed viro button runtime * finished maints + space decor * removed hall light switches * fixed solars areas * removed errant lattice * remove agent B from asteroid * wall bump placement refining * apc fix * bugfixing * minor maint change * bugfixing * burn tile on node fix * changed official name * bugfixing * added genetics locker+figures * bug hunting (buttons mostly) * added firelocks. oops * added temp webmap + bugfix * Update emeraldstation.dmm * new webmap. again * added the perma tools * nanomaps * bug fixes, fixes, and more fixes * more tweaks * cable fix * more bugfixing * Update emeraldstation.dmm * tiny fix * fix AI sat turrets * more bugfixing * MORE bugfixing * bugfix + ruins soundfile * pipe bugfix * fixed toxins pipes. junctions bad? * swimwear :) * remove errant QM gps * rnd shutter button missing * potato layering fix * add bridge request console * fix window tint in interrogation * added some clothes * nanomaps2, asset boogaloo * modified an empty hall, added some perma cams, minor fixed * forgot to save before push oops * widens sci maint hall + bugfix * gives theatre its autodrobe back! * moved borg spawns * moves nuke op default spot * new asteroid mix + botany tweak * adds cremator button * new sign + moved pod + bugfixing * cable fix * engine, sci chem, and surgery tweaks * more bugfixes and tweaks * more tweaks * adds a few windows back to robotics * bar was missing pun pun! * corrected misplaced atmos machines * re-added the bathroom * fixes atmos waste disposal injector * modified mr potato * changed bathroom area * minor toxins tweak * small wall decor tweaks * removes errant lights * removes errant opier * LOTS of fixes/tweaks + adds CO2 to asteroid * gave maint some boxes + cable fix * duped brig lock * adds masks to medbay storage * adds missing gues passes * cleanup from kitchen rework * gives solars enough glass to complete it * adds another defib to cryo pods * makes asteroid sign fireproof * perma maint now opens with virus + bugfixs * bugfixing + adds missing holopads * more holopads + bugfix * adds some smoke vendors * kitchen area tweak * fixed errant rack * rearranged/spread out cig vendors * moved a cig machine again * added RD tint button * undid a brig area change * removed errant posters * added filing cabinets + bugfix * maint morgue tray fix * adjusted chapel + bugfix * fixed palms + minor sec floor tweak * adds forgotten magi and clown starts * gave engi a shower * reworked robotics + atmos bugfix * geysers now work at 1/10 capacity when overpressure * bugfixing + tweaked overrides/variables * rework warden office * bugfixes + adds some holopads * added missing bio shutter * more small tweaks * adds RnD rework + gives mag some things * fixed fabricators * tweaked robo + added rnd server board * added rnd backup circuit * bugfixing * bugfixing again * bugfixing * fabricator fix --------- Signed-off-by: Kyani <65205627+EmeraldCandy@users.noreply.github.com> Co-authored-by: paradisess13[bot] <165046124+paradisess13[bot]@users.noreply.github.com> Co-authored-by: Charlie Nolan <funnyman3595@gmail.com> Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com> Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com>
602 lines
15 KiB
Plaintext
602 lines
15 KiB
Plaintext
/obj/structure/flora
|
|
resistance_flags = FLAMMABLE
|
|
max_integrity = 150
|
|
|
|
//trees
|
|
/obj/structure/flora/tree
|
|
name = "tree"
|
|
anchored = TRUE
|
|
density = TRUE
|
|
pixel_x = -16
|
|
layer = 9
|
|
|
|
//Adds the transparency component, exists to be overridden for different args.
|
|
/obj/structure/flora/tree/Initialize(mapload)
|
|
. = ..()
|
|
AddComponent(/datum/component/largetransparency)
|
|
|
|
/obj/structure/flora/tree/pine
|
|
name = "pine tree"
|
|
icon = 'icons/obj/flora/pinetrees.dmi'
|
|
icon_state = "pine_1"
|
|
|
|
/obj/structure/flora/tree/pine/Initialize(mapload)
|
|
. = ..()
|
|
icon_state = "pine_[rand(1, 3)]"
|
|
|
|
/obj/structure/flora/tree/pine/xmas
|
|
name = "xmas tree"
|
|
icon = 'icons/obj/flora/pinetrees.dmi'
|
|
icon_state = "pine_c"
|
|
|
|
/obj/structure/flora/tree/dead
|
|
icon = 'icons/obj/flora/deadtrees.dmi'
|
|
icon_state = "tree_1"
|
|
|
|
/obj/structure/flora/tree/dead/Initialize(mapload)
|
|
. = ..()
|
|
AddComponent(/datum/component/largetransparency, 0, 1, 0, 0)
|
|
icon_state = "tree_[rand(1, 6)]"
|
|
|
|
/obj/structure/flora/tree/palm
|
|
icon = 'icons/misc/beach2.dmi'
|
|
icon_state = "palm1"
|
|
|
|
/obj/structure/flora/tree/palm/Initialize(mapload)
|
|
. = ..()
|
|
icon_state = pick("palm1","palm2")
|
|
|
|
/obj/structure/flora/tree/jungle
|
|
name = "tree"
|
|
icon_state = "tree"
|
|
desc = "It's seriously hampering your view of the jungle."
|
|
icon = 'icons/obj/flora/jungletrees.dmi'
|
|
pixel_x = -48
|
|
pixel_y = -20
|
|
///Hard ref to the tree's shadow
|
|
var/obj/effect/abstract/shadow/shadow_reference
|
|
|
|
/obj/structure/flora/tree/jungle/Initialize(mapload)
|
|
. = ..()
|
|
|
|
icon_state = "[icon_state][rand(1, 6)]"
|
|
add_transparency_component()
|
|
//Code to create and place the tree's shadow
|
|
shadow_reference = new /obj/effect/abstract/shadow(get_turf(src))
|
|
shadow_reference.pixel_x = pixel_x
|
|
shadow_reference.pixel_y = pixel_y
|
|
shadow_reference.icon = icon
|
|
shadow_reference.icon_state = "[icon_state]_shadow"
|
|
|
|
/obj/structure/flora/tree/jungle/Destroy()
|
|
QDEL_NULL(shadow_reference)
|
|
return ..()
|
|
|
|
/obj/structure/flora/tree/jungle/proc/add_transparency_component()
|
|
AddComponent(/datum/component/largetransparency, -1, 1, 2, 2)
|
|
|
|
/obj/structure/flora/tree/jungle/small
|
|
pixel_y = 0
|
|
pixel_x = -32
|
|
icon = 'icons/obj/flora/jungletreesmall.dmi'
|
|
|
|
/obj/structure/flora/tree/jungle/small/add_transparency_component()
|
|
AddComponent(/datum/component/largetransparency)
|
|
|
|
/obj/effect/abstract/shadow
|
|
name = "tree shadow, do not manually place"
|
|
desc = "If you see this something has gone wrong, scream for a coder."
|
|
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
|
|
invisibility = NONE
|
|
|
|
//grass
|
|
/obj/structure/flora/grass
|
|
name = "grass"
|
|
icon = 'icons/obj/flora/snowflora.dmi'
|
|
anchored = TRUE
|
|
max_integrity = 15
|
|
|
|
/obj/structure/flora/grass/brown
|
|
icon_state = "snowgrass1bb"
|
|
|
|
/obj/structure/flora/grass/brown/Initialize(mapload)
|
|
. = ..()
|
|
icon_state = "snowgrass[rand(1, 3)]bb"
|
|
|
|
|
|
/obj/structure/flora/grass/green
|
|
icon_state = "snowgrass1gb"
|
|
|
|
/obj/structure/flora/grass/green/Initialize(mapload)
|
|
. = ..()
|
|
icon_state = "snowgrass[rand(1, 3)]gb"
|
|
|
|
/obj/structure/flora/grass/both
|
|
icon_state = "snowgrassall1"
|
|
|
|
/obj/structure/flora/grass/both/Initialize(mapload)
|
|
. = ..()
|
|
icon_state = "snowgrassall[rand(1, 3)]"
|
|
|
|
|
|
//bushes
|
|
/obj/structure/flora/bush
|
|
name = "bush"
|
|
icon = 'icons/obj/flora/snowflora.dmi'
|
|
icon_state = "snowbush1"
|
|
anchored = TRUE
|
|
max_integrity = 15
|
|
|
|
/obj/structure/flora/bush/Initialize(mapload)
|
|
. = ..()
|
|
icon_state = "snowbush[rand(1, 6)]"
|
|
|
|
//newbushes
|
|
|
|
/obj/structure/flora/ausbushes
|
|
name = "bush"
|
|
icon = 'icons/obj/flora/ausflora.dmi'
|
|
icon_state = "firstbush_1"
|
|
anchored = TRUE
|
|
max_integrity = 15
|
|
|
|
/obj/structure/flora/ausbushes/Initialize(mapload)
|
|
. = ..()
|
|
icon_state = "firstbush_[rand(1, 4)]"
|
|
|
|
/obj/structure/flora/ausbushes/reedbush
|
|
icon_state = "reedbush_1"
|
|
|
|
/obj/structure/flora/ausbushes/reedbush/Initialize(mapload)
|
|
. = ..()
|
|
icon_state = "reedbush_[rand(1, 4)]"
|
|
|
|
/obj/structure/flora/ausbushes/leafybush
|
|
icon_state = "leafybush_1"
|
|
|
|
/obj/structure/flora/ausbushes/leafybush/Initialize(mapload)
|
|
. = ..()
|
|
icon_state = "leafybush_[rand(1, 3)]"
|
|
|
|
/obj/structure/flora/ausbushes/palebush
|
|
icon_state = "palebush_1"
|
|
|
|
/obj/structure/flora/ausbushes/palebush/Initialize(mapload)
|
|
. = ..()
|
|
icon_state = "palebush_[rand(1, 4)]"
|
|
|
|
/obj/structure/flora/ausbushes/stalkybush
|
|
icon_state = "stalkybush_1"
|
|
|
|
/obj/structure/flora/ausbushes/stalkybush/Initialize(mapload)
|
|
. = ..()
|
|
icon_state = "stalkybush_[rand(1, 3)]"
|
|
|
|
/obj/structure/flora/ausbushes/grassybush
|
|
icon_state = "grassybush_1"
|
|
|
|
/obj/structure/flora/ausbushes/grassybush/Initialize(mapload)
|
|
. = ..()
|
|
icon_state = "grassybush_[rand(1, 4)]"
|
|
|
|
/obj/structure/flora/ausbushes/fernybush
|
|
icon_state = "fernybush_1"
|
|
|
|
/obj/structure/flora/ausbushes/fernybush/Initialize(mapload)
|
|
. = ..()
|
|
icon_state = "fernybush_[rand(1, 3)]"
|
|
|
|
/obj/structure/flora/ausbushes/sunnybush
|
|
icon_state = "sunnybush_1"
|
|
|
|
/obj/structure/flora/ausbushes/sunnybush/Initialize(mapload)
|
|
. = ..()
|
|
icon_state = "sunnybush_[rand(1, 3)]"
|
|
|
|
/obj/structure/flora/ausbushes/genericbush
|
|
icon_state = "genericbush_1"
|
|
|
|
/obj/structure/flora/ausbushes/genericbush/Initialize(mapload)
|
|
. = ..()
|
|
icon_state = "genericbush_[rand(1, 4)]"
|
|
|
|
/obj/structure/flora/ausbushes/pointybush
|
|
icon_state = "pointybush_1"
|
|
|
|
/obj/structure/flora/ausbushes/pointybush/Initialize(mapload)
|
|
. = ..()
|
|
icon_state = "pointybush_[rand(1, 4)]"
|
|
|
|
/obj/structure/flora/ausbushes/lavendergrass
|
|
icon_state = "lavendergrass_1"
|
|
|
|
/obj/structure/flora/ausbushes/lavendergrass/Initialize(mapload)
|
|
. = ..()
|
|
icon_state = "lavendergrass_[rand(1, 4)]"
|
|
|
|
/obj/structure/flora/ausbushes/ywflowers
|
|
icon_state = "ywflowers_1"
|
|
|
|
/obj/structure/flora/ausbushes/ywflowers/Initialize(mapload)
|
|
. = ..()
|
|
icon_state = "ywflowers_[rand(1, 3)]"
|
|
|
|
/obj/structure/flora/ausbushes/brflowers
|
|
icon_state = "brflowers_1"
|
|
|
|
/obj/structure/flora/ausbushes/brflowers/Initialize(mapload)
|
|
. = ..()
|
|
icon_state = "brflowers_[rand(1, 3)]"
|
|
|
|
/obj/structure/flora/ausbushes/ppflowers
|
|
icon_state = "ppflowers_1"
|
|
|
|
/obj/structure/flora/ausbushes/ppflowers/Initialize(mapload)
|
|
. = ..()
|
|
icon_state = "ppflowers_[rand(1, 3)]"
|
|
|
|
/obj/structure/flora/ausbushes/sparsegrass
|
|
icon_state = "sparsegrass_1"
|
|
|
|
/obj/structure/flora/ausbushes/sparsegrass/Initialize(mapload)
|
|
. = ..()
|
|
icon_state = "sparsegrass_[rand(1, 3)]"
|
|
|
|
/obj/structure/flora/ausbushes/fullgrass
|
|
icon_state = "fullgrass_1"
|
|
|
|
/obj/structure/flora/ausbushes/fullgrass/Initialize(mapload)
|
|
. = ..()
|
|
icon_state = "fullgrass_[rand(1, 3)]"
|
|
|
|
// Kirby plants
|
|
/obj/item/kirbyplants
|
|
name = "potted plant"
|
|
desc = "Some greenery, how nice."
|
|
icon = 'icons/obj/flora/plants.dmi'
|
|
icon_state = "random_plant"
|
|
anchored = FALSE
|
|
layer = ABOVE_MOB_LAYER
|
|
w_class = WEIGHT_CLASS_HUGE
|
|
force = 10
|
|
throwforce = 13
|
|
throw_speed = 2
|
|
throw_range = 4
|
|
/// Method to track plant overlay on mob for later removal
|
|
var/mutable_appearance/mob_overlay
|
|
|
|
/obj/item/kirbyplants/Initialize(mapload)
|
|
. = ..()
|
|
if(prob(1) && icon_state == "random_plant")
|
|
icon_state = "plant-eye"
|
|
if(icon_state == "random_plant")
|
|
icon_state = "plant-[rand(1, 34)]"
|
|
AddComponent(/datum/component/two_handed, require_twohands = TRUE)
|
|
|
|
/obj/item/kirbyplants/Destroy()
|
|
if(iscarbon(loc))
|
|
unhide_user(loc)
|
|
|
|
QDEL_NULL(mob_overlay)
|
|
return ..()
|
|
|
|
/obj/item/kirbyplants/equipped(mob/living/carbon/user)
|
|
. = ..()
|
|
if(HAS_TRAIT(src, TRAIT_WIELDED))
|
|
hide_user(user)
|
|
return
|
|
unhide_user(user)
|
|
|
|
/// User has decided to hold a plant, apply stealth.
|
|
/obj/item/kirbyplants/proc/hide_user(mob/living/carbon/user)
|
|
RegisterSignal(user, COMSIG_CARBON_REGENERATE_ICONS, PROC_REF(reapply_hide))
|
|
mob_overlay = mutable_appearance(icon, icon_state, user.layer, user.plane, 255, appearance_flags = RESET_COLOR | RESET_TRANSFORM | RESET_ALPHA | KEEP_APART)
|
|
user.add_overlay(mob_overlay)
|
|
user.alpha = 0
|
|
|
|
/// User has either dropped the plant, or plant is being destroyed, restore user to normal.
|
|
/obj/item/kirbyplants/proc/unhide_user(mob/living/carbon/user)
|
|
UnregisterSignal(user, COMSIG_CARBON_REGENERATE_ICONS)
|
|
user.cut_overlay(mob_overlay)
|
|
user.alpha = initial(user.alpha)
|
|
QDEL_NULL(mob_overlay)
|
|
|
|
/// Icon operation has occured, time to make sure we're showing a plant again if we need to be.
|
|
/obj/item/kirbyplants/proc/reapply_hide(mob/living/carbon/user)
|
|
SIGNAL_HANDLER
|
|
// Reset the state of the user
|
|
unhide_user(user)
|
|
hide_user(user)
|
|
|
|
/obj/item/kirbyplants/dropped(mob/living/carbon/user)
|
|
..()
|
|
unhide_user(user)
|
|
|
|
/obj/item/kirbyplants/plant1
|
|
icon_state = "plant-1"
|
|
|
|
/obj/item/kirbyplants/plant2
|
|
icon_state = "plant-2"
|
|
|
|
/obj/item/kirbyplants/plant3
|
|
icon_state = "plant-3"
|
|
|
|
/obj/item/kirbyplants/plant4
|
|
icon_state = "plant-4"
|
|
|
|
/obj/item/kirbyplants/plant5
|
|
icon_state = "plant-5"
|
|
|
|
/obj/item/kirbyplants/plant6
|
|
icon_state = "plant-6"
|
|
|
|
/obj/item/kirbyplants/plant7
|
|
icon_state = "plant-7"
|
|
|
|
/obj/item/kirbyplants/plant8
|
|
icon_state = "plant-8"
|
|
|
|
/obj/item/kirbyplants/plant9
|
|
icon_state = "plant-9"
|
|
|
|
/obj/item/kirbyplants/plant10
|
|
icon_state = "plant-10"
|
|
|
|
/obj/item/kirbyplants/plant11
|
|
icon_state = "plant-11"
|
|
|
|
/obj/item/kirbyplants/plant12
|
|
icon_state = "plant-12"
|
|
|
|
/obj/item/kirbyplants/plant13
|
|
icon_state = "plant-13"
|
|
|
|
/obj/item/kirbyplants/plant14
|
|
icon_state = "plant-14"
|
|
|
|
/obj/item/kirbyplants/plant15
|
|
icon_state = "plant-15"
|
|
|
|
/obj/item/kirbyplants/plant16
|
|
icon_state = "plant-16"
|
|
|
|
/obj/item/kirbyplants/plant17
|
|
icon_state = "plant-17"
|
|
|
|
/obj/item/kirbyplants/plant18
|
|
icon_state = "plant-18"
|
|
|
|
/obj/item/kirbyplants/plant19
|
|
icon_state = "plant-19"
|
|
|
|
/obj/item/kirbyplants/plant20
|
|
icon_state = "plant-20"
|
|
|
|
/obj/item/kirbyplants/plant21
|
|
icon_state = "plant-21"
|
|
|
|
/obj/item/kirbyplants/plant22
|
|
icon_state = "plant-22"
|
|
|
|
/obj/item/kirbyplants/plant23
|
|
icon_state = "plant-23"
|
|
|
|
/obj/item/kirbyplants/plant24
|
|
icon_state = "plant-24"
|
|
|
|
/obj/item/kirbyplants/plant25
|
|
icon_state = "plant-25"
|
|
|
|
/obj/item/kirbyplants/plant26
|
|
icon_state = "plant-26"
|
|
|
|
/obj/item/kirbyplants/plant27
|
|
icon_state = "plant-27"
|
|
|
|
/obj/item/kirbyplants/plant28
|
|
icon_state = "plant-28"
|
|
|
|
/obj/item/kirbyplants/plant29
|
|
icon_state = "plant-29"
|
|
|
|
/obj/item/kirbyplants/plant30
|
|
icon_state = "plant-30"
|
|
|
|
/obj/item/kirbyplants/plant31
|
|
icon_state = "plant-31"
|
|
|
|
/obj/item/kirbyplants/plant32
|
|
icon_state = "plant-32"
|
|
|
|
/obj/item/kirbyplants/plant33
|
|
icon_state = "plant-33"
|
|
|
|
/obj/item/kirbyplants/plant34
|
|
icon_state = "plant-34"
|
|
|
|
/obj/item/kirbyplants/applebush
|
|
icon_state = "applebush"
|
|
|
|
/obj/item/kirbyplants/dead
|
|
icon_state = "plant-dead"
|
|
|
|
/obj/item/kirbyplants/dead/rd
|
|
name = "\improper RD's potted plant"
|
|
desc = "A gift from the botanical staff, presented after the RD's reassignment. There's a tag on it that says \"Y'all come back now, y'hear?\"\nIt doesn't look very healthy..."
|
|
|
|
//a rock is flora according to where the icon file is
|
|
//and now these defines
|
|
/obj/structure/flora/rock
|
|
name = "rock"
|
|
desc = "A rock."
|
|
icon_state = "rock1"
|
|
icon = 'icons/obj/flora/rocks.dmi'
|
|
resistance_flags = FIRE_PROOF
|
|
anchored = TRUE
|
|
|
|
/obj/structure/flora/rock/Initialize(mapload)
|
|
. = ..()
|
|
icon_state = "rock[rand(1,5)]"
|
|
|
|
/obj/structure/flora/rock/pile
|
|
name = "rocks"
|
|
desc = "Some rocks."
|
|
icon_state = "rockpile1"
|
|
|
|
/obj/structure/flora/rock/pile/Initialize(mapload)
|
|
. = ..()
|
|
icon_state = "rockpile[rand(1,5)]"
|
|
|
|
/obj/structure/flora/rock/icy
|
|
name = "icy rock"
|
|
color = "#cce9eb"
|
|
|
|
/obj/structure/flora/rock/pile/icy
|
|
name = "icy rocks"
|
|
color = "#cce9eb"
|
|
|
|
/obj/structure/flora/corn_stalk
|
|
name = "corn stalk"
|
|
icon = 'icons/obj/flora/plants.dmi'
|
|
icon_state = "cornstalk1"
|
|
anchored = FALSE
|
|
layer = 5
|
|
|
|
/obj/structure/flora/corn_stalk/alt_1
|
|
icon_state = "cornstalk2"
|
|
|
|
/obj/structure/flora/corn_stalk/alt_2
|
|
icon_state = "cornstalk3"
|
|
|
|
/obj/structure/flora/straw_bail
|
|
name = "straw bail"
|
|
icon = 'icons/obj/flora/plants.dmi'
|
|
icon_state = "strawbail1"
|
|
density = TRUE
|
|
climbable = 1 // you can climb all over them.
|
|
|
|
/obj/structure/flora/straw_bail/alt_1
|
|
icon_state = "strawbail2"
|
|
|
|
/obj/structure/flora/straw_bail/alt_2
|
|
icon_state = "strawbail3"
|
|
|
|
/obj/structure/bush
|
|
name = "foliage"
|
|
desc = "Pretty thick scrub, it'll take something sharp and a lot of determination to clear away."
|
|
icon = 'icons/obj/flora/plants.dmi'
|
|
icon_state = "bush1"
|
|
density = TRUE
|
|
anchored = TRUE
|
|
layer = 3.2
|
|
var/indestructable = 0
|
|
var/stump = 0
|
|
|
|
/obj/structure/bush/Initialize(mapload)
|
|
. = ..()
|
|
if(prob(20))
|
|
opacity = TRUE
|
|
|
|
/*
|
|
/obj/structure/bush/Bumped(M as mob)
|
|
if(istype(M, /mob/living/simple_animal))
|
|
var/mob/living/simple_animal/A = M
|
|
A.loc = get_turf(src)
|
|
else if(istype(M, /mob/living/carbon/monkey))
|
|
var/mob/living/carbon/monkey/A = M
|
|
A.loc = get_turf(src)
|
|
*/
|
|
|
|
/obj/structure/bush/attackby(obj/I as obj, mob/user as mob, params)
|
|
//hatchets can clear away undergrowth
|
|
if(istype(I, /obj/item/hatchet) && !stump)
|
|
if(indestructable)
|
|
//this bush marks the edge of the map, you can't destroy it
|
|
to_chat(user, "<span class='warning'>You flail away at the undergrowth, but it's too thick here.</span>")
|
|
else
|
|
user.visible_message("<span class='danger'>[user] begins clearing away [src].</b>","<span class='warning'><b>You begin clearing away [src].</span></span>")
|
|
spawn(rand(15,30))
|
|
if(get_dist(user,src) < 2)
|
|
to_chat(user, "<span class='notice'>You clear away [src].</span>")
|
|
var/obj/item/stack/sheet/wood/W = new(src.loc)
|
|
W.amount = rand(3,15)
|
|
if(prob(50))
|
|
icon_state = "stump[rand(1,2)]"
|
|
name = "cleared foliage"
|
|
desc = "There used to be dense undergrowth here."
|
|
density = FALSE
|
|
stump = 1
|
|
pixel_x = rand(-6,6)
|
|
pixel_y = rand(-6,6)
|
|
else
|
|
qdel(src)
|
|
else
|
|
return ..()
|
|
|
|
//Jungle grass
|
|
|
|
/obj/structure/flora/grass/jungle
|
|
name = "jungle grass"
|
|
desc = "Thick alien flora."
|
|
icon = 'icons/obj/flora/jungleflora.dmi'
|
|
icon_state = "grass1"
|
|
base_icon_state = "grass"
|
|
/// Controls how many variants of the sprite exists
|
|
var/variations = 10
|
|
|
|
/obj/structure/flora/grass/jungle/Initialize(mapload)
|
|
icon_state = "[base_icon_state][rand(1, variations)]"
|
|
. = ..()
|
|
|
|
//Jungle rocks
|
|
|
|
/obj/structure/flora/rock/jungle
|
|
icon_state = "rock"
|
|
desc = "A pile of rocks."
|
|
icon = 'icons/obj/flora/jungleflora.dmi'
|
|
density = FALSE
|
|
|
|
/obj/structure/flora/rock/jungle/Initialize(mapload)
|
|
. = ..()
|
|
icon_state = "[initial(icon_state)][rand(1,5)]"
|
|
|
|
//Jungle bushes
|
|
|
|
/obj/structure/flora/junglebush
|
|
name = "bush"
|
|
desc = "A wild plant that is found in jungles."
|
|
icon = 'icons/obj/flora/jungleflora.dmi'
|
|
icon_state = "bush1"
|
|
base_icon_state = "bush"
|
|
anchored = TRUE
|
|
/// Controls how many variants of the sprite exists
|
|
var/variations = 9
|
|
|
|
/obj/structure/flora/junglebush/Initialize(mapload)
|
|
icon_state = "[base_icon_state][rand(1, variations)]"
|
|
. = ..()
|
|
|
|
/obj/structure/flora/junglebush/large
|
|
icon = 'icons/obj/flora/largejungleflora.dmi'
|
|
pixel_x = -16
|
|
pixel_y = -12
|
|
layer = ABOVE_ALL_MOB_LAYER
|
|
variations = 3
|
|
|
|
/obj/structure/flora/junglebush/large/Initialize(mapload)
|
|
. = ..()
|
|
AddComponent(/datum/component/largetransparency, 0, 0, 0, 0)
|
|
|
|
/obj/structure/flora/rock/pile/largejungle
|
|
name = "rocks"
|
|
icon_state = "rocks1"
|
|
base_icon_state = "rocks"
|
|
icon = 'icons/obj/flora/largejungleflora.dmi'
|
|
density = FALSE
|
|
pixel_x = -16
|
|
pixel_y = -16
|
|
|
|
/obj/structure/flora/rock/pile/largejungle/Initialize(mapload)
|
|
. = ..()
|
|
icon_state = "[initial(base_icon_state)][rand(1,3)]"
|