-
Notifications
You must be signed in to change notification settings - Fork 565
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
Adds improvisation traits #3836
Closed
Closed
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
fa33367
Adds improviser+learner traits
Katskan 3255fb2
Fixes issue with mods who don't have fast learner
Katskan 34e522f
Merge branch 'master' into Adds-Improvisation-Traits
Katskan e92ab08
Merge branch 'master' into Adds-Improvisation-Traits
Katskan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,7 +102,8 @@ affected_limb, or location vars. Also, in that case there may be a wait between | |
|
||
if(ispath(tool_type)) //Tool speed modifier. This means hand & any item are 100% efficient as surgical tools. | ||
tool_modifier = tools[tool_type] | ||
step_duration *= tool_modifier | ||
if(!(HAS_TRAIT(user, TRAIT_IMPROVISER))) | ||
step_duration *= tool_modifier | ||
|
||
if(surgery.lying_required) //Surgery surface modifier. | ||
surface_modifier = target.buckled?.surgery_duration_multiplier //If they're buckled, use the surface modifier of the thing they're buckled to. | ||
|
@@ -111,8 +112,8 @@ affected_limb, or location vars. Also, in that case there may be a wait between | |
for(var/obj/surface in get_turf(target)) //Otherwise, get the lowest surface modifier of objects on their turf. | ||
if(surface_modifier > surface.surgery_duration_multiplier) | ||
surface_modifier = surface.surgery_duration_multiplier | ||
|
||
step_duration *= surface_modifier | ||
if(!(HAS_TRAIT(user, TRAIT_FASTLEARNER))) | ||
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. No go for fast learner |
||
step_duration *= surface_modifier | ||
|
||
var/list/human_modifiers = list("surgery_speed" = 1.0, "pain_reduction" = 0) | ||
SEND_SIGNAL(user, COMSIG_HUMAN_SURGERY_APPLY_MODIFIERS, human_modifiers) | ||
|
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.
Just half the malus rather than completely remove it, regular tools should still be better