Crossfire Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CF: Patch: bargaining
Hi,
originally people only complained about having to turn on mountaineer/
woodsman, so I fixed that. Unfortunately I forgot the bargaining skill...
so, here is the patch to use bargaining automatically (for those who
like it that way...)
------------------------------ Cut ------------------------------
*** crossfire-0.94.0/server/shop.c Sun Feb 8 06:26:19 1998
--- /usr/stud/stieber/crossfire/server/shop.c Wed Feb 18 19:06:42 1998
***************
*** 159,173 ****
if (who!=NULL && who->type==PLAYER) {
float diff;
charisma = who->stats.Cha; /* used for SK_BARGAINING modification */
! if(who->contr->shoottype == range_skill && who->chosen_skill)
! if(who->chosen_skill->stats.sp == SK_BARGAINING) {
! charisma = who->stats.Cha + (who->level+2)/3;
! if(charisma>30) charisma = 30;
! }
if (cha_bonus[charisma]<=1.0) {
LOG(llevError,"Illegal charisma bonus, %d <=1.0", cha_bonus[charisma]);
diff=0.9; /*pretty bad case */
}
else
--- 159,173 ----
if (who!=NULL && who->type==PLAYER) {
float diff;
charisma = who->stats.Cha; /* used for SK_BARGAINING modification */
!
! if (find_skill(who,SK_BARGAINING)) {
! charisma = who->stats.Cha + (who->level+2)/3;
! if(charisma>30) charisma = 30;
! }
if (cha_bonus[charisma]<=1.0) {
LOG(llevError,"Illegal charisma bonus, %d <=1.0", cha_bonus[charisma]);
diff=0.9; /*pretty bad case */
}
else
--
Christian (Icho/Gandhi/Ribald @sunbroy53.informatik.tu-muenchen.de, 13326)
[to unsubscribe etc., send mail to crossfire-request@ifi.uio.no]