4.5 All Monster Drops Are Health When You Have 1 Left

TolerantX

Active member
4.5 All Monster Drops Are Health When You Have 1 Left

Like in Zelda, when you are wounded to 1 hit left, all the drops from the monsters will ALWAYS be myHealth Pickups.

In monsterHurt adventure base asm look to line 41 "Destroy Object"
It already has the object's Temp A and B for the coordinates so easy peasy, right below add the following:

Code:
		;; ZELDA-Like HEALTH DROPS ;;
		;; THIS IS WHEN PLAYER HAS 1 HEALTH LEFT IT DROPS ONLY HEALTH PICKUPS ;;

		LDA myHealth
		CMP #$01
		BNE +doDropTable
			CreateObject tempA, tempB, #$04, #$00
			JMP +doSkipHurtingThisObject
			
		+doDropTable:

then below that let the code continue as usual...

Youtube video link below:

https://youtu.be/3I8KAHqxjkU
 

AllDarnDavey

Active member
That's cool.
All these years and I never realized Zelda biased health pickups when you were almost dead. One of those cool developer tweaks like coyote time, or Bioshock forcing enemies to always miss their first shot.
 
Top Bottom