@@ -67,7 +67,7 @@ private static void RegisterAugments(ref List<Augment.Definition> definitions)
67
67
68
68
definitions . Add ( Augment . Definition . New < Body . Data >
69
69
(
70
- identifier : "health .mushroom_glow" ,
70
+ identifier : "utility .mushroom_glow" ,
71
71
category : "Utility" ,
72
72
name : "Mushroom Glow" ,
73
73
description : "Glows in the dark." ,
@@ -826,7 +826,7 @@ private static void RegisterAugments(ref List<Augment.Definition> definitions)
826
826
definitions . Add ( Augment . Definition . New < Equipment . Data >
827
827
(
828
828
identifier : "equipment.cursed" ,
829
- category : "Utility " ,
829
+ category : "Equipment " ,
830
830
name : "Cursed" ,
831
831
description : "Covers the inner parts with tar, making it impossible to be unequipped." ,
832
832
@@ -846,6 +846,62 @@ private static void RegisterAugments(ref List<Augment.Definition> definitions)
846
846
}
847
847
) ) ;
848
848
849
+ definitions . Add ( Augment . Definition . New < Equipment . Data >
850
+ (
851
+ identifier : "equipment.cloth_padded" ,
852
+ category : "Equipment" ,
853
+ name : "Cloth Padding" ,
854
+ description : "Pads the inner side of the armor with cloth." ,
855
+
856
+ can_add : static ( ref Augment . Context context , in Equipment . Data data , ref Augment . Handle handle , Span < Augment . Handle > augments ) =>
857
+ {
858
+ return ! augments . HasAugment ( handle ) ;
859
+ } ,
860
+
861
+ apply_0 : static ( ref Augment . Context context , ref Equipment . Data data , ref Augment . Handle handle , Span < Augment . Handle > augments ) =>
862
+ {
863
+ ref var armor = ref context . GetComponent < Armor . Data > ( ) ;
864
+ if ( armor . IsNotNull ( ) )
865
+ {
866
+ armor . knockback_modifier *= 0.65f ;
867
+ armor . pain_modifier *= 0.80f ;
868
+ }
869
+ } ,
870
+
871
+ apply_1 : static ( ref Augment . Context context , ref Equipment . Data data , ref Augment . Handle handle , Span < Augment . Handle > augments ) =>
872
+ {
873
+ context . requirements_new . Add ( Crafting . Requirement . Resource ( "cloth" , 5.00f ) ) ;
874
+ }
875
+ ) ) ;
876
+
877
+ definitions . Add ( Augment . Definition . New < Equipment . Data >
878
+ (
879
+ identifier : "equipment.mushroom_stuffed" ,
880
+ category : "Equipment" ,
881
+ name : "Mushroom Stuffing" ,
882
+ description : "Stuffs the inner side of the armor with soft mushroom bits." ,
883
+
884
+ can_add : static ( ref Augment . Context context , in Equipment . Data data , ref Augment . Handle handle , Span < Augment . Handle > augments ) =>
885
+ {
886
+ return ! augments . HasAugment ( handle ) ;
887
+ } ,
888
+
889
+ apply_0 : static ( ref Augment . Context context , ref Equipment . Data data , ref Augment . Handle handle , Span < Augment . Handle > augments ) =>
890
+ {
891
+ ref var armor = ref context . GetComponent < Armor . Data > ( ) ;
892
+ if ( armor . IsNotNull ( ) )
893
+ {
894
+ armor . knockback_modifier = MathF . Max ( armor . knockback_modifier - 0.30f , armor . knockback_modifier * 0.25f ) ;
895
+ armor . pain_modifier = MathF . Max ( ( armor . pain_modifier * 0.90f ) - 0.30f , armor . pain_modifier * 0.10f ) ;
896
+ }
897
+ } ,
898
+
899
+ apply_1 : static ( ref Augment . Context context , ref Equipment . Data data , ref Augment . Handle handle , Span < Augment . Handle > augments ) =>
900
+ {
901
+ context . requirements_new . Add ( Crafting . Requirement . Resource ( "mushroom" , 20.00f ) ) ;
902
+ }
903
+ ) ) ;
904
+
849
905
definitions . Add ( Augment . Definition . New < Consumable . Data >
850
906
(
851
907
identifier : "consumable.alcohol" ,
0 commit comments