Then, you want to create a new item and make it inherit from SpecialBlankModificationItem. Then, you want to be using ItemAPI and UnityEngine.
usingSystem;usingItemAPI;usingUnityEngine;namespaceYourNameSpace{classYourClassName:SpecialBlankModificationItem {publicstaticvoidInit() { //Same set up as passive items //... //you'll need this to make your ammolet give an aditionnal like vanilla ammolets ItemBuilder.AddPassiveStatModifier(item, PlayerStats.StatType.AdditionalBlanksPerFloor, 1, StatModifier.ModifyMethod.ADDITIVE);
} }}
Finally, put a method OnBlank in your item class and put your effect inside it so it's triggered when the user create a blank effect with an item or a blank :
protectedoverridevoidOnBlank(SilencerInstance silencerInstance,Vector2 centerPoint,PlayerController user){ //put your effect in here //for example, make blanks deal no dmgsilencerInstance.ForceNoDamage=true;}