-
-
Notifications
You must be signed in to change notification settings - Fork 284
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
Races port #1056
base: master
Are you sure you want to change the base?
Races port #1056
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
/datum/species/diona | ||
name = "Diona" | ||
id = SPECIES_DIONA | ||
override_bp_icon = 'modular_splurt/icons/mob/diona.dmi' | ||
species_language_holder = /datum/language_holder/diona | ||
|
||
species_traits = list( | ||
NO_UNDERWEAR | ||
) | ||
|
||
exotic_blood_color = "#004400" | ||
//flesh_color = "#808D11" | ||
|
||
min_age = 1 | ||
max_age = 300 | ||
say_mod = "chirrups" | ||
eye_type = "diona" | ||
allowed_limb_ids = null | ||
damage_overlay_type = "diona" | ||
|
||
/datum/species/diona/check_roundstart_eligible() | ||
return TRUE | ||
|
||
/datum/language_holder/diona | ||
understood_languages = list(/datum/language/common = list(LANGUAGE_ATOM), | ||
/datum/language/diona = list(LANGUAGE_ATOM)) | ||
spoken_languages = list(/datum/language/common = list(LANGUAGE_ATOM), | ||
/datum/language/diona = list(LANGUAGE_ATOM)) | ||
|
||
/datum/language/diona | ||
|
||
/datum/species/diona/on_species_gain(mob/living/carbon/human/C, datum/species/old_species, pref_load) | ||
if(ishuman(C)) | ||
C.add_movespeed_modifier(/datum/movespeed_modifier/diona) | ||
C.verbs += /mob/living/carbon/human/proc/regenerate | ||
C.verbs += /mob/living/carbon/human/proc/diona_split_nymph | ||
..() | ||
|
||
/datum/movespeed_modifier/diona | ||
multiplicative_slowdown = 2 | ||
|
||
/datum/species/diona/spec_life(mob/living/carbon/human/H) | ||
var/turf/T = get_turf(H) | ||
if(T) | ||
var/light_amount = T.get_lumcount()*10 | ||
|
||
if((H.nutrition + light_amount) < initial(H.nutrition)) | ||
H.adjust_nutrition(light_amount) | ||
|
||
if(light_amount >= 3) //if there's enough light, heal | ||
H.adjustBruteLoss(-(round(light_amount/2))) | ||
H.adjustFireLoss(-(round(light_amount/2))) | ||
H.adjustToxLoss(-(light_amount)) | ||
H.adjustOxyLoss(-(light_amount)) | ||
//TODO: heal wounds, heal broken limbs. | ||
if(H.nutrition < 200) | ||
H.take_overall_damage(2,0) | ||
|
||
/mob/living/carbon/human | ||
var/active_regen = FALSE //Used for the regenerate proc in human_powers.dm | ||
var/active_regen_delay = 300 | ||
|
||
/mob/living/carbon/human/proc/regenerate() | ||
set name = "Regenerate" | ||
set desc = "Allows you to regrow limbs and heal organs after a period of rest." | ||
set category = "Abilities" | ||
|
||
if(nutrition < 250) | ||
to_chat(src, "<span class='warning'>You lack the biomass to begin regeneration!</span>") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
return | ||
|
||
if(active_regen) | ||
to_chat(src, "<span class='warning'>You are already regenerating tissue!</span>") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
return | ||
else | ||
active_regen = TRUE | ||
src.visible_message("<span class='filter_notice'><B>[src]</B>'s flesh begins to mend...</span>") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
var/delay_length = round(active_regen_delay * 1) | ||
if(do_after(src,delay_length)) | ||
adjust_nutrition(-200) | ||
|
||
regenerate_limbs() | ||
regenerate_organs() | ||
remove_all_embedded_objects() | ||
set_heartattack(FALSE) | ||
|
||
handle_organs() // Update everything | ||
|
||
active_regen = FALSE | ||
else | ||
to_chat(src, "<span class='critical'>Your regeneration is interrupted!</span>") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
adjust_nutrition(-75) | ||
active_regen = FALSE | ||
|
||
|
||
/mob/living/carbon/human/proc/diona_split_nymph() | ||
set name = "Split" | ||
set desc = "Split your humanoid form into its constituent nymphs." | ||
set category = "Abilities" | ||
var/turf/T = get_turf(src) | ||
|
||
var/mob/living/carbon/alien/diona/S = new(T) | ||
|
||
if(mind) | ||
mind.transfer_to(S) | ||
|
||
message_admins("\The [src] has split into nymphs; player now controls [key_name_admin(S)]") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this admin-logged? |
||
log_admin("\The [src] has split into nymphs; player now controls [key_name(S)]") | ||
|
||
|
||
for(var/obj/item/W in src) | ||
dropItemToGround(W) | ||
|
||
visible_message("<span class='warning'>\The [src] quivers slightly, then splits apart with a wet slithering noise.</span>") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. span_warning("text") |
||
qdel(src) | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
/mob/living/carbon/alien/diona | ||
name = "diona nymph" | ||
var/adult_form = /mob/living/carbon/human/species/mammal/diona | ||
var/can_namepick_as_adult = 1 | ||
var/adult_name = "diona gestalt" | ||
icon_state = "nymph" | ||
//race = /datum/species/diona | ||
var/amount_grown = 0 | ||
var/max_grown = 325 | ||
verb_say = "chirrups" | ||
initial_language_holder = /datum/language_holder/diona | ||
/* | ||
|
||
/mob/living/carbon/alien/diona/Initialize() | ||
. = ..() | ||
race = /datum/species/diona | ||
add_language(LANGUAGE_ROOTGLOBAL) | ||
add_language(LANGUAGE_GALCOM) | ||
verbs += /mob/living/carbon/alien/diona/proc/merge | ||
|
||
/mob/living/carbon/alien/diona/get_available_emotes() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove all of this code ffs |
||
return global._nymph_default_emotes.Copy() | ||
|
||
|
||
/mob/living/carbon/alien/diona/put_in_hands(var/obj/item/W) // No hands. | ||
W.loc = get_turf(src) | ||
return 1 | ||
|
||
/mob/living/carbon/alien/diona/proc/wear_hat(var/obj/item/new_hat) | ||
if(hat) | ||
return | ||
hat = new_hat | ||
new_hat.loc = src | ||
update_icons() | ||
*/ | ||
/mob/living/carbon/alien/diona/proc/handle_npc(var/mob/living/carbon/alien/diona/D) | ||
if(D.stat != CONSCIOUS) | ||
return | ||
if(prob(33) && isturf(D.loc) && !D.pulledby) //won't move if being pulled | ||
step(D, pick(NORTH, SOUTH, EAST, WEST)) | ||
if(prob(1)) | ||
D.emote(pick("scratch","jump","chirp","roll")) | ||
|
||
/mob/living/carbon/alien/diona/ComponentInitialize() | ||
. = ..() | ||
AddElement(/datum/element/mob_holder, worn_state = "diona", inv_slots = ITEM_SLOT_HEAD) | ||
|
||
/mob/living/carbon/alien/diona/Life() | ||
..() | ||
if(amount_grown < max_grown) | ||
amount_grown++ | ||
|
||
/mob/living/carbon/alien/diona/movement_delay() | ||
return 2 | ||
|
||
/mob/living/carbon/alien/diona/verb/evolve() | ||
|
||
set name = "Evolve" | ||
set desc = "Evolve into your adult form." | ||
set category = "Abilities" | ||
|
||
if(stat != CONSCIOUS) | ||
return | ||
|
||
if(!adult_form) | ||
verbs -= /mob/living/carbon/alien/diona/verb/evolve | ||
return | ||
|
||
if(amount_grown < max_grown) | ||
to_chat(src, "<font color='red'>You are not fully grown.</font>") | ||
return | ||
var/mob/living/carbon/human/adult = new adult_form(get_turf(src)) | ||
|
||
|
||
if(mind) | ||
mind.transfer_to(adult) | ||
if (can_namepick_as_adult) | ||
var/newname = sanitize(tgui_input_text(adult, "You have become an adult. Choose a name for yourself.", "Adult Name", null, MAX_NAME_LEN), MAX_NAME_LEN) | ||
|
||
if(!newname) | ||
adult.fully_replace_character_name(name, "[src.adult_name]") | ||
else | ||
adult.fully_replace_character_name(name, newname) | ||
else | ||
adult.key = src.key | ||
|
||
for (var/obj/item/W in src.contents) | ||
dropItemToGround(W) | ||
|
||
qdel(src) |
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.
undefine min_age and max_age, as 1 would be below 18 (our minimum age) for species.
I don't care if they can't have genitals due to the fact you forgot to do ANY adjustment; we do not allow people with characters below the age of 18 on the server.