-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(FTL): better takeoff/landing, tweaked mapgen, increased test map…
…'s size
- Loading branch information
1 parent
e4e0968
commit e3d3756
Showing
44 changed files
with
4,727 additions
and
3,478 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
#define FIRE_MODE_ANTI_AIR 1 | ||
#define FIRE_MODE_TORPEDO 2 | ||
#define FIRE_MODE_AMS_LASER 3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
SUBSYSTEM_DEF(mapgen) | ||
name = "Mapgen" | ||
wait = 1 SECOND | ||
priority = SS_PRIORITY_MAPGEN | ||
|
||
/// Current mapgen datum. | ||
var/datum/map_generator/current_mapgen = null | ||
/// List of all turfs that will be changed by mapgen | ||
var/list/turfs = list() | ||
var/list/generated_turfs = list() | ||
var/list/smooth_queue = list() | ||
|
||
/datum/controller/subsystem/mapgen/fire(resumed = FALSE) | ||
while(turfs.len) | ||
var/turf/gen_turf = turfs[turfs.len] | ||
if(!istype(gen_turf)) | ||
continue | ||
|
||
current_mapgen.generate_turf(gen_turf, CHANGETURF_IGNORE_AIR | CHANGETURF_DEFER_CHANGE | CHANGETURF_DEFER_BATCH) | ||
generated_turfs |= gen_turf | ||
turfs.len -- | ||
if(MC_TICK_CHECK) | ||
return | ||
|
||
while(generated_turfs.len) | ||
var/turf/generated = generated_turfs[generated_turfs.len] | ||
if(!istype(generated)) | ||
continue | ||
|
||
var/neighbors = RANGE_TURFS(1, generated) | ||
smooth_queue |= generated | ||
for(var/turf/T in neighbors) | ||
smooth_queue |= T | ||
|
||
for(var/turf/space/S in neighbors) | ||
S.update_starlight() | ||
|
||
generated_turfs.len-- | ||
if(MC_TICK_CHECK) | ||
return | ||
|
||
while(smooth_queue.len) | ||
var/turf/to_smooth = smooth_queue[smooth_queue.len] | ||
if(!istype(to_smooth)) | ||
continue | ||
|
||
to_smooth.update_icon() | ||
smooth_queue.len-- | ||
if(MC_TICK_CHECK) | ||
return | ||
|
||
if(!turfs.len && !generated_turfs.len && !smooth_queue.len) | ||
current_mapgen = null | ||
|
||
/datum/controller/subsystem/mapgen/Recover() | ||
current_mapgen = SSmapgen.current_mapgen | ||
turfs = SSmapgen.turfs | ||
generated_turfs = SSmapgen.generated_turfs | ||
smooth_queue = SSmapgen.smooth_queue | ||
|
||
// Some queueing mechanism is needed, but not now, not now. | ||
/datum/controller/subsystem/mapgen/proc/generate(datum/map_generator/mapgen, list/turfs) | ||
if(!current_mapgen) | ||
current_mapgen = mapgen | ||
src.turfs = turfs.Copy() | ||
return TRUE | ||
else | ||
return FALSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/datum/looping_sound/ship/engine | ||
mid_sounds = list( | ||
'sound/effects/ship/engine_rocket_loop.ogg' = 1 | ||
) | ||
mid_length = 9 SECONDS | ||
start_sound = 'sound/effects/ship/env_ship_up.ogg' | ||
start_length = 4.5 SECONDS | ||
end_sound = 'sound/effects/ship/env_ship_down.ogg' | ||
volume = 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.