Shipwright/soh/include/global.h
Sarge-117 9c162fc0ec
Gameplay Stat Tracker V1 (#1986)
* First test of gathering some gameplay stats

* timer changes and other stuff

* Move code to new files + rename

* Name change - gamePlayStats

* Finish rename, remove n64ddFlag checks

* Improve item get times

* Better time tracking, more stats,

* Put button under Enhancements

* Fix merge conflict

* Add pauseCount, fix bug with rando items

* Adjust inits/declarations

* step counter

* Name change: "itemGetTime" to "timestamp"

* Tidying + CI test

* Set up array for stat counts

* Macro

#define GAMEPLAYSTAT_TOTAL_TIME (gSaveContext.gameplayStats.playTimer / 2 + gSaveContext.gameplayStats.pauseTimer / 3)

* Add boss defeat timestamps

* Add sword swings, pots broken, bushes cut

* fix int type

* Add counts for enemies defeated

Broken down by enemy, with a total

* Add ammo used

* Hide breakdowns until count > 0

* Forgot Big Octo

* Count chests opened

* Update after LUS submodule

* Enemy count spacing

* Comments

* Count 3 mini Floormasters as 1 Floormaster

+ some cleanup

* Comments

* Colour coding for timestamps on quest items

i.e. medallions/stones/songs

* Move stat into the sohStats struct

+ rearrange the counts enum for easier addition of future counts

* Some documentation + count button presses

* Stop counting button presses when Ganon defeated

* Couple bugfixes

Add count for Gerudo Thief, fix step counter counting in some situations where it shouldn't

* Fix comment
2022-11-22 20:04:40 -05:00

46 lines
1.2 KiB
C

#ifndef GLOBAL_H
#define GLOBAL_H
#include "functions.h"
#include "variables.h"
#include "macros.h"
#include "soh/OTRGlobals.h"
#include "soh/Enhancements/gameconsole.h"
#include "soh/Enhancements/gameplaystats.h"
#include <Cvar.h>
#define _AudioseqSegmentRomStart "Audioseq"
#define _AudiobankSegmentRomStart "Audiobank"
#define _AudiotableSegmentRomStart "Audiotable"
#define _icon_item_staticSegmentRomStart 0
#define _icon_item_staticSegmentRomEnd 0
#define _map_i_staticSegmentRomStart 0
#define _map_i_staticSegmentRomEnd 0
#define _message_staticSegmentRomStart 0
#define _message_staticSegmentRomEnd 0
#define _do_action_staticSegmentRomStart 0
#define _do_action_staticSegmentRomEnd 0
#define _nes_font_staticSegmentRomStart 0
#define _nes_font_staticSegmentRomEnd 0
#define _nintendo_rogo_staticSegmentRomStart 0
#define _nintendo_rogo_staticSegmentRomEnd 0
#define _dmadataSegmentStart 0
#define _dmadataSegmentEnd 0
#define _parameter_staticSegmentRomStart 0
#define _parameter_staticSegmentRomEnd 0
#define _map_name_staticSegmentRomStart 0
#define _map_name_staticSegmentRomEnd 0
#define _title_staticSegmentRomStart 0
#define _title_staticSegmentRomEnd 0
#define _z_select_staticSegmentRomStart 0
#define _z_select_staticSegmentRomEnd 0
#endif