mirror of
https://codeberg.org/noisytoot/notnotdnethack.git
synced 2025-07-27 07:52:25 +01:00
Buff: Armor salve fixes equip up to +3, and restores 2 points per charge
This commit is contained in:
parent
8a5b9b0466
commit
d0b98a2b54
1 changed files with 4 additions and 4 deletions
|
@ -5911,8 +5911,8 @@ void
|
|||
salve_effect(otmp)
|
||||
struct obj *otmp;
|
||||
{
|
||||
int oerodedLevel = 3;
|
||||
int speLevel = -5;
|
||||
int oerodedLevel = 3;//3, 2, 1
|
||||
int speLevel = -5; //-5, -1, +3
|
||||
|
||||
for(int i = 0; i < 3; i++){
|
||||
if(otmp->oeroded >= oerodedLevel){
|
||||
|
@ -5928,11 +5928,11 @@ struct obj *otmp;
|
|||
return;
|
||||
}
|
||||
else if((otmp->oclass == ARMOR_CLASS || otmp->oclass == WEAPON_CLASS || is_weptool(otmp)) && otmp->spe <= speLevel){
|
||||
otmp->spe++;
|
||||
otmp->spe = min(3, otmp->spe+2);
|
||||
return;
|
||||
}
|
||||
oerodedLevel--;
|
||||
speLevel /= 2;
|
||||
speLevel += 4;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue