-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4696 from out-of-phaze/modular/misc-species
Move miscellaneous species (golems, aliums) to modpacks
- Loading branch information
Showing
18 changed files
with
842 additions
and
809 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
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 was deleted.
Oops, something went wrong.
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,25 @@ | ||
// This must be included before maps and any modpacks that use it. | ||
// That includes before _map_include.dm. | ||
|
||
/// A spawner that can have its path overridden by a modpack, so that maps can have optional modpack compatibility. | ||
/obj/abstract/modpack_compat | ||
abstract_type = /obj/abstract/modpack_compat | ||
name = "optional modpack object" | ||
desc = "This item type is used to spawn a movable at roundstart, whether a modpack is included or not." | ||
icon = 'icons/misc/mark.dmi' | ||
icon_state = "rup" | ||
var/atom/movable/spawn_object | ||
|
||
/obj/abstract/modpack_compat/Initialize() | ||
..() | ||
if(ispath(spawn_object)) | ||
new spawn_object | ||
return INITIALIZE_HINT_QDEL | ||
|
||
#define OPTIONAL_SPAWNER(TYPE, VALUE) \ | ||
/obj/abstract/modpack_compat/##TYPE { \ | ||
spawn_object = VALUE; \ | ||
} | ||
|
||
/// This spawner is used to optionally spawn the aliumizer if the random aliens modpack is included. | ||
OPTIONAL_SPAWNER(aliumizer, null) |
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,9 @@ | ||
#define isslime(X) istype(X, /mob/living/slime) | ||
#define SPECIES_GOLEM "Golem" | ||
|
||
/decl/modpack/xenobiology | ||
name = "Xenobiology" | ||
|
||
/decl/modpack/xenobiology/initialize() | ||
. = ..() | ||
SSmodpacks.default_submap_blacklisted_species += SPECIES_GOLEM |
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
File renamed without changes.
File renamed without changes.
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.