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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moths #34243
Closed
Closed
Moths #34243
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 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
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,11 @@ | ||
/datum/language/moth | ||
name = "Mothish" | ||
desc = "The common language of moths, composed of various noises made of wing fluttering and clicks." | ||
speech_verb = "flutters" | ||
ask_verb = "clicks" | ||
exclaim_verb = "buzzes" | ||
key = "m" | ||
space_chance = 90 | ||
syllables = list("bz", "ba", "mah", "fa", "ki", "nr") | ||
default_priority = 90 | ||
icon_state = "mothl" |
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
72 changes: 72 additions & 0 deletions
72
code/modules/mob/living/carbon/human/species_types/moth.dm
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,72 @@ | ||
/datum/species/moth | ||
// Shitty moths, why do we need them dammit | ||
name = "Mothmen" | ||
id = "moth" | ||
say_mod = "flutters" | ||
default_color = "00FF00" | ||
species_traits = list(LIPS, SPECIES_ORGANIC, NOEYES) | ||
mutant_bodyparts = list("moth_wings") | ||
default_features = list("moth_wings" = "Plain") | ||
attack_verb = "slash" | ||
attack_sound = 'sound/weapons/slash.ogg' | ||
miss_sound = 'sound/weapons/slashmiss.ogg' | ||
meat = /obj/item/reagent_containers/food/snacks/meat/slab/human/mutant/moth | ||
liked_food = VEGETABLES | DAIRY | ||
disliked_food = FRUIT | GROSS | ||
toxic_food = MEAT | RAW | ||
|
||
/datum/species/moth/on_species_gain(mob/living/carbon/C) | ||
. = ..() | ||
if(ishuman(C)) | ||
var/mob/living/carbon/human/H = C | ||
if(!H.dna.features["moth_wings"]) | ||
H.dna.features["moth_wings"] = "[(H.client && H.client.prefs && LAZYLEN(H.client.prefs.features) && H.client.prefs.features["moth_wings"]) ? H.client.prefs.features["moth_wings"] : "Plain"]" | ||
handle_mutant_bodyparts(H) | ||
C.grant_language(/datum/language/moth) | ||
|
||
/datum/species/moth/on_species_loss(mob/living/carbon/C) | ||
. = ..() | ||
C.remove_language(/datum/language/moth) | ||
|
||
/datum/species/moth/random_name(gender,unique,lastname) | ||
if(unique) | ||
return random_unique_moth_name(gender) | ||
|
||
var/randname = moth_name(gender) | ||
|
||
if(lastname) | ||
randname += " [lastname]" | ||
|
||
return randname | ||
|
||
/datum/species/moth/qualifies_for_rank(rank, list/features) | ||
if(CONFIG_GET(flag/enforce_human_authority) && (rank in GLOB.command_positions)) | ||
return FALSE | ||
return TRUE | ||
|
||
/datum/species/moth/handle_fire(mob/living/carbon/human/H, no_protection = FALSE) | ||
..() | ||
if(H.dna.features["moth_wings"] != "Punished") | ||
if(H.bodytemperature >= 800)//If you reach this, you're in the red zone with the lil +. | ||
to_chat(H, "<span class='danger'>Your precious wings burn to a crisp!</span>") | ||
H.dna.features["moth_wings"] = "Punished" | ||
handle_mutant_bodyparts(H) | ||
|
||
/datum/species/moth/handle_chemicals(datum/reagent/chem, mob/living/carbon/human/H) | ||
. = ..() | ||
if(chem.id == "pestkiller") | ||
H.adjustToxLoss(3) | ||
H.reagents.remove_reagent(chem.id, REAGENTS_METABOLISM) | ||
|
||
/datum/species/moth/check_weakness(obj/item/weapon, mob/living/attacker) | ||
if(istype(weapon, /obj/item/melee/flyswatter)) | ||
return 9 //Flyswatters deal 10x damage to moths. | ||
return 0 | ||
|
||
//they can fly! | ||
/datum/species/moth/space_move(mob/living/carbon/human/H) | ||
. = ..() | ||
if(H.loc && !isspaceturf(H.loc)) | ||
var/datum/gas_mixture/current = H.loc.return_air() | ||
if(current && (current.return_pressure() >= ONE_ATMOSPHERE*0.75)) | ||
return TRUE |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
??
There is nothing in this file in this commit besides removing the line ending.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there WAS something in this file, i removed it, now git is being a shit