-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIRROR] Add new fitness skill and mechanics [MDB IGNORE] (#24448) (#185
) * Add new fitness skill and mechanics * Modular changes * No size increase * Update fitness.dm --------- Co-authored-by: SkyratBot <[email protected]> Co-authored-by: Tim <[email protected]> Co-authored-by: Giz <[email protected]>
- Loading branch information
1 parent
8e64254
commit a64e90c
Showing
7 changed files
with
159 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/datum/skill/fitness | ||
name = "Fitness" | ||
title = "Fitness" | ||
desc = "Twinkle twinkle little star, hit the gym and lift the bar." | ||
/// The skill value modifier effects the max duration that is possible for /datum/status_effect/exercised | ||
modifiers = list(SKILL_VALUE_MODIFIER = list(2 MINUTES, 3 MINUTES, 4 MINUTES, 5 MINUTES, 6 MINUTES, 7 MINUTES, 10 MINUTES)) | ||
// skill_item_path - your mob sprite gets bigger to showoff so we don't get a special item | ||
|
||
/* SKYRAT EDIT REMOVAL START - NO SIZE INCREASE | ||
/datum/skill/fitness/level_gained(datum/mind/mind, new_level, old_level, silent) | ||
. = ..() | ||
var/size_boost = (new_level == SKILL_LEVEL_LEGENDARY) ? 0.25 : 0.05 | ||
var/gym_size = RESIZE_DEFAULT_SIZE + size_boost | ||
mind.current.update_transform(gym_size) | ||
/datum/skill/fitness/level_lost(datum/mind/mind, new_level, old_level, silent) | ||
. = ..() | ||
var/size_boost = (new_level == SKILL_LEVEL_LEGENDARY) ? 0.25 : 0.05 | ||
var/gym_size = RESIZE_DEFAULT_SIZE + size_boost | ||
mind.current.update_transform(RESIZE_DEFAULT_SIZE / gym_size) | ||
SKYRAT EDIT REMOVAL END */ |
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