Go to most recent revision | Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | pmbaty | 1 | /* |
| 2 | * src/e_bonus.c |
||
| 3 | * |
||
| 4 | * Copyright (C) 1998-2002 BigOrno (bigorno@bigorno.net). All rights reserved. |
||
| 5 | * |
||
| 6 | * The use and distribution terms for this software are contained in the file |
||
| 7 | * named README, which can be found in the root of this distribution. By |
||
| 8 | * using this software in any fashion, you are agreeing to be bound by the |
||
| 9 | * terms of this license. |
||
| 10 | * |
||
| 11 | * You must not remove this notice, or any other, from this software. |
||
| 12 | */ |
||
| 13 | |||
| 14 | #include "system.h" |
||
| 15 | #include "game.h" |
||
| 16 | #include "ents.h" |
||
| 17 | #include "e_bonus.h" |
||
| 18 | |||
| 19 | #include "e_rick.h" |
||
| 20 | #include "maps.h" |
||
| 21 | |||
| 22 | |||
| 23 | /* |
||
| 24 | * Entity action |
||
| 25 | * |
||
| 26 | * ASM 242C |
||
| 27 | */ |
||
| 28 | void e_bonus_action (U8 e) |
||
| 29 | { |
||
| 30 | if (E_RICK_STTST (E_RICK_STZOMBIE)) |
||
| 31 | return; |
||
| 32 | |||
| 33 | if (e_rick_boxtest (e)) |
||
| 34 | { |
||
| 35 | game_score += 500; |
||
| 36 | syssnd_play (WAV_BONUS, 1); |
||
| 37 | map_marks[ent_ents[e].mark].ent |= MAP_MARK_NACT; |
||
| 38 | ent_ents[e].n = 0; |
||
| 39 | } |
||
| 40 | } |