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

add limb prosthetic conversion functions

parent 692509a4
No related branches found
No related tags found
1 merge request!5323add body mod support for prosthetics
...@@ -188,3 +188,46 @@ window.addProsthetic = function(slave, prosthetic) { ...@@ -188,3 +188,46 @@ window.addProsthetic = function(slave, prosthetic) {
slave.readyProsthetics.push({id: prosthetic}); slave.readyProsthetics.push({id: prosthetic});
} }
}; };
/**
* @param {string} prosthetic
* @returns {number}
*/
window.prostheticToLimb = function(prosthetic) {
switch (prosthetic) {
case "basicL":
return 2;
case "sexL":
return 3;
case "beautyL":
return 4;
case "combatL":
return 5;
case "cyberneticL":
return 6;
default:
return 0;
}
};
/**
*
* @param {number} limb
* @returns {string}
*/
window.limbToProsthetic = function(limb) {
switch (limb) {
case 2:
return "basicL";
case 3:
return "sexL";
case 4:
return "beautyL";
case 5:
return "combatL";
case 6:
return "cyberneticL";
default:
return "";
}
};
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