LCOV - code coverage report
Current view: top level - omega-rpg-0.90-pa9 - mstrike.c (source / functions) Hit Total Coverage
Test: lcov.info Lines: 0 41 0.0 %
Date: 2017-09-08 22:00:26 Functions: 0 7 0.0 %
Branches: 0 14 0.0 %

           Branch data     Line data    Source code
       1                 :            : /* omega copyright (c) 1987,1988,1989 by Laurence Raphael Brothers */
       2                 :            : /* mstrike.c */
       3                 :            : /* monster strike functions */
       4                 :            : 
       5                 :            : #include "glob.h"
       6                 :            : 
       7                 :            : 
       8                 :          0 : void m_firebolt(pmt m)
       9                 :            : {
      10                 :          0 :   fbolt(m->x,m->y,Player.x,Player.y,m->hit,m->dmg);
      11                 :          0 : }
      12                 :            : 
      13                 :          0 : void m_nbolt(pmt m)
      14                 :            : {
      15                 :          0 :   nbolt(m->x,m->y,Player.x,Player.y,m->hit,m->dmg);
      16                 :          0 : }
      17                 :            : 
      18                 :            : 
      19                 :          0 : void m_lball(pmt m)
      20                 :            : {
      21                 :          0 :   lball(m->x,m->y,Player.x,Player.y,m->dmg);
      22                 :          0 : }
      23                 :            : 
      24                 :          0 : void m_fireball(pmt m)
      25                 :            : {
      26                 :          0 :   fball(m->x,m->y,Player.x,Player.y,m->dmg);
      27                 :          0 : }
      28                 :            : 
      29                 :            : 
      30                 :          0 : void m_snowball(pmt m)
      31                 :            : {
      32                 :          0 :   snowball(m->x,m->y,Player.x,Player.y,m->dmg);
      33                 :          0 : }
      34                 :            :     
      35                 :          0 : void m_blind_strike(pmt m)
      36                 :            : {
      37                 :            : 
      38                 :            :   pml ml;
      39   [ #  #  #  # ]:          0 :   if ((Player.status[BLINDED] == 0) &&
      40         [ #  # ]:          0 :       los_p(m->x,m->y,Player.x,Player.y) &&
      41                 :          0 :       (distance(m->x,m->y,Player.x,Player.y) < 5)) {
      42         [ #  # ]:          0 :     if (m->uniqueness == COMMON) {
      43                 :          0 :       strcpy(Str2,"The ");
      44                 :          0 :       strcat(Str2,m->monstring);
      45                 :            :     }
      46                 :          0 :     else strcpy(Str2,m->monstring);
      47                 :          0 :     strcat(Str2," gazes at you menacingly");
      48                 :          0 :     mprint(Str2);
      49         [ #  # ]:          0 :     if (! p_immune(GAZE)) {
      50                 :          0 :       mprint("You've been blinded!");
      51                 :          0 :       Player.status[BLINDED] = random_range(4)+1;
      52         [ #  # ]:          0 :       for(ml=Level->mlist;ml!=NULL;ml=ml->next) 
      53                 :          0 :         plotspot(ml->m->x,ml->m->y,FALSE);
      54                 :            :     }
      55                 :          0 :     else mprint("You gaze steadily back....");
      56                 :            :   }
      57                 :          0 : }
      58                 :            : 
      59                 :            : 
      60                 :            : 
      61                 :            : 
      62                 :          0 : void m_strike_sonic(pmt m)
      63                 :            : {
      64         [ #  # ]:          0 :   if (m->uniqueness == COMMON) {
      65                 :          0 :     strcpy(Str2,"The ");
      66                 :          0 :     strcat(Str2,m->monstring);
      67                 :            :   }
      68                 :          0 :   else strcpy(Str2,m->monstring);
      69                 :          0 :   strcat(Str2," screams at you!");
      70                 :          0 :   mprint(Str2);
      71                 :          0 :   p_damage(m->dmg,OTHER_MAGIC,"a sonic blast");
      72                 :          0 : }
      73                 :            : 

Generated by: LCOV version 1.11