Mitigating or aggravating circumstances and habitual delinquency shall be taken into account for the purpose of diminishing or increasing the penalty in conformity with the following rules:
1. Aggravating circumstances which in themselves constitute a crime specially punishable by law or which are included by the law in defining a crime and prescribing the penalty therefor shall not be taken into account for the purpose of increasing the penalty.
2. The same rule shall apply with respect to any aggravating circumstance inherent in the crime to such a degree that it must of necessity accompany the commission thereof.
3. Aggravating or mitigating circumstances which arise from the moral attributes of the offender, or from his private relations with the offended party, or from any other personal cause, shall only serve to aggravate or mitigate the liability of the principals, accomplices and accessories as to whom such circumstances are attendant.
4. The circumstances which consist in the material execution of the act, or in the means employed to accomplish it, shall serve to aggravate or mitigate the liability of those persons only who had knowledge of them at the time of the execution of the act or their cooperation therein.
5. Habitual delinquency shall have the following effects:
(a) Upon a third conviction the culprit shall be sentenced to the penalty provided by law for the last crime of which he be found guilty and to the additional penalty of prision correccional in its medium and maximum periods;
(b) Upon a fourth conviction, the culprit shall be sentenced to the penalty provided for the last crime of which he be found guilty and to the additional penalty of prision mayor in its minimum and medium periods; and
(c) Upon a fifth or additional conviction, the culprit shall be sentenced to the penalty provided for the last crime of which he be found guilty and to the additional penalty of prision mayor in its maximum period to reclusion temporal in its minimum period.
Notwithstanding the provisions of this article, the total of the two penalties to be imposed upon the offender, in conformity herewith, shall in no case exceed 30 years.
For the purpose of this article, a person shall be deemed to be habitual delinquent, is within a period of ten years from the date of his release or last conviction of the crimes of serious or less serious physical injuries, robo, hurto, estafa or falsification, he is found guilty of any of said crimes a third time or oftener.