Shipwright/soh/src/code
Sarge-117 52f22275e3
Fix Giant's Knife unexpected behaviours (#834)
* Giant's Knife Behaviour Fixes

Fixes a case where Giant's Knife (specifically, breaking and re-buying it) can behave unexpectedly if you don't have a Kokiri Sword in your inventory.  Also fixes the broken icon not showing up in inventory after you break it.

* less whitespace

* fix 0xE check

Accidentally committed with the wrong check

* Move the grayscale code up

Moved the grayscaling portion up higher in the function and renamed "bool not_acquired" to "bool age_restricted".  Thanks to @vaguerant for the suggestion!
2022-07-22 00:39:04 +02:00
..
__osMalloc.c change OSMesg definition and fix memory corruptions 2022-06-04 10:09:50 -05:00
audio_data.c Audio support nearly complete. 2022-06-16 20:35:52 -04:00
audio_effects.c Linux/GCC Support (#28) 2022-05-11 13:18:24 -04:00
audio_heap.c Removed legacy audio mode and fixed ganon sound bug (#657) 2022-07-11 22:37:39 -04:00
audio_init_params.c Removed ifdefs for audio heap sizes 2022-06-20 12:33:38 -05:00
audio_load.c Removed legacy audio mode and fixed ganon sound bug (#657) 2022-07-11 22:37:39 -04:00
audio_playback.c Removed legacy audio mode and fixed ganon sound bug (#657) 2022-07-11 22:37:39 -04:00
audio_seqplayer.c Fixed soundfont issues 2022-07-13 21:36:19 -04:00
audio_sound_params.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
audio_synthesis.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
audioMgr.c Update names 2022-06-27 23:17:37 -04:00
code_800A9F30.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
code_800ACE70.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_800AD920.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_800BB0A0.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_800C3C20.c 64-bit early draft - no audio yet 2022-05-15 01:19:02 +02:00
code_800D2E30.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_800D31A0.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_800E4FE0.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
code_800E6840.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_800EC960.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
code_800F7260.c Increased initial audio pool size and fixed types 2022-06-03 14:22:48 -05:00
code_800F9280.c Audio support nearly complete. 2022-06-16 20:35:52 -04:00
code_800FBCE0.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_800FC620.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
code_800FCE80.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_800FD970.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_8006C3A0.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_8006C510.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_80097A00.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_800430A0.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_801067F0.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_801068B0.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
code_80043480.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
db_camera.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
debug_malloc.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
fault_drawer.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
fault.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
flg_set.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
game.c FIX: RetrictItem SunSong issue (#839) 2022-07-18 22:47:37 -04:00
gamealloc.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
gfxprint.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
graph.c Fix 0xabababab crash (#617) 2022-07-08 17:39:50 -04:00
irqmgr.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
jpegdecoder.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
jpegutils.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
listalloc.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
loadfragment2.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
logseverity.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
main.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
mempak.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
mtxuty-cvt.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
padmgr.c Controller Configuration UI and JSON Config (#760) 2022-07-13 23:12:11 -04:00
padsetup.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
padutils.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
PreRender.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
printutils.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
relocation.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
sched.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
shrink_window.c #243 Add option to disable black bars letterboxes (#376) 2022-06-11 12:07:13 -04:00
sleep.c change OSMesg definition and fix memory corruptions 2022-06-04 10:09:50 -05:00
speed_meter.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
sys_cfb.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
sys_math3d.c Fix cylinder-tri intersection for GCC due to FLT_EVAL_METHOD (#157) 2022-04-17 11:19:45 -04:00
sys_math_atan.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
sys_math.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
sys_matrix.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
sys_ucode.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
system_malloc.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
title_setup.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
TwoHeadArena.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
ucode_disas.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_actor_dlftbls.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_actor.c Address rando pr comments (#742) 2022-07-18 19:20:07 -04:00
z_bgcheck.c Checkered room crash workaround (#615) 2022-07-07 22:21:14 -04:00
z_camera_data.inc Linux/GCC Support (#28) 2022-05-11 13:18:24 -04:00
z_camera.c Free cam collision v2 (#836) 2022-07-18 22:47:23 -04:00
z_cheap_proc.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_collision_btltbls.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_collision_check.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_common_data.c Versioned saves (#423) 2022-06-20 13:41:43 -04:00
z_construct.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_debug_display.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_debug.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_demo.c Address rando pr comments (#742) 2022-07-18 19:20:07 -04:00
z_DLF.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_draw.c testing out item replacement (#416) 2022-07-11 20:11:07 -04:00
z_eff_blure.c Cosmetics menu rework (#589) 2022-07-05 20:52:01 -04:00
z_eff_shield_particle.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_eff_spark.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_eff_ss_dead.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_effect_soft_sprite_dlftbls.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_effect_soft_sprite_old_init.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_effect_soft_sprite.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_effect.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_elf_message.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_en_a_keep.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_en_item00.c fix non-rando non-3d-drops small key crash (#789) 2022-07-18 19:22:12 -04:00
z_face_reaction.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_fbdemo_circle.c Linux/GCC Support (#28) 2022-05-11 13:18:24 -04:00
z_fbdemo_fade.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_fbdemo_triforce.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_fbdemo_wipe1.c Controller Configuration UI and JSON Config (#760) 2022-07-13 23:12:11 -04:00
z_fbdemo.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_fcurve_data_skelanime.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_frame_advance.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_game_dlftbls.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_game_over.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_horse.c testing out item replacement (#416) 2022-07-11 20:11:07 -04:00
z_jpeg.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_kaleido_manager.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_kaleido_scope_call.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_kaleido_setup.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_kanfont.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_kankyo.c Removed legacy audio mode and fixed ganon sound bug (#657) 2022-07-11 22:37:39 -04:00
z_lib.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_lifemeter.c Cosmetics menu rework (#589) 2022-07-05 20:52:01 -04:00
z_lights.c add descriptive todo for death crash bandaid (#655) 2022-07-11 21:58:31 -04:00
z_malloc.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_map_data.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_map_exp.c Cosmetics menu rework (#589) 2022-07-05 20:52:01 -04:00
z_map_mark.c Cosmetics menu rework (#589) 2022-07-05 20:52:01 -04:00
z_message_PAL.c Avoid UB on ocarinaAction shifts (#809) 2022-07-18 19:29:24 -04:00
z_moji.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_msgevent.c change OSMesg definition and fix memory corruptions 2022-06-04 10:09:50 -05:00
z_olib.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_onepointdemo_data.inc Save states (#300) 2022-05-12 13:28:24 -04:00
z_onepointdemo.c testing out item replacement (#416) 2022-07-11 20:11:07 -04:00
z_parameter.c Fix Giant's Knife unexpected behaviours (#834) 2022-07-22 00:39:04 +02:00
z_path.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_play.c Address rando pr comments (#742) 2022-07-18 19:20:07 -04:00
z_player_call.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_player_lib.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_prenmi_buff.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_prenmi.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_quake.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_rcp.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_room.c Prevent unrestricted items camera crash (#852) 2022-07-22 00:35:30 +02:00
z_sample.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_scene_table.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_scene.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_skelanime.c Add N64 weird frames and OOB Bombchus cvars (#602) 2022-07-06 18:46:01 -04:00
z_skin_awb.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_skin_matrix.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_skin.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_sound_source.c git subrepo clone https://github.com/HarbourMasters/soh.git 2022-03-22 02:51:23 +01:00
z_sram.c Address rando pr comments (#742) 2022-07-18 19:20:07 -04:00
z_ss_sram.c Added save filename and path to config file (#130) 2022-06-20 13:54:44 -04:00
z_view.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_vimode.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_vismono.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_vr_box_draw.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00
z_vr_box.c Use Macro for __FILE__ & __LINE__ when possible (#559) 2022-07-05 19:29:34 -04:00