Skip to content
Snippets Groups Projects
Commit 24a21b81 authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'documentation' into 'pregmod-master'

add limb function documentation

See merge request !5073
parents f9014d4b 1f388977
No related branches found
No related tags found
1 merge request!5073add limb function documentation
## Basic documentation for the limb access functions coming with the new limb system.
### ID system
The new system uses new IDs instead of the old ones.
```
limb new old
no limb: 0 1
natural: 1 0
basic: 2 -1
sex: 3 -2
beauty: 4 -3
combat: 5 -4
cybernetic: 6 -5
```
### Usage example:
```
<<if isAmputee($activeSlave)>>
Slave is full amputee.
<</if>>
```
Most functions can be used like this, though some are more specialized.
### Functions:
`isAmputee(slave)`:
True if slave has no limbs, neither natural nor prosthetic.
`hasAnyNaturalLimbs(slave)`:
True if slave has at least one natural limb.
`hasAnyProstheticLimbs(slave)`:
True if slave has at least one prosthetic limb.
`hasAnyLegs(slave)`:
True if slave has at least one leg.
`hasAnyArms(slave)`:
True if slave has at least one arm.
`hasAnyNaturalLegs(slave)`:
True if slave has at least one leg and all are natural.
`hasBothLegs(slave)`:
True if slave has both legs.
`hasBothArms(slave)`:
True if slave has both arms.
`hasBothNaturalLegs(slave)`:
True if slave has both legs and they are natural.
`hasBothNaturalArms(slave)`:
True if slave has both arms and they are natural.
`hasLegAndArm(slave)`:
True if slave has at least one leg and at least one arm.
`hasAllLimbs(slave)`:
True if slave has all limbs.
`hasAllNaturalLimbs(slave)`:
True if slave has all limbs and all are natural.
`idToDescription(id)`:
Returns a very short description of the specified limb ID.
0: "amputated";
1: "healthy";
2: "modern prosthetic";
3: "advanced, sex-focused prosthetic";
4: "advanced, beauty-focused prosthetic";
5: "advanced, combat-focused prosthetic";
6: "highly advanced cybernetic";
`getLimbCount(slave, id)`:
Returns count of specified limb ID.
`hasLimb(slave, limb)`:
True if slave has specified limb.
Allowed values for limb: "left arm", "right arm", "left leg", "right leg".
`getLimbID(slave, limb)`:
Returns limb ID of the specified limb.
Allowed values for limb: "left arm", "right arm", "left leg", "right leg".
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