Files
Citadel-Station-13-RP/code/modules/overmap/overmap_planet.dm
silicons 663b919445 [IDB IGNORE] [MDB IGNORE] Tether - remade on cit repo so people can PR to this (#3043)
* Tetherport

* sigh

* more fixes

* shields

* more

* woo

* compile

* e

* a

* Tether, compilable and running

not playable tho

* Tether, compilable and running

not playable tho

* Automatic changelog generation for PR #3200 [ci skip]

* why

* EOL

* nukes edited areas. if you had something important in here, you didn't deserve to.

* another folder down

* one more folder

* the refacotring continues

* change those

* okay

* dynamic zlevels

* move stufF

* reorganize that too

* get rid of unneded archives

* move talon too and rename that

* meh

* woop

* fixes

* move those

* fixes

* fix

* Submap Repathing/Reconciliation

* Attempts to fix Gecko invalid variable bug.

* Alright. Let's actually fix every bugged instance.

* Another round of updates. That same turf issue exists.

* Should fix the last of those weird varedits.

* One snuck by?

* Another round of fixes.

* I want to know who put all these var edits in.

* Another batch down.

* Yet another batch.

* A map at a time, at this rate.

* I hope these are the last four, but probably not.

* Hopefully the last, but probably not.

* ANOTHER stealth var_edit that snuck through.

* Manually checked the rest of the map files I found. These were updated.

* Did the same for bad var_edits. Caught these.

* Updates the 140x140.

* Sorts Talon and partially adds Point Defense. Too complex for me.

* tether_turfs

* I think this is it. The last variable bug.

* Telenetwork Delenda Est

* linterS

* fix

* extraneous files

* woo

* mmm

* add that in until reagents hardsync

* woo

* sync

* updates

* t

* weather

* i want to rewrite telecomms

* test

* shift those

* woo

* move that

* FUCK

* Fix

* fix

* or null

* shuffle

* Fixes

* Fixes

* Fix

* fixes

* woo

* that

* facility safety

* that too

* move that out

* fixes

* woops /

* rename those

* those

* woo

* test

* fixes

* woo

* exploration map edits

changes oxygen tanks to o2 jetpacks, co2 jetpack to an o2, adds pathfinder voidsuit, suit cycler for medical, and fixes access restrictions on the PF's office and locker

* mh

* Update fueldepot.dmm

* woo

* woo

* woo

* fix

* utterly fuck you

* Automatic changelog generation for PR #3225 [ci skip]

* test code

* w

* that

* fieldgens

* better

* singulo

* fixes

* fix

* fix

* adds mirrortools, removes backup implants

* why

* Prevents falling through catwalks and lattice,
stolen from Silicons

* Lots of stuff!

* Update talon2.dmm

* Automatic changelog generation for PR #3226 [ci skip]

* Removes Mining Stacker

* Slight remap changes to Deck 3, pending more.

* Automatic changelog generation for PR #3228 [ci skip]

* fix that

* that

* R&D remap.

* Lighting fix and correcting a talon vault issue?

* Conflict clean-up.

* Multi-floor modifications. Chem change. R&D revert. Etc.

* Adds a few extra timeclocks.

* Missed the bioregens. Hooray.

* Re re readjusts R&D to a lobby design. Adds Space Spice. Maybe fixes Captain spawner.

* woo

* fix

* not that

* Xenobotany and Trash Pit adjustments.

* proper

* De-militarizes Talon. Will Trader-ify them when I wake up.

* fix

* fix

* ashet pls

* ashet pls v2

* cleaner

* cleaner

Co-authored-by: nevimer <77420409+nevimer@users.noreply.github.com>
Co-authored-by: CitadelStationBot <citadelstationcommunity@gmail.com>
Co-authored-by: Captain277 <agentraven16@gmail.com>
Co-authored-by: Mag <86886852+MonaraMir@users.noreply.github.com>
Co-authored-by: nik707 <38332985+nik707@users.noreply.github.com>
Co-authored-by: TheLordME <58342752+TheLordME@users.noreply.github.com>
2021-07-11 23:29:24 -07:00

99 lines
2.9 KiB
Plaintext

/obj/effect/overmap/visitable/planet
name = "planet"
icon_state = "globe"
in_space = 0
var/datum/gas_mixture/atmosphere
var/atmosphere_color = "FFFFFF"
var/mountain_color = "#735555"
var/surface_color = "#304A35"
var/water_color = "#436499"
var/has_rings = FALSE // set to true to get rings
var/icecaps = null // Iconstate in icons/skybox/planet.dmi for the planet's icecaps
var/ice_color = "E6F2F6"
var/ring_color
var/skybox_offset_x = 0
var/skybox_offset_y = 0
/obj/effect/overmap/visitable/planet/Initialize()
. = ..()
/obj/effect/overmap/visitable/planet/get_skybox_representation()
var/image/skybox_image = image('icons/skybox/planet.dmi', "")
skybox_image.overlays += get_base_image()
// for(var/datum/exoplanet_theme/theme in themes)
// skybox_image.overlays += theme.get_planet_image_extra()
if(mountain_color)
var/image/mountains = image('icons/skybox/planet.dmi', "mountains")
mountains.color = mountain_color
mountains.appearance_flags = PIXEL_SCALE
skybox_image.overlays += mountains
if(water_color)
var/image/water = image('icons/skybox/planet.dmi', "water")
water.color = water_color
water.appearance_flags = PIXEL_SCALE
// water.transform = water.transform.Turn(rand(0,360))
skybox_image.overlays += water
if(icecaps)
var/image/ice = image('icons/skybox/planet.dmi', icecaps)
ice.color = ice_color
ice.appearance_flags = PIXEL_SCALE
skybox_image.overlays += ice
if(atmosphere && atmosphere.return_pressure() > SOUND_MINIMUM_PRESSURE)
var/atmo_color = get_atmosphere_color()
if(!atmo_color)
atmo_color = COLOR_WHITE
var/image/clouds = image('icons/skybox/planet.dmi', "weak_clouds")
if(water_color)
clouds.overlays += image('icons/skybox/planet.dmi', "clouds")
clouds.color = atmo_color
skybox_image.overlays += clouds
var/image/atmo = image('icons/skybox/planet.dmi', "atmoring")
skybox_image.underlays += atmo
var/image/shadow = image('icons/skybox/planet.dmi', "shadow")
shadow.blend_mode = BLEND_MULTIPLY
skybox_image.overlays += shadow
var/image/light = image('icons/skybox/planet.dmi', "lightrim")
skybox_image.overlays += light
if(has_rings)
var/image/rings = image('icons/skybox/planet_rings.dmi')
rings.icon_state = pick("sparse", "dense")
if(!ring_color)
rings.color = pick("#f0fcff", "#dcc4ad", "#d1dcad", "#adb8dc")
else
rings.color = ring_color
rings.pixel_x = -128
rings.pixel_y = -128
skybox_image.overlays += rings
skybox_image.pixel_x = rand(0,64) + skybox_offset_x
skybox_image.pixel_y = rand(128,256) + skybox_offset_y
skybox_image.appearance_flags = RESET_COLOR
return skybox_image
/obj/effect/overmap/visitable/planet/proc/get_base_image()
var/image/base = image('icons/skybox/planet.dmi', "base")
base.color = get_surface_color()
return base
/obj/effect/overmap/visitable/planet/proc/get_surface_color()
return surface_color
/obj/effect/overmap/visitable/planet/proc/get_atmosphere_color()
return atmosphere_color