Skip to content
Snippets Groups Projects
Commit a4281480 authored by Arkerthan's avatar Arkerthan
Browse files

add findProsthetic()

parent c7c822bd
No related branches found
No related tags found
1 merge request!5323add body mod support for prosthetics
...@@ -189,6 +189,15 @@ window.addProsthetic = function(slave, prosthetic) { ...@@ -189,6 +189,15 @@ window.addProsthetic = function(slave, prosthetic) {
} }
}; };
/**
* @param {App.Entity.SlaveState} slave
* @param {string} prosthetic
* @returns {{}}
*/
window.findProsthetic = function(slave, prosthetic) {
return slave.readyProsthetics.find(p => p.id === prosthetic);
};
/** /**
* @param {string} prosthetic * @param {string} prosthetic
* @returns {number} * @returns {number}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment