forked from TauCetiStation/TauCetiClassic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
109 changed files
with
1,521 additions
and
659 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 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
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,62 @@ | ||
/datum/willpower_effect | ||
var/name = "Эффект воли" | ||
var/desc = "Крутое описание." | ||
var/cost = 1 | ||
var/effect_sound = 'sound/effects/willpower.ogg' | ||
|
||
/datum/willpower_effect/proc/special_check(mob/living/carbon/human/user) | ||
return TRUE | ||
|
||
/datum/willpower_effect/proc/do_effect(mob/living/carbon/human/user) | ||
user.playsound_local(null, effect_sound, VOL_EFFECTS_MASTER, vary = FALSE, frequency = null, ignore_environment = TRUE) | ||
to_chat(user, desc) | ||
|
||
/datum/willpower_effect/painkiller | ||
name = "Превозмочь боль" | ||
desc = "<span class='green bold'>Ваше тело сопротивляется боли.</span>" | ||
|
||
/datum/willpower_effect/painkiller/do_effect(mob/living/carbon/human/user) | ||
..() | ||
user.reagents.add_reagent("endorphine", 15) | ||
|
||
/datum/willpower_effect/skills | ||
name = "Сосредоточиться на задаче" | ||
desc = "<span class='nicegreen'>Вы сосредотачиваетесь. В течение минуты профессиональные действия будут даваться вам легче.</span>" | ||
|
||
/datum/willpower_effect/skills/do_effect(mob/living/carbon/human/user) | ||
..() | ||
var/datum/skillset/willpower/buff = new | ||
user.add_skills_buff(buff, 1 MINUTE) | ||
addtimer(CALLBACK(null, PROC_REF(to_chat), src, "<span class='notice'>Вы теряете концентрацию.</span>"), 1 MINUTE) | ||
|
||
/datum/willpower_effect/nutrition | ||
name = "Перетерпеть голод" | ||
desc = "<span class='nicegreen'>Вы стараетесь не обращать внимания на бурчание в животе.</span>" | ||
|
||
/datum/willpower_effect/nutrition/special_check(mob/living/carbon/human/user) | ||
if(user.nutrition >= NUTRITION_LEVEL_NORMAL) | ||
to_chat(user, "<span class='notice'>Вы не голодны.</span>") | ||
return FALSE | ||
return TRUE | ||
|
||
/datum/willpower_effect/nutrition/do_effect(mob/living/carbon/human/user) | ||
..() | ||
user.nutrition = NUTRITION_LEVEL_WELL_FED | ||
|
||
/datum/willpower_effect/fat | ||
name = "Сжечь калории" | ||
desc = "<span class='nicegreen'>Вы напрягаете свой живот, сбрасывая вес по древней скрелльской методике похудания.</span>" | ||
|
||
/datum/willpower_effect/fat/special_check(mob/living/carbon/human/user) | ||
if(user.nutrition <= NUTRITION_LEVEL_NORMAL) | ||
to_chat(user, "<span class='notice'>Вы не переели.</span>") | ||
return FALSE | ||
else if(HAS_TRAIT_FROM(user, TRAIT_FAT, ROUNDSTART_TRAIT)) | ||
to_chat(user, "<span class='notice'>Вы даже помыслить не можете о том, чтобы сбросить вес.</span>") | ||
return FALSE | ||
return TRUE | ||
|
||
/datum/willpower_effect/fat/do_effect(mob/living/carbon/human/user) | ||
..() | ||
user.nutrition = NUTRITION_LEVEL_STARVING+50 | ||
user.overeatduration = 0 |
Oops, something went wrong.