-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
216 additions
and
121 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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
Binary file not shown.
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
Binary file modified
BIN
+126 Bytes
(110%)
modular_nova/modules/implants/icons/implanted_blade_lefthand.dmi
Binary file not shown.
Binary file modified
BIN
+118 Bytes
(110%)
modular_nova/modules/implants/icons/implanted_blade_righthand.dmi
Binary file not shown.
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,22 @@ | ||
https://github.com/NovaSector/NovaSector/pull/4531 | ||
|
||
## Title: All the emotes. | ||
|
||
MODULE ID: species_synthesizer | ||
|
||
### Description: | ||
|
||
Adds an action to Synthetic and Ethereal species that allows them to synthesize music. | ||
|
||
- Added to `modular_nova/modules/synths/code/species/synthetic.dm`: | ||
- Edited `/datum/species/synthetic/on_species_gain()` to add the action to the mob. | ||
- Added to `/datum/species/ethereal/create_pref_unique_perks()` to add the "Musical Discharger" species perk. | ||
|
||
### Master File Additions | ||
|
||
- Added to `modular_nova/master_files/code/modules/mob/living/carbon/human/species_type/ethereal.dm`: | ||
- Overrode `/datum/species/ethereal/on_species_gain()` to add the action to the mob. | ||
- Added to `/datum/species/synthetic/create_pref_unique_perks()` to add the "Tone Synthesizer" species perk. | ||
|
||
### Credits: | ||
- [@Floofies](https://github.com/Floofies) |
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,48 @@ | ||
/datum/action/sing_tones | ||
name = "Sing Tones" | ||
desc = "Use your internal synthesizer to sing!" | ||
button_icon = 'icons/obj/art/musician.dmi' | ||
button_icon_state = "xylophone" | ||
var/datum/song/song | ||
/// What instruments can be used. | ||
var/allowed_instrument_ids = list("spaceman", "meowsynth", "square", "sine", "saw") | ||
/// Instruments added after being emagged. | ||
var/emag_instrument_ids = list("honk") | ||
/// Set to TRUE if already emagged. | ||
var/emagged = FALSE | ||
|
||
/datum/action/sing_tones/Grant(mob/grant_to) | ||
..() | ||
RegisterSignal(grant_to, COMSIG_SPECIES_LOSS, PROC_REF(on_species_loss)) | ||
RegisterSignal(grant_to, COMSIG_ATOM_EMAG_ACT, PROC_REF(on_emag_act)) | ||
song = new(grant_to, allowed_instrument_ids, 15) | ||
if(isethereal(grant_to)) | ||
desc = "Use your electric discharger to sing!" | ||
|
||
/datum/action/sing_tones/Remove(mob/remove_from) | ||
..() | ||
QDEL_NULL(song) | ||
UnregisterSignal(remove_from, list( | ||
COMSIG_SPECIES_LOSS, | ||
COMSIG_ATOM_EMAG_ACT, | ||
)) | ||
|
||
/datum/action/sing_tones/proc/on_species_loss(mob/living/carbon/human/human) | ||
SIGNAL_HANDLER | ||
|
||
qdel(src) | ||
|
||
/datum/action/sing_tones/proc/on_emag_act(mob/living/carbon/human/source, mob/user) | ||
SIGNAL_HANDLER | ||
|
||
if(emagged) | ||
return | ||
emagged = TRUE | ||
song.allowed_instrument_ids += emag_instrument_ids | ||
song.set_instrument("honk") | ||
|
||
/datum/action/sing_tones/Trigger(trigger_flags) | ||
. = ..() | ||
if(!.) | ||
return | ||
song.ui_interact(owner) |
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