// Adjust the alignment of oSubject. // - oSubject // - nAlignment: // -> ALIGNMENT_LAWFUL/ALIGNMENT_CHAOTIC/ALIGNMENT_GOOD/ALIGNMENT_EVIL: oSubject's // alignment will be shifted in the direction specified // -> ALIGNMENT_ALL: nShift will be added to oSubject's law/chaos and // good/evil alignment values // -> ALIGNMENT_NEUTRAL: nShift is applied to oSubject's law/chaos and // good/evil alignment values in the direction which is towards neutrality. // e.g. If oSubject has a law/chaos value of 10 (i.e. chaotic) and a // good/evil value of 80 (i.e. good) then if nShift is 15, the // law/chaos value will become (10+15)=25 and the good/evil value will // become (80-25)=55 // Furthermore, the shift will at most take the alignment value to 50 and // not beyond. // e.g. If oSubject has a law/chaos value of 40 and a good/evil value of 70, // then if nShift is 15, the law/chaos value will become 50 and the // good/evil value will become 55 // - nShift: this is the desired shift in alignment // * No return value void AdjustAlignment(object oSubject, int nAlignment, int nShift);
Community content is available under CC-BY-SA unless otherwise noted.