Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overmap 4.7: Gas Giants, More Storms, 8 hours of work #1997

Merged
merged 30 commits into from
Jul 21, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
d5c28c7
does the PR
Erikafox May 29, 2023
8f5bb23
fixes + changes
Erikafox May 30, 2023
dce9f76
yes rye. It was
Erikafox May 30, 2023
16f69b6
Update planetary.dm
Erikafox May 30, 2023
8da4552
tmt review
Erikafox May 30, 2023
0e401ea
d'oh
Erikafox May 30, 2023
b025780
pushes more descs and fixes another issue tmt saw
Erikafox May 30, 2023
cf82b07
adds the landing sounds
Erikafox May 30, 2023
5e1f7dd
Throngle
Erikafox May 30, 2023
cf69573
removes the debug procs while I wait for debugging assistance
Erikafox May 30, 2023
4e95211
d
Erikafox Jun 2, 2023
a829e57
Update event_datum.dm
Erikafox Jun 3, 2023
8e9e595
Merge branch 'master' into overmap-stuff
Erikafox Jun 7, 2023
cf00188
Update beams.dm
Erikafox Jun 8, 2023
8113191
Update overmap.dmi
Erikafox Jun 9, 2023
d23efed
Merge remote-tracking branch 'upstream/master' into overmap-stuff
Erikafox Jun 9, 2023
cb4e79f
Update atmospherics.dm
Erikafox Jun 9, 2023
98b40cc
Merge remote-tracking branch 'upstream/master' into overmap-stuff
Erikafox Jun 16, 2023
0fcee16
Merge remote-tracking branch 'upstream/master' into overmap-stuff
Erikafox Jun 30, 2023
13bc1d4
woohoo
Erikafox Jun 30, 2023
743ade5
f
Erikafox Jun 30, 2023
35dcb1c
Update dynamic_datum.dm
Erikafox Jul 1, 2023
97465e4
Update dynamic_datum.dm
Erikafox Jul 1, 2023
9d91f39
Merge remote-tracking branch 'upstream/master' into overmap-stuff
Erikafox Jul 5, 2023
4cf8087
Merge remote-tracking branch 'upstream/master' into overmap-stuff
Erikafox Jul 5, 2023
d31836c
Merge branch 'master' into overmap-stuff
Erikafox Jul 9, 2023
d1de74e
webedits my linter problem away
Erikafox Jul 9, 2023
48e63b0
scopecreeps the pr
Erikafox Jul 12, 2023
f55f0e7
Update research_mission.dm
Erikafox Jul 12, 2023
e3e8442
carp balance
Erikafox Jul 13, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions code/modules/overmap/objects/dynamic_datum.dm
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,8 @@
for(var/mob/Mob as anything in GLOB.player_list)
if(dock_requester.shuttle_port.is_in_shuttle_bounds(Mob))
Mob.play_screen_text("<span class='maptext' style=font-size:24pt;text-align:center valign='top'><u>[planet_name]</u></span><br>[station_time_timestamp_fancy("hh:mm")]")
if (landing_sound == "friendly")
playsound(Mob, 'sound/effects/planet_landing_1.ogg', 100)
if (landing_sound == "hostile")
playsound(Mob, 'sound/effects/planet_landing_2.ogg', 100)
playsound(Mob, landing_sound, 100)


/datum/overmap/dynamic/post_undocked(datum/overmap/dock_requester)
if(preserve_level)
Expand Down Expand Up @@ -122,8 +120,12 @@
probabilities[initial(planet_type.planet)] = initial(planet_type.weight)
planet = SSmapping.planet_types[force_encounter ? force_encounter : pickweightAllowZero(probabilities)]

planet_name = gen_planet_name()
Rename(planet_name)

if(planet.planet !=DYNAMIC_WORLD_ASTEROID && planet.planet != DYNAMIC_WORLD_SPACERUIN) //these aren't real planets
planet_name = gen_planet_name()
Rename(planet_name)
if(planet.planet == DYNAMIC_WORLD_ASTEROID || planet.planet == DYNAMIC_WORLD_SPACERUIN)
Rename(planet.name)
token.icon_state = planet.icon_state
token.desc = planet.desc
token.color = planet.color
Expand Down
21 changes: 14 additions & 7 deletions code/modules/overmap/objects/event_datum.dm
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,10 @@

/datum/overmap/event/meteor/apply_effect()
for(var/datum/overmap/ship/controlled/Ship in get_nearby_overmap_objects())
if(MAGNITUDE(Ship.speed_x, Ship.speed_y) > safe_speed)
if(prob(chance_to_affect))
if(Ship.get_speed() > safe_speed)
var/how_fast = (Ship.get_speed() - safe_speed)
if(prob(chance_to_affect + how_fast))
affect_ship(Ship)
return
return

/datum/overmap/event/meteor/affect_ship(datum/overmap/ship/controlled/Ship)
spawn_meteor(meteor_types, Ship.shuttle_port.get_virtual_level(), 0)
Expand Down Expand Up @@ -96,30 +95,38 @@
token_icon_state = "ion1"
spread_chance = 20
chain_rate = 2
chance_to_affect = 20
var/strength = 4

/datum/overmap/event/emp/Initialize(position, ...)
. = ..()
token.icon_state = "ion[rand(1, 4)]"

/datum/overmap/event/emp/affect_ship(datum/overmap/ship/controlled/S)
message_admins("1")
Erikafox marked this conversation as resolved.
Show resolved Hide resolved
var/area/source_area = pick(S.shuttle_port.shuttle_areas)
message_admins("2")
source_area.set_fire_alarm_effect()
message_admins("3")
var/source_object = pick(source_area.contents)
message_admins("4")
empulse(get_turf(source_object), round(rand(strength / 2, strength)), rand(strength, strength * 2))
message_admins("EMP PULSE at [source_object]")
for(var/mob/M as anything in GLOB.player_list)
if(S.shuttle_port.is_in_shuttle_bounds(M))
M.playsound_local(S.shuttle_port, 'sound/weapons/ionrifle.ogg', strength)

/datum/overmap/event/emp/minor
name = "ion storm (minor)"
chain_rate = 1
strength = 2
strength = 1
chance_to_affect = 15

/datum/overmap/event/emp/major
name = "ion storm (major)"
chance_to_affect = 25
chain_rate = 4
strength = 8
strength = 6

///ELECTRICAL STORM - explodes your computer and IPCs
/datum/overmap/event/electric
Expand Down Expand Up @@ -219,7 +226,7 @@
chance_to_affect = 15
spread_chance = 50
chain_rate = 4
safe_speed = 1
safe_speed = 2
meteor_types = list(
/obj/effect/meteor/carp=8,
/obj/effect/meteor/carp/big=1, //numbers I pulled out of my ass
Expand Down
22 changes: 11 additions & 11 deletions code/modules/overmap/planets/planet_types.dm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
default_baseturf = /turf/open/floor/plating/asteroid/basalt/lava
weather_controller_type = /datum/weather_controller/lavaland
ruin_type = RUINTYPE_LAVA
landing_sound = "hostile"
landing_sound = 'sound/effects/planet_landing_2.ogg'


/datum/planet_type/ice
Expand All @@ -35,7 +35,7 @@
default_baseturf = /turf/open/floor/plating/asteroid/snow/icemoon
weather_controller_type = /datum/weather_controller/snow_planet
ruin_type = RUINTYPE_ICE
landing_sound = "hostile"
landing_sound = 'sound/effects/planet_landing_2.ogg'

/datum/planet_type/jungle
name = "jungle planet"
Expand All @@ -47,7 +47,7 @@
default_baseturf = /turf/open/floor/plating/dirt/jungle
weather_controller_type = /datum/weather_controller/lush
ruin_type = RUINTYPE_JUNGLE
landing_sound = "friendly"
landing_sound = 'sound/effects/planet_landing_1.ogg'

/datum/planet_type/rock
name = "rock planet"
Expand All @@ -59,7 +59,7 @@
default_baseturf = /turf/open/floor/plating/asteroid
weather_controller_type = /datum/weather_controller/rockplanet
ruin_type = RUINTYPE_ROCK
landing_sound = "hostile"
landing_sound = 'sound/effects/planet_landing_2.ogg'

/datum/planet_type/sand
name = "sand planet"
Expand All @@ -71,7 +71,7 @@
default_baseturf = /turf/open/floor/plating/asteroid/whitesands
weather_controller_type = /datum/weather_controller/desert
ruin_type = RUINTYPE_SAND
landing_sound = "hostile"
landing_sound = 'sound/effects/planet_landing_2.ogg'

/datum/planet_type/beach
name = "beach planet"
Expand All @@ -83,7 +83,7 @@
default_baseturf = /turf/open/floor/plating/asteroid/sand/lit
weather_controller_type = /datum/weather_controller/lush
ruin_type = RUINTYPE_BEACH
landing_sound = "friendly"
landing_sound = 'sound/effects/planet_landing_1.ogg'

/datum/planet_type/reebe
name = "???"
Expand All @@ -109,7 +109,7 @@
default_baseturf = /turf/open/space
weather_controller_type = null
ruin_type = null // asteroid ruins when
landing_sound = "friendly"
landing_sound = 'sound/effects/planet_landing_1.ogg'

/datum/planet_type/spaceruin
name = "weak energy signal"
Expand All @@ -121,7 +121,7 @@
default_baseturf = /turf/open/space
weather_controller_type = null
ruin_type = RUINTYPE_SPACE
landing_sound = "hostile"
landing_sound = 'sound/effects/planet_landing_2.ogg'

/datum/planet_type/waste
name = "waste disposal planet"
Expand All @@ -133,7 +133,7 @@
default_baseturf = /turf/open/floor/plating/asteroid/wasteplanet
weather_controller_type = /datum/weather_controller/chlorine
ruin_type = RUINTYPE_WASTE
landing_sound = "hostile"
landing_sound = 'sound/effects/planet_landing_2.ogg'

/datum/planet_type/gas_giant
name = "gas giant"
Expand All @@ -147,7 +147,7 @@
ruin_type = null //it's a Gas Giant. Not Cloud fuckin City
weight = 5
preserve_level = TRUE
landing_sound = "friendly"
landing_sound = 'sound/effects/planet_landing_1.ogg'

/datum/planet_type/plasma_giant
name = "plasma giant"
Expand All @@ -159,4 +159,4 @@
weight = 1
icon_state = "globe"
preserve_level = TRUE
landing_sound = "friendly"
landing_sound = 'sound/effects/planet_landing_1.ogg'