Mercurial > hg > early-roguelike
comparison xrogue/daemons.c @ 300:0250220d8cdd
Fix an assortment of compiler warnings.
A few potential bugs were removed in the process. Much code cleanup
remains to be done.
author | John "Elwin" Edwards |
---|---|
date | Fri, 22 Nov 2019 21:18:27 -0500 |
parents | 7c1cb43f346e |
children |
comparison
equal
deleted
inserted
replaced
299:74351bf23e5e | 300:0250220d8cdd |
---|---|
694 if (purse == 100) | 694 if (purse == 100) |
695 msg("%s.. Demands that you find more gold! ", inv_name(obj, FALSE)); | 695 msg("%s.. Demands that you find more gold! ", inv_name(obj, FALSE)); |
696 if (purse == 50) | 696 if (purse == 50) |
697 msg("%s.. Commands you to find more gold!! ", inv_name(obj, FALSE)); | 697 msg("%s.. Commands you to find more gold!! ", inv_name(obj, FALSE)); |
698 if (purse == 0) { | 698 if (purse == 0) { |
699 if (rnd(10) >= 7) | 699 if (rnd(10) >= 7) |
700 msg("You feel the artifact gnawing away... "); | 700 msg("You feel the artifact gnawing away... "); |
701 if (--pstats.s_hpt < 1) { | 701 if (--pstats.s_hpt < 1) { |
702 pstats.s_hpt = -1; | 702 pstats.s_hpt = -1; |
703 death(D_RELIC); | 703 death(D_RELIC); |
704 } | 704 } |
705 } | 705 } |
706 else | 706 else |
707 purse--; | 707 purse--; |
708 } | 708 } |
709 | 709 |