diff --git a/assets/common/items/armor/back/leather_adventurer.ron b/assets/common/items/armor/back/leather_adventurer.ron new file mode 100644 index 0000000000..4201ca6602 --- /dev/null +++ b/assets/common/items/armor/back/leather_adventurer.ron @@ -0,0 +1,12 @@ +Item( + name: "Agile Cape", + description: "Keeps your shoulders warm.", + kind: Armor( + ( + kind: Back("Short2"), + stats: ( + protection: Normal(0.2), + ), + ) + ), +) diff --git a/assets/common/items/armor/back/short_0.ron b/assets/common/items/armor/back/short_0.ron index c53d6418dd..aefa27f930 100644 --- a/assets/common/items/armor/back/short_0.ron +++ b/assets/common/items/armor/back/short_0.ron @@ -5,7 +5,7 @@ Item( ( kind: Back("Short0"), stats: ( - protection: Normal(0.2), + protection: Normal(0.3), ), ) ), diff --git a/assets/common/items/armor/belt/leather_adventurer.ron b/assets/common/items/armor/belt/leather_adventurer.ron new file mode 100644 index 0000000000..84014ebef2 --- /dev/null +++ b/assets/common/items/armor/belt/leather_adventurer.ron @@ -0,0 +1,12 @@ +Item( + name: "Agile Belt", + description: "", + kind: Armor( + ( + kind: Belt("Leather2"), + stats: ( + protection: Normal(1.0), + ), + ) + ), +) diff --git a/assets/common/items/armor/chest/leather_adventurer.ron b/assets/common/items/armor/chest/leather_adventurer.ron new file mode 100644 index 0000000000..2889d1c7f1 --- /dev/null +++ b/assets/common/items/armor/chest/leather_adventurer.ron @@ -0,0 +1,12 @@ +Item( + name: "Agile Chest", + description: " ", + kind: Armor( + ( + kind: Chest("Leather2"), + stats: ( + protection: Normal(6.0), + ), + ) + ), +) diff --git a/assets/common/items/armor/foot/leather_adventurer.ron b/assets/common/items/armor/foot/leather_adventurer.ron new file mode 100644 index 0000000000..6baffc8086 --- /dev/null +++ b/assets/common/items/armor/foot/leather_adventurer.ron @@ -0,0 +1,12 @@ +Item( + name: "Agile Kickers", + description: "", + kind: Armor( + ( + kind: Foot("Leather2"), + stats: ( + protection: Normal(2.0), + ), + ) + ), +) diff --git a/assets/common/items/armor/hand/leather_adventurer.ron b/assets/common/items/armor/hand/leather_adventurer.ron new file mode 100644 index 0000000000..6b4117119a --- /dev/null +++ b/assets/common/items/armor/hand/leather_adventurer.ron @@ -0,0 +1,12 @@ +Item( + name: "Agile Gauntlets", + description: "", + kind: Armor( + ( + kind: Hand("Leather2"), + stats: ( + protection: Normal(4.0), + ), + ) + ), +) diff --git a/assets/common/items/armor/pants/leather_adventurer.ron b/assets/common/items/armor/pants/leather_adventurer.ron new file mode 100644 index 0000000000..a5be0b07af --- /dev/null +++ b/assets/common/items/armor/pants/leather_adventurer.ron @@ -0,0 +1,12 @@ +Item( + name: "Agile Pantalons", + description: "", + kind: Armor( + ( + kind: Pants("Leather2"), + stats: ( + protection: Normal(8.0), + ), + ) + ), +) diff --git a/assets/common/items/armor/shoulder/cloth_blue_0.ron b/assets/common/items/armor/shoulder/cloth_blue_0.ron index 30a8d609ca..f4a94d3830 100644 --- a/assets/common/items/armor/shoulder/cloth_blue_0.ron +++ b/assets/common/items/armor/shoulder/cloth_blue_0.ron @@ -5,7 +5,7 @@ Item( ( kind: Shoulder("ClothBlue0"), stats: ( - protection: Normal(0.0), + protection: Normal(1.0), ), ) ), diff --git a/assets/common/items/armor/shoulder/cloth_blue_1.ron b/assets/common/items/armor/shoulder/cloth_blue_1.ron index 4cd8b91535..4914b0a328 100644 --- a/assets/common/items/armor/shoulder/cloth_blue_1.ron +++ b/assets/common/items/armor/shoulder/cloth_blue_1.ron @@ -5,7 +5,7 @@ Item( ( kind: Shoulder("ClothBlue1"), stats: ( - protection: Normal(0.0), + protection: Normal(1.0), ), ) ), diff --git a/assets/common/items/armor/shoulder/cloth_green_0.ron b/assets/common/items/armor/shoulder/cloth_green_0.ron index c9c89d70e2..ff3bdcac2a 100644 --- a/assets/common/items/armor/shoulder/cloth_green_0.ron +++ b/assets/common/items/armor/shoulder/cloth_green_0.ron @@ -5,7 +5,7 @@ Item( ( kind: Shoulder("ClothGreen0"), stats: ( - protection: Normal(0.0), + protection: Normal(1.0), ), ) ), diff --git a/assets/common/items/armor/shoulder/cloth_purple_0.ron b/assets/common/items/armor/shoulder/cloth_purple_0.ron index 8cede44f9d..1de3f3abec 100644 --- a/assets/common/items/armor/shoulder/cloth_purple_0.ron +++ b/assets/common/items/armor/shoulder/cloth_purple_0.ron @@ -5,7 +5,7 @@ Item( ( kind: Shoulder("ClothPurple0"), stats: ( - protection: Normal(0.0), + protection: Normal(1.0), ), ) ), diff --git a/assets/common/items/armor/shoulder/leather_adventurer.ron b/assets/common/items/armor/shoulder/leather_adventurer.ron new file mode 100644 index 0000000000..3cc291d335 --- /dev/null +++ b/assets/common/items/armor/shoulder/leather_adventurer.ron @@ -0,0 +1,12 @@ +Item( + name: "Agile Guards", + description: "", + kind: Armor( + ( + kind: Shoulder("Leather1"), + stats: ( + protection: Normal(6.0), + ), + ) + ), +) diff --git a/assets/common/items/boss_drops/lantern.ron b/assets/common/items/boss_drops/lantern.ron index 26228ef77d..85b829d6ca 100644 --- a/assets/common/items/boss_drops/lantern.ron +++ b/assets/common/items/boss_drops/lantern.ron @@ -4,8 +4,8 @@ Item( kind: Lantern( ( kind: "Blue0", - color: (r: 220, g: 220, b: 255), - strength_thousandths: 6500, + color: (r: 128, g: 26, b: 255), + strength_thousandths: 8500, flicker_thousandths: 300, ), ), diff --git a/assets/common/items/lantern/black_0.ron b/assets/common/items/lantern/black_0.ron index f3bb7974e1..9eb9156099 100644 --- a/assets/common/items/lantern/black_0.ron +++ b/assets/common/items/lantern/black_0.ron @@ -4,7 +4,7 @@ Item( kind: Lantern( ( kind: "Black0", - color: (r: 166, g: 100, b: 0), + color: (r: 255, g: 128, b: 26), strength_thousandths: 3000, flicker_thousandths: 300, ), diff --git a/assets/common/items/lantern/blue_0.ron b/assets/common/items/lantern/blue_0.ron index 31231f9e47..a9e88083ed 100644 --- a/assets/common/items/lantern/blue_0.ron +++ b/assets/common/items/lantern/blue_0.ron @@ -4,7 +4,7 @@ Item( kind: Lantern( ( kind: "Blue0", - color: (r: 64, g: 127, b: 153), + color: (r: 255, g: 128, b: 26), strength_thousandths: 4000, flicker_thousandths: 250, ), diff --git a/assets/common/items/lantern/green_0.ron b/assets/common/items/lantern/green_0.ron index 6675d3ff77..8ccb9a38df 100644 --- a/assets/common/items/lantern/green_0.ron +++ b/assets/common/items/lantern/green_0.ron @@ -4,7 +4,7 @@ Item( kind: Lantern( ( kind: "Green0", - color: (r: 192, g: 255, b: 76), + color: (r: 255, g: 128, b: 26), strength_thousandths: 4000, flicker_thousandths: 500, ), diff --git a/assets/common/items/lantern/red_0.ron b/assets/common/items/lantern/red_0.ron index 47ee0b73ba..f320f8afbc 100644 --- a/assets/common/items/lantern/red_0.ron +++ b/assets/common/items/lantern/red_0.ron @@ -4,7 +4,7 @@ Item( kind: Lantern( ( kind: "Red0", - color: (r: 255, g: 127, b: 51), + color: (r: 255, g: 128, b: 26), strength_thousandths: 3500, flicker_thousandths: 1000, ), diff --git a/assets/common/items/npc_weapons/sword/zweihander_sword_0.ron b/assets/common/items/npc_weapons/sword/zweihander_sword_0.ron index 372932187d..35819b476e 100644 --- a/assets/common/items/npc_weapons/sword/zweihander_sword_0.ron +++ b/assets/common/items/npc_weapons/sword/zweihander_sword_0.ron @@ -6,7 +6,7 @@ Item( kind: Sword("Zweihander0"), stats: ( equip_time_millis: 500, - power: 0.6, + power: 0.2, ), ) ), diff --git a/assets/common/items/weapons/bow/nature_ore_longbow-0.ron b/assets/common/items/weapons/bow/nature_ore_longbow-0.ron new file mode 100644 index 0000000000..170d018d34 --- /dev/null +++ b/assets/common/items/weapons/bow/nature_ore_longbow-0.ron @@ -0,0 +1,13 @@ +Item( + name: "Velorite Bow", + description: "Infused with Velorite power.", + kind: Tool( + ( + kind: Bow("NatureOreLongbow"), + stats: ( + equip_time_millis: 400, + power: 2.00, + ), + ) + ), +) diff --git a/assets/common/items/weapons/bow/wood_shortbow-0.ron b/assets/common/items/weapons/bow/wood_shortbow-0.ron index 6cddcfbff2..c655669510 100644 --- a/assets/common/items/weapons/bow/wood_shortbow-0.ron +++ b/assets/common/items/weapons/bow/wood_shortbow-0.ron @@ -6,7 +6,7 @@ Item( kind: Bow("WoodShortbow0"), stats: ( equip_time_millis: 400, - power: 0.75, + power: 1.0, ), ) ), diff --git a/assets/common/items/weapons/staff/sceptre_velorite_0.ron b/assets/common/items/weapons/staff/sceptre_velorite_0.ron index dad5431206..e3fbad60ff 100644 --- a/assets/common/items/weapons/staff/sceptre_velorite_0.ron +++ b/assets/common/items/weapons/staff/sceptre_velorite_0.ron @@ -6,7 +6,7 @@ Item( kind: Staff("SceptreVelorite"), stats: ( equip_time_millis: 400, - power: 1.0, + power: 2.0, ), ) ), diff --git a/assets/common/items/weapons/sword/wood_sword.ron b/assets/common/items/weapons/sword/wood_sword.ron index dc985ebae6..a8b9d3a140 100644 --- a/assets/common/items/weapons/sword/wood_sword.ron +++ b/assets/common/items/weapons/sword/wood_sword.ron @@ -1,12 +1,12 @@ Item( - name: "Wooden Training Sword", + name: "Wooden Sword", description: "It's not sharp.", kind: Tool( ( kind: Sword("WoodTraining"), stats: ( equip_time_millis: 400, - power: 0.50, + power: 1.0, ), ) ), diff --git a/assets/common/loot_tables/loot_table.ron b/assets/common/loot_tables/loot_table.ron index 5787e95a90..9504a3ce9d 100644 --- a/assets/common/loot_tables/loot_table.ron +++ b/assets/common/loot_tables/loot_table.ron @@ -1,4 +1,4 @@ [ // Fallback loot table - (1, "common.items.food.cheese"), + (1, "common.items.food.mushroom"), ] diff --git a/assets/common/loot_tables/loot_table_armor_misc.ron b/assets/common/loot_tables/loot_table_armor_misc.ron index 601e013552..26bebecd6d 100644 --- a/assets/common/loot_tables/loot_table_armor_misc.ron +++ b/assets/common/loot_tables/loot_table_armor_misc.ron @@ -6,5 +6,5 @@ (0.25, "common.items.armor.back.short_1"), // necks (0.25, "common.items.armor.neck.neck_0"), - (0.25, "common.items.armor.neck.neck_1"), + ] \ No newline at end of file diff --git a/assets/common/loot_tables/loot_table_boss_cultist-leader.ron b/assets/common/loot_tables/loot_table_boss_cultist-leader.ron index b91e0f367d..3fa2f313b8 100644 --- a/assets/common/loot_tables/loot_table_boss_cultist-leader.ron +++ b/assets/common/loot_tables/loot_table_boss_cultist-leader.ron @@ -11,8 +11,6 @@ (1, "common.items.weapons.staff.cultist_staff"), (1, "common.items.weapons.hammer.cultist_purp_2h-0"), (1, "common.items.weapons.sword.cultist_purp_2h-0"), - // misc - (9, "common.items.boss_drops.exp_flask"), - (1, "common.items.boss_drops.lantern"), - (1, "common.items.boss_drops.potions"), + // misc + (1, "common.items.boss_drops.lantern"), ] \ No newline at end of file diff --git a/assets/common/loot_tables/loot_table_cave_large.ron b/assets/common/loot_tables/loot_table_cave_large.ron new file mode 100644 index 0000000000..7d5133c374 --- /dev/null +++ b/assets/common/loot_tables/loot_table_cave_large.ron @@ -0,0 +1,56 @@ +[ + // Misc + (0.25, "common.items.armor.neck.neck_1"), + // swords + (0.07, "common.items.weapons.sword.greatsword_2h_fine-1"), + (0.07, "common.items.weapons.sword.greatsword_2h_fine-2"), + (0.08, "common.items.weapons.sword.long_2h_orn-0"), + (0.08, "common.items.weapons.sword.long_2h_orn-1"), + (0.08, "common.items.weapons.sword.long_2h_orn-2"), + (0.08, "common.items.weapons.sword.long_2h_orn-3"), + (0.08, "common.items.weapons.sword.long_2h_orn-4"), + (0.08, "common.items.weapons.sword.long_2h_orn-5"), + (0.20, "common.items.weapons.sword.zweihander_sword_0"), + (0.10, "common.items.weapons.sword.greatsword_2h_orn-0"), + (0.10, "common.items.weapons.sword.greatsword_2h_orn-1"), + (0.10, "common.items.weapons.sword.greatsword_2h_orn-2"), + // axes + (0.20, "common.items.weapons.axe.bloodsteel_axe-0"), + (0.20, "common.items.weapons.axe.bloodsteel_axe-1"), + (0.20, "common.items.weapons.axe.bloodsteel_axe-2"), + (0.30, "common.items.weapons.axe.cobalt_axe-0"), + (0.10, "common.items.weapons.axe.malachite_axe-0"), + (0.04, "common.items.weapons.axe.iron_axe-7"), + (0.04, "common.items.weapons.axe.iron_axe-8"), + (0.04, "common.items.weapons.axe.iron_axe-9"), + (0.04, "common.items.weapons.axe.steel_axe-0"), + (0.04, "common.items.weapons.axe.steel_axe-1"), + (0.04, "common.items.weapons.axe.steel_axe-2"), + (0.04, "common.items.weapons.axe.steel_axe-3"), + (0.04, "common.items.weapons.axe.steel_axe-4"), + (0.04, "common.items.weapons.axe.steel_axe-5"), + (0.04, "common.items.weapons.axe.steel_axe-6"), + // healing staff + (0.5, "common.items.weapons.staff.staff_nature"), + // staves + (1.00, "common.items.weapons.staff.bone_staff"), + (1.00, "common.items.weapons.staff.amethyst_staff"), + (0.1, "common.items.weapons.staff.sceptre_velorite_0"), + // hammers + (0.30, "common.items.weapons.hammer.cobalt_hammer-0"), + (0.30, "common.items.weapons.hammer.cobalt_hammer-1"), + (0.15, "common.items.weapons.hammer.runic_hammer"), + (0.15, "common.items.weapons.hammer.ramshead_hammer"), + (0.04, "common.items.weapons.hammer.iron_hammer-7"), + (0.04, "common.items.weapons.hammer.iron_hammer-8"), + (0.05, "common.items.weapons.hammer.steel_hammer-0"), + (0.05, "common.items.weapons.hammer.steel_hammer-1"), + (0.05, "common.items.weapons.hammer.steel_hammer-2"), + (0.05, "common.items.weapons.hammer.steel_hammer-3"), + (0.05, "common.items.weapons.hammer.steel_hammer-4"), + (0.05, "common.items.weapons.hammer.steel_hammer-5"), + // bows + (0.1, "common.items.weapons.bow.nature_ore_longbow-0"), + + +] \ No newline at end of file diff --git a/assets/common/loot_tables/loot_table_cultists.ron b/assets/common/loot_tables/loot_table_cultists.ron new file mode 100644 index 0000000000..750e241f21 --- /dev/null +++ b/assets/common/loot_tables/loot_table_cultists.ron @@ -0,0 +1,206 @@ +[ + // Food + // simple + (3, "common.items.food.cheese"), + (3, "common.items.food.apple"), + (3, "common.items.food.mushroom"), + (3, "common.items.food.coconut"), + // crafted + (0.5, "common.items.food.apple_mushroom_curry"), + (0.5, "common.items.food.apple_stick"), + (0.5, "common.items.food.mushroom_stick"), + // Misc + (0.25, "common.items.armor.neck.neck_1"), + // Heavy Armour + // belts + (0.5, "common.items.armor.belt.plate_0"), + (0.3, "common.items.armor.belt.steel_0"), + // chests + (0.5, "common.items.armor.chest.plate_green_0"), + (0.3, "common.items.armor.chest.steel_0"), + // shoes + (0.5, "common.items.armor.foot.plate_0"), + (0.3, "common.items.armor.foot.steel_0"), + // pants + (0.5, "common.items.armor.pants.plate_green_0"), + (0.3, "common.items.armor.pants.steel_0"), + // shoulders + (0.40, "common.items.armor.shoulder.plate_0"), + (0.37, "common.items.armor.shoulder.iron_spikes"), + (0.33, "common.items.armor.shoulder.steel_0"), + //gloves + (0.67, "common.items.armor.hand.plate_0"), + (0.33, "common.items.armor.hand.steel_0"), + //Light Armour + // belts + (0.50, "common.items.armor.belt.leather_0"), + (0.50, "common.items.armor.belt.leather_2"), + // chests + (0.50, "common.items.armor.chest.leather_0"), + (0.50, "common.items.armor.chest.leather_2"), + // shoes + (0.50, "common.items.armor.foot.leather_0"), + (0.50, "common.items.armor.foot.leather_2"), + // pants + (0.33, "common.items.armor.pants.leather_0"), + (0.33, "common.items.armor.pants.leather_2"), + (0.33, "common.items.armor.pants.hunting"), + // shoulders + (0.6, "common.items.armor.shoulder.leather_strips"), + (0.4, "common.items.armor.shoulder.leather_0"), + (0.4, "common.items.armor.shoulder.leather_1"), + (0.4, "common.items.armor.shoulder.leather_2"), + (0.3, "common.items.armor.shoulder.leather_iron_0"), + (0.3, "common.items.armor.shoulder.leather_iron_1"), + (0.3, "common.items.armor.shoulder.leather_iron_2"), + (0.3, "common.items.armor.shoulder.leather_iron_3"), + //gloves + (0.50, "common.items.armor.hand.leather_0"), + (0.50, "common.items.armor.hand.leather_2"), + // Common Weapons + // swords + (0.4, "common.items.weapons.sword.wood_sword"), + (0.3, "common.items.weapons.sword.long_2h_dam-0"), + (0.3, "common.items.weapons.sword.long_2h_dam-1"), + (0.3, "common.items.weapons.sword.long_2h_dam-2"), + (0.3, "common.items.weapons.sword.long_2h_dam-3"), + (0.3, "common.items.weapons.sword.long_2h_dam-4"), + (0.3, "common.items.weapons.sword.long_2h_dam-5"), + (0.25, "common.items.weapons.sword.short_sword_0"), + (0.1, "common.items.weapons.sword.greatsword_2h_dam-0"), + (0.1, "common.items.weapons.sword.greatsword_2h_dam-1"), + (0.1, "common.items.weapons.sword.greatsword_2h_dam-2"), + // axes + (0.20, "common.items.weapons.axe.orc_axe-0"), + (0.10, "common.items.weapons.axe.worn_iron_axe-0"), + (0.10, "common.items.weapons.axe.worn_iron_axe-1"), + (0.10, "common.items.weapons.axe.worn_iron_axe-2"), + (0.10, "common.items.weapons.axe.worn_iron_axe-3"), + (0.10, "common.items.weapons.axe.worn_iron_axe-4"), + // healing staff + (0.25, "common.items.weapons.staff.staff_nature"), + // hammers + (0.15, "common.items.weapons.hammer.flimsy_hammer"), + (0.10, "common.items.weapons.hammer.wood_hammer-0"), + (0.10, "common.items.weapons.hammer.stone_hammer-0"), + (0.10, "common.items.weapons.hammer.stone_hammer-1"), + (0.10, "common.items.weapons.hammer.stone_hammer-2"), + (0.10, "common.items.weapons.hammer.stone_hammer-3"), + (0.05, "common.items.weapons.hammer.worn_iron_hammer-0"), + (0.05, "common.items.weapons.hammer.worn_iron_hammer-1"), + (0.05, "common.items.weapons.hammer.worn_iron_hammer-2"), + (0.05, "common.items.weapons.hammer.worn_iron_hammer-3"), + // bows + (0.25, "common.items.weapons.bow.wood_shortbow-0"), + (0.25, "common.items.weapons.bow.wood_shortbow-1"), + // Uncommon Weapons + // swords + (0.05, "common.items.weapons.sword.long_2h_simple-0"), + (0.05, "common.items.weapons.sword.long_2h_simple-1"), + (0.05, "common.items.weapons.sword.long_2h_simple-2"), + (0.05, "common.items.weapons.sword.long_2h_simple-3"), + (0.05, "common.items.weapons.sword.long_2h_simple-4"), + (0.05, "common.items.weapons.sword.long_2h_simple-5"), + (0.10, "common.items.weapons.sword.greatsword_2h_simple-0"), + (0.10, "common.items.weapons.sword.greatsword_2h_simple-1"), + (0.10, "common.items.weapons.sword.greatsword_2h_simple-2"), + (0.06, "common.items.weapons.sword.long_2h_fine-0"), + (0.06, "common.items.weapons.sword.long_2h_fine-1"), + (0.06, "common.items.weapons.sword.long_2h_fine-2"), + (0.06, "common.items.weapons.sword.long_2h_fine-3"), + (0.06, "common.items.weapons.sword.long_2h_fine-4"), + (0.06, "common.items.weapons.sword.long_2h_fine-5"), + (0.07, "common.items.weapons.sword.greatsword_2h_fine-0"), + (0.07, "common.items.weapons.sword.greatsword_2h_fine-1"), + (0.07, "common.items.weapons.sword.greatsword_2h_fine-2"), + // axes + (0.15, "common.items.weapons.axe.bronze_axe-0"), + (0.15, "common.items.weapons.axe.bronze_axe-1"), + (0.04, "common.items.weapons.axe.iron_axe-0"), + (0.04, "common.items.weapons.axe.iron_axe-1"), + (0.04, "common.items.weapons.axe.iron_axe-2"), + (0.04, "common.items.weapons.axe.iron_axe-3"), + (0.04, "common.items.weapons.axe.iron_axe-4"), + (0.04, "common.items.weapons.axe.iron_axe-5"), + (0.04, "common.items.weapons.axe.iron_axe-6"), + (0.04, "common.items.weapons.axe.iron_axe-7"), + (0.04, "common.items.weapons.axe.iron_axe-8"), + (0.04, "common.items.weapons.axe.iron_axe-9"), + (0.04, "common.items.weapons.axe.steel_axe-0"), + (0.04, "common.items.weapons.axe.steel_axe-1"), + (0.04, "common.items.weapons.axe.steel_axe-2"), + (0.04, "common.items.weapons.axe.steel_axe-3"), + (0.04, "common.items.weapons.axe.steel_axe-4"), + (0.04, "common.items.weapons.axe.steel_axe-5"), + (0.04, "common.items.weapons.axe.steel_axe-6"), + // healing staff + (0.5, "common.items.weapons.staff.staff_nature"), + // staves + (1.00, "common.items.weapons.staff.bone_staff"), + // hammers + (0.15, "common.items.weapons.hammer.bronze_hammer-0"), + (0.15, "common.items.weapons.hammer.bronze_hammer-1"), + (0.04, "common.items.weapons.hammer.iron_hammer-0"), + (0.04, "common.items.weapons.hammer.iron_hammer-1"), + (0.04, "common.items.weapons.hammer.iron_hammer-2"), + (0.04, "common.items.weapons.hammer.iron_hammer-3"), + (0.04, "common.items.weapons.hammer.iron_hammer-4"), + (0.04, "common.items.weapons.hammer.iron_hammer-5"), + (0.04, "common.items.weapons.hammer.iron_hammer-6"), + (0.04, "common.items.weapons.hammer.iron_hammer-7"), + (0.04, "common.items.weapons.hammer.iron_hammer-8"), + (0.05, "common.items.weapons.hammer.steel_hammer-0"), + (0.05, "common.items.weapons.hammer.steel_hammer-1"), + (0.05, "common.items.weapons.hammer.steel_hammer-2"), + (0.05, "common.items.weapons.hammer.steel_hammer-3"), + (0.05, "common.items.weapons.hammer.steel_hammer-4"), + (0.05, "common.items.weapons.hammer.steel_hammer-5"), + // bows + (0.30, "common.items.weapons.bow.leafy_shortbow-0"), + (0.25, "common.items.weapons.bow.wood_longbow-0"), + (0.25, "common.items.weapons.bow.wood_longbow-1"), + (0.20, "common.items.weapons.bow.leafy_longbow-0"), + // Rare Weapons + // swords + (0.08, "common.items.weapons.sword.long_2h_orn-0"), + (0.08, "common.items.weapons.sword.long_2h_orn-1"), + (0.08, "common.items.weapons.sword.long_2h_orn-2"), + (0.08, "common.items.weapons.sword.long_2h_orn-3"), + (0.08, "common.items.weapons.sword.long_2h_orn-4"), + (0.08, "common.items.weapons.sword.long_2h_orn-5"), + (0.20, "common.items.weapons.sword.zweihander_sword_0"), + (0.10, "common.items.weapons.sword.greatsword_2h_orn-0"), + (0.10, "common.items.weapons.sword.greatsword_2h_orn-1"), + (0.10, "common.items.weapons.sword.greatsword_2h_orn-2"), + // axes + (0.20, "common.items.weapons.axe.bloodsteel_axe-0"), + (0.20, "common.items.weapons.axe.bloodsteel_axe-1"), + (0.20, "common.items.weapons.axe.bloodsteel_axe-2"), + (0.30, "common.items.weapons.axe.cobalt_axe-0"), + (0.10, "common.items.weapons.axe.malachite_axe-0"), + // healing staff + (0.25, "common.items.weapons.staff.staff_nature"), + // staves + (1.00, "common.items.weapons.staff.amethyst_staff"), + // hammers + (0.01, "common.items.weapons.hammer.cobalt_hammer-0"), + (0.01, "common.items.weapons.hammer.cobalt_hammer-1"), + (0.01, "common.items.weapons.hammer.runic_hammer"), + (0.1, "common.items.weapons.hammer.ramshead_hammer"), + (0.001, "common.items.weapons.hammer.mjolnir"), + // bows + (0.6, "common.items.weapons.bow.horn_longbow-0"), + (0.2, "common.items.weapons.bow.iron_longbow-0"), + (0.10, "common.items.weapons.bow.rare_longbow"), + // cultist set + (0.1, "common.items.armor.belt.cultist_belt"), + (0.01, "common.items.armor.chest.cultist_chest_purple"), + (0.01, "common.items.armor.foot.cultist_boots"), + (0.01, "common.items.armor.hand.cultist_hands_purple"), + (0.01, "common.items.armor.pants.cultist_legs_purple"), + (0.01, "common.items.armor.shoulder.cultist_shoulder_purple"), + (0.005, "common.items.armor.back.dungeon_purple-0"), + (0.1, "common.items.boss_drops.exp_flask"), + (0.2, "common.items.boss_drops.potions"), + +] diff --git a/assets/common/recipe_book.ron b/assets/common/recipe_book.ron index 093d88366c..7277199e25 100644 --- a/assets/common/recipe_book.ron +++ b/assets/common/recipe_book.ron @@ -1,18 +1,35 @@ { + // Tools "crafting_hammer": (("common.items.crafting_tools.craftsman_hammer", 1),[("common.items.crafting_ing.twigs", 14), ("common.items.crafting_ing.stones", 12)]), - "mortar_pestle": (("common.items.crafting_tools.mortar_pestle", 1), [("common.items.crafting_ing.stones", 6), ("common.items.food.coconut", 2), ("common.items.crafting_tools.craftsman_hammer", 0)]), + "mortar_pestle": (("common.items.crafting_tools.mortar_pestle", 1), [("common.items.crafting_ing.stones", 6), ("common.items.food.coconut", 2), ("common.items.crafting_tools.craftsman_hammer", 0)]), + // Ore and more "velorite_frag": (("common.items.ore.veloritefrag", 2), [("common.items.ore.velorite", 1), ("common.items.crafting_tools.craftsman_hammer", 0)]), + //Potions "potion_s": (("common.items.consumable.potion_minor", 1), [("common.items.crafting_ing.empty_vial", 1), ("common.items.ore.veloritefrag", 2)]), "potion_m": (("common.items.consumable.potion_med", 1), [("common.items.consumable.potion_minor", 2), ("common.items.ore.veloritefrag", 4)]), "collar_basic": (("common.items.utility.collar", 1), [("common.items.crafting_ing.leather_scraps", 5), ("common.items.crafting_ing.shiny_gem", 1)]), - "bomb_coconut": (("common.items.utility.bomb", 1), [("common.items.crafting_ing.stones", 10), ("common.items.food.coconut", 2), ("common.items.ore.veloritefrag", 2), ("common.items.crafting_tools.mortar_pestle", 0)]), - "firework_blue": (("common.items.utility.firework_blue", 1), [("common.items.crafting_ing.twigs", 1), ("common.items.crafting_ing.stones", 1), ("common.items.food.coconut", 1), ("common.items.ore.veloritefrag", 1), ("common.items.crafting_tools.mortar_pestle", 0)]), - "firework_green": (("common.items.utility.firework_green", 1), [("common.items.crafting_ing.twigs", 1), ("common.items.crafting_ing.stones", 1), ("common.items.food.coconut", 1), ("common.items.ore.veloritefrag", 1), ("common.items.crafting_tools.mortar_pestle", 0)]), - "firework_purple": (("common.items.utility.firework_purple", 1), [("common.items.crafting_ing.twigs", 1), ("common.items.crafting_ing.stones", 1), ("common.items.food.coconut", 1), ("common.items.ore.veloritefrag", 1), ("common.items.crafting_tools.mortar_pestle", 0)]), - "firework_red": (("common.items.utility.firework_red", 1), [("common.items.crafting_ing.twigs", 1), ("common.items.crafting_ing.stones", 1), ("common.items.food.coconut", 1), ("common.items.ore.veloritefrag", 1), ("common.items.crafting_tools.mortar_pestle", 0)]), - "firework_yellow": (("common.items.utility.firework_yellow", 1), [("common.items.crafting_ing.twigs", 1), ("common.items.crafting_ing.stones", 1), ("common.items.food.coconut", 1), ("common.items.ore.veloritefrag", 1), ("common.items.crafting_tools.mortar_pestle", 0)]), + "bomb_coconut": (("common.items.utility.bomb", 1), [("common.items.crafting_ing.stones", 10), ("common.items.food.coconut", 2), ("common.items.ore.veloritefrag", 2), ("common.items.crafting_tools.mortar_pestle", 0)]), + // Firework + "firework_blue": (("common.items.utility.firework_blue", 1), [("common.items.crafting_ing.twigs", 1), ("common.items.crafting_ing.stones", 1), ("common.items.food.coconut", 1), ("common.items.ore.veloritefrag", 1), ("common.items.crafting_tools.mortar_pestle", 0)]), + "firework_green": (("common.items.utility.firework_green", 1), [("common.items.crafting_ing.twigs", 1), ("common.items.crafting_ing.stones", 1), ("common.items.food.coconut", 1), ("common.items.ore.veloritefrag", 1), ("common.items.crafting_tools.mortar_pestle", 0)]), + "firework_purple": (("common.items.utility.firework_purple", 1), [("common.items.crafting_ing.twigs", 1), ("common.items.crafting_ing.stones", 1), ("common.items.food.coconut", 1), ("common.items.ore.veloritefrag", 1), ("common.items.crafting_tools.mortar_pestle", 0)]), + "firework_red": (("common.items.utility.firework_red", 1), [("common.items.crafting_ing.twigs", 1), ("common.items.crafting_ing.stones", 1), ("common.items.food.coconut", 1), ("common.items.ore.veloritefrag", 1), ("common.items.crafting_tools.mortar_pestle", 0)]), + "firework_yellow": (("common.items.utility.firework_yellow", 1), [("common.items.crafting_ing.twigs", 1), ("common.items.crafting_ing.stones", 1), ("common.items.food.coconut", 1), ("common.items.ore.veloritefrag", 1), ("common.items.crafting_tools.mortar_pestle", 0)]), + // Food "apple_shroom_curry": (("common.items.food.apple_mushroom_curry", 1), [("common.items.food.mushroom", 8), ("common.items.food.coconut", 1), ("common.items.food.apple", 4), ("common.items.crafting_tools.mortar_pestle", 0)]), "apples_stick": (("common.items.food.apple_stick", 1),[("common.items.crafting_ing.twigs", 2), ("common.items.food.apple", 2)]), "mushroom_stick": (("common.items.food.mushroom_stick", 1),[("common.items.crafting_ing.twigs", 2), ("common.items.food.mushroom", 3)]), + // Weapons "velorite_sceptre": (("common.items.weapons.staff.sceptre_velorite_0", 1),[("common.items.crafting_ing.twigs", 20), ("common.items.ore.veloritefrag", 10), ("common.items.crafting_ing.shiny_gem", 4), ("common.items.crafting_tools.craftsman_hammer", 0)]), -} + // Enhanced starting weapons + "better bow": (("common.items.weapons.bow.wood_shortbow-0", 1), [("common.items.crafting_ing.leather_scraps", 8),("common.items.crafting_ing.twigs", 4), ("common.items.crafting_ing.stones", 0)]), + "better sword": (("common.items.weapons.sword.wood_sword", 1), [("common.items.crafting_ing.leather_scraps", 4),("common.items.crafting_ing.twigs", 8), ("common.items.crafting_ing.stones", 0)]), + // Adventurer/Beginner Leather Set + "adventure back": (("common.items.armor.back.leather_adventurer", 1),[("common.items.crafting_ing.leather_scraps", 4)]), + "adventure belt": (("common.items.armor.belt.leather_adventurer", 1),[("common.items.crafting_ing.leather_scraps", 2)]), + "adventure chest": (("common.items.armor.chest.leather_adventurer", 1),[("common.items.crafting_ing.leather_scraps", 12)]), + "adventure feet": (("common.items.armor.foot.leather_adventurer", 1),[("common.items.crafting_ing.leather_scraps", 6)]), + "adventure hands": (("common.items.armor.hand.leather_adventurer", 1),[("common.items.crafting_ing.leather_scraps", 4)]), + "adventure pants": (("common.items.armor.pants.leather_adventurer", 1),[("common.items.crafting_ing.leather_scraps", 8)]), + "adventure shoulder": (("common.items.armor.shoulder.leather_adventurer", 1),[("common.items.crafting_ing.leather_scraps", 12)]), +} diff --git a/assets/voxygen/i18n/en.ron b/assets/voxygen/i18n/en.ron index 2760d7609d..8e95b9df7d 100644 --- a/assets/voxygen/i18n/en.ron +++ b/assets/voxygen/i18n/en.ron @@ -419,7 +419,7 @@ magically infused items?"#, "gameinput.declinegroupinvite": "Decline Group Invite", "gameinput.crafting": "Crafting", "gameinput.sneak": "Sneak", - "gameinput.swimdown": "Dive downwards", + "gameinput.swimdown": "Swim downwards", "gameinput.swimup": "Swim upwards", /// End GameInput section diff --git a/assets/voxygen/item_image_manifest.ron b/assets/voxygen/item_image_manifest.ron index 4d59015e54..3ccf57427c 100644 --- a/assets/voxygen/item_image_manifest.ron +++ b/assets/voxygen/item_image_manifest.ron @@ -44,6 +44,10 @@ "voxel.weapon.bow.longbow_rare", (0.0, 0.0, 0.0), (90.0, 90.0, 0.0), 1.0, ), + Tool(Bow("NatureOreLongbow")): VoxTrans( + "voxel.weapon.bow.longbow_ore_nature-0", + (0.0, 0.0, 0.0), (90.0, 90.0, 0.0), 1.0, + ), // Daggers Tool(Dagger("BasicDagger")): VoxTrans( "voxel.weapon.dagger.dagger_rusty", @@ -1075,7 +1079,7 @@ "voxel.armor.back.short-0", (0.0, 0.0, 0.0), (-90.0, 180.0, 0.0), 1.0, ), - Armor(Back("Short1")): VoxTrans( + Armor(Back("Short1")): VoxTrans( "voxel.armor.back.short-1", (0.0, -2.0, 0.0), (-90.0, 180.0, 0.0), 1.0, ), @@ -1087,6 +1091,10 @@ "voxel.armor.back.dung_purp-0", (0.0, 0.0, 0.0), (-90.0, 180.0, 0.0), 1.0, ), + Armor(Back("Short2")): VoxTrans( + "voxel.armor.back.short-2", + (0.0, -2.0, 0.0), (-90.0, 180.0, 0.0), 1.0, + ), // Rings Armor(Ring("Ring0")): Png( "element.icons.ring-0", diff --git a/assets/voxygen/shaders/particle-vert.glsl b/assets/voxygen/shaders/particle-vert.glsl index 7170fbc6f8..ce36cb7b17 100644 --- a/assets/voxygen/shaders/particle-vert.glsl +++ b/assets/voxygen/shaders/particle-vert.glsl @@ -118,8 +118,8 @@ void main() { } else if (inst_mode == FIRE) { attr = Attr( linear_motion( - vec3(rand0 * 0.25, rand1 * 0.25, 0.3), - vec3(rand2 * 0.1, rand3 * 0.1, 2.0 + rand4 * 1.0) + vec3(rand0 * 0.3, rand1 * 0.3, 0.2), + vec3(rand1 * 0.1, rand3 * 0.1, 3.0 + rand4 * 1.2) ), 1.0, vec4(2, 0.8 + rand5 * 0.3, 0, 1), diff --git a/assets/voxygen/voxel/armor/back/short-2.vox b/assets/voxygen/voxel/armor/back/short-2.vox new file mode 100644 index 0000000000..5b36780184 --- /dev/null +++ b/assets/voxygen/voxel/armor/back/short-2.vox @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4fd947f3506bbd98522206ca650575d998ebc1314dd529e65ff580628bbc846f +size 1368 diff --git a/assets/voxygen/voxel/humanoid_armor_back_manifest.ron b/assets/voxygen/voxel/humanoid_armor_back_manifest.ron index 7b31c4591d..8ab7638b62 100644 --- a/assets/voxygen/voxel/humanoid_armor_back_manifest.ron +++ b/assets/voxygen/voxel/humanoid_armor_back_manifest.ron @@ -20,5 +20,9 @@ vox_spec: ("armor.back.short-1", (-5.0, -1.0, -11.0)), color: None ), + "Short2": ( + vox_spec: ("armor.back.short-2", (-5.0, -1.0, -11.0)), + color: None + ), }, )) diff --git a/assets/voxygen/voxel/humanoid_main_weapon_manifest.ron b/assets/voxygen/voxel/humanoid_main_weapon_manifest.ron index 5913a9819a..8e9d389fee 100644 --- a/assets/voxygen/voxel/humanoid_main_weapon_manifest.ron +++ b/assets/voxygen/voxel/humanoid_main_weapon_manifest.ron @@ -484,6 +484,10 @@ vox_spec: ("weapon.bow.longbow_rare", (-2.0, -6.0, -2.5)), color: None ), + Bow("NatureOreLongbow"): ( + vox_spec: ("weapon.bow.longbow_ore_nature-0", (-2.0, -4.0, -4.5)), + color: None + ), // Farming Equipment Farming("Broom"): ( vox_spec: ("weapon.tool.broom-0", (-1.5, -4.0, -4.0)), @@ -548,7 +552,7 @@ color: None ), Staff("SceptreVelorite"): ( - vox_spec: ("weapon.staff.ore-nature", (-1.0, -6.0, -5.0)), + vox_spec: ("weapon.staff.ore-nature", (-2.0, -6.0, -5.0)), color: None ), // Misc diff --git a/assets/voxygen/voxel/weapon/bow/longbow_ore_nature-0.vox b/assets/voxygen/voxel/weapon/bow/longbow_ore_nature-0.vox new file mode 100644 index 0000000000..f9186b9d80 --- /dev/null +++ b/assets/voxygen/voxel/weapon/bow/longbow_ore_nature-0.vox @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cbd385cd0e9ddf48650149b82de277e258f599c9b6ce6054a6f13c3b2d697538 +size 1756 diff --git a/common/src/comp/inventory/item/tool.rs b/common/src/comp/inventory/item/tool.rs index 1356a3e636..ca0edf991b 100644 --- a/common/src/comp/inventory/item/tool.rs +++ b/common/src/comp/inventory/item/tool.rs @@ -245,7 +245,7 @@ impl Tool { energy_cost: 350, buildup_duration: Duration::from_millis(0), recover_duration: Duration::from_millis(1000), - base_healthchange: (150.0 * self.base_power()) as i32, + base_healthchange: (350.0 * self.base_power()) as i32, range: 100.0, max_angle: 90.0, }, diff --git a/common/src/sys/agent.rs b/common/src/sys/agent.rs index 16e940f7f9..d4a3960518 100644 --- a/common/src/sys/agent.rs +++ b/common/src/sys/agent.rs @@ -146,12 +146,12 @@ impl<'a> System<'a> for Sys { const AVG_FOLLOW_DIST: f32 = 6.0; const MAX_FOLLOW_DIST: f32 = 12.0; - const MAX_CHASE_DIST: f32 = 24.0; + const MAX_CHASE_DIST: f32 = 18.0; const LISTEN_DIST: f32 = 16.0; const SEARCH_DIST: f32 = 48.0; - const SIGHT_DIST: f32 = 128.0; - const MIN_ATTACK_DIST: f32 = 3.5; - const MAX_FLEE_DIST: f32 = 32.0; + const SIGHT_DIST: f32 = 80.0; + const MIN_ATTACK_DIST: f32 = 2.0; + const MAX_FLEE_DIST: f32 = 20.0; let scale = scales.get(entity).map(|s| s.0).unwrap_or(1.0); @@ -333,7 +333,7 @@ impl<'a> System<'a> for Sys { .try_normalized() .unwrap_or(Vec2::zero()) * speed - * 0.6; //Let small/slow animals flee slower than the player + * 0.2; //Let small/slow animals flee slower than the player inputs.jump.set_state(bearing.z > 1.5); inputs.swimup.set_state(bearing.z > 0.5); inputs.swimdown.set_state(bearing.z < 0.5); diff --git a/server/src/events/entity_creation.rs b/server/src/events/entity_creation.rs index 9c89743450..52d02e7de1 100644 --- a/server/src/events/entity_creation.rs +++ b/server/src/events/entity_creation.rs @@ -119,8 +119,8 @@ pub fn handle_create_waypoint(server: &mut Server, pos: Vec3) { .state .create_object(Pos(pos), comp::object::Body::CampfireLit) .with(LightEmitter { - col: Rgb::new(1.0, 0.65, 0.2), - strength: 5.0, + col: Rgb::new(1.0, 0.8, 0.0), + strength: 8.0, flicker: 1.0, animated: true, }) diff --git a/server/src/events/entity_manipulation.rs b/server/src/events/entity_manipulation.rs index 1876e67431..04746c56d1 100644 --- a/server/src/events/entity_manipulation.rs +++ b/server/src/events/entity_manipulation.rs @@ -263,32 +263,25 @@ pub fn handle_destroy(server: &mut Server, entity: EcsEntity, cause: HealthSourc }, }, Some(common::comp::Body::BipedLarge(biped_large)) => match biped_large.species { - _ => match rng.gen_range(0, 9) { + _ => match rng.gen_range(0, 8) { 0 => { assets::load_expect::>("common.loot_tables.loot_table_food") }, 1 => assets::load_expect::>( - "common.loot_tables.loot_table_armor_misc", - ), - 2 => assets::load_expect::>( - "common.loot_tables.loot_table_armor_light", + "common.loot_tables.loot_table_armor_nature", ), 3 => assets::load_expect::>( "common.loot_tables.loot_table_armor_heavy", ), - 4 => assets::load_expect::>( - "common.loot_tables.loot_table_armor_misc", - ), 5 => assets::load_expect::>( - "common.loot_tables.loot_table_weapon_common", - ), - 6 => assets::load_expect::>( "common.loot_tables.loot_table_weapon_uncommon", ), - 7 => assets::load_expect::>( + 6 => assets::load_expect::>( "common.loot_tables.loot_table_weapon_rare", ), - _ => assets::load_expect::>("common.loot_tables.loot_table"), + _ => assets::load_expect::>( + "common.loot_tables.loot_table_cave_large", + ), }, }, Some(common::comp::Body::Golem(golem)) => match golem.species { @@ -322,13 +315,9 @@ pub fn handle_destroy(server: &mut Server, entity: EcsEntity, cause: HealthSourc }, Some(common::comp::Body::Critter(critter)) => match critter.species { _ => match rng.gen_range(0, 3) { - 0 => { - assets::load_expect::>("common.loot_tables.loot_table_food") - }, - 1 => assets::load_expect::>( + _ => assets::load_expect::>( "common.loot_tables.loot_table_animal_parts", ), - _ => assets::load_expect::>("common.loot_tables.loot_table"), }, }, Some(common::comp::Body::Dragon(_)) => { diff --git a/voxygen/src/hud/crafting.rs b/voxygen/src/hud/crafting.rs index 799e275060..1b61ad03f2 100644 --- a/voxygen/src/hud/crafting.rs +++ b/voxygen/src/hud/crafting.rs @@ -405,7 +405,7 @@ impl<'a> Widget for Crafting<'a> { .set(state.ids.ingredient_img[i], ui); // Ingredients text and amount // Don't show inventory amounts above 999 to avoid the widget clipping - let over9k = "999+"; + let over9k = "99+"; let in_inv: &str = &self.inventory.item_count(item).to_string(); // Show Ingredients // Align "Required" Text below last ingredient @@ -429,7 +429,7 @@ impl<'a> Widget for Crafting<'a> { "{}x {} ({})", amount, item.name(), - if self.inventory.item_count(item) > 999 { + if self.inventory.item_count(item) > 99 { over9k } else { in_inv @@ -439,7 +439,7 @@ impl<'a> Widget for Crafting<'a> { Text::new(&input) .right_from(state.ids.ingredient_frame[i], 10.0) .font_id(self.fonts.cyri.conrod_id) - .font_size(self.fonts.cyri.scale(14)) + .font_size(self.fonts.cyri.scale(12)) .color(col) .set(state.ids.ingredients[i], ui); } diff --git a/world/src/layer/mod.rs b/world/src/layer/mod.rs index 4c2fa96f50..403db7ba06 100644 --- a/world/src/layer/mod.rs +++ b/world/src/layer/mod.rs @@ -2,7 +2,7 @@ use crate::{ column::ColumnSample, sim::SimChunk, util::{RandomField, Sampler}, - Index, IndexRef, CONFIG, + IndexRef, CONFIG, }; use common::{ assets, comp, @@ -130,10 +130,10 @@ pub fn apply_scatter_to<'a>( // Collecable Objects // Only spawn twigs in temperate forests (Twigs, false, |c| { - ((c.tree_density - 0.5).max(0.0) * MUSH_FACT *0.5, None) + ((c.tree_density - 0.5).max(0.0) * MUSH_FACT * 0.5, None) }), (Stones, false, |c| { - ((c.rockiness - 0.5).max(0.0) * MUSH_FACT *0.5, None) + ((c.rockiness - 0.5).max(0.0) * MUSH_FACT * 0.5, None) }), // Don't spawn Mushrooms in snowy regions (Mushroom, false, |c| { @@ -197,8 +197,8 @@ pub fn apply_scatter_to<'a>( c.humidity, CONFIG.desert_hum, 0.3, - )) * MUSH_FACT* 0.1, - + )) * MUSH_FACT + * 0.1, None, ) }), @@ -208,8 +208,8 @@ pub fn apply_scatter_to<'a>( c.humidity, CONFIG.desert_hum, 0.2, - )) * MUSH_FACT* 0.1, - + )) * MUSH_FACT + * 0.1, None, ) }), diff --git a/world/src/site/dungeon/mod.rs b/world/src/site/dungeon/mod.rs index b6b04c5750..5ec09e375e 100644 --- a/world/src/site/dungeon/mod.rs +++ b/world/src/site/dungeon/mod.rs @@ -461,6 +461,13 @@ impl Floor { && !tile_is_pillar { // Bad + let chosen = + assets::load_expect::>(match rng.gen_range(0, 5) { + 0 => "common.loot_tables.loot_table_humanoids", + 1 => "common.loot_tables.loot_table_armor_misc", + _ => "common.loot_tables.loot_table_cultists", + }); + let chosen = chosen.choose(); let entity = EntityInfo::at( tile_wcenter.map(|e| e as f32) // Randomly displace them a little @@ -472,6 +479,7 @@ impl Floor { .with_alignment(comp::Alignment::Enemy) .with_body(comp::Body::Humanoid(comp::humanoid::Body::random())) .with_automatic_name() + .with_loot_drop(assets::load_expect_cloned(chosen)) .with_main_tool(assets::load_expect_cloned(match rng.gen_range(0, 6) { 0 => "common.items.npc_weapons.axe.malachite_axe-0", 1 => "common.items.npc_weapons.sword.cultist_purp_2h-0", @@ -509,7 +517,7 @@ impl Floor { .with_alignment(comp::Alignment::Enemy) .with_body(comp::Body::Humanoid(comp::humanoid::Body::random())) .with_name(format!( - "{}\nCult Leader", + "Cult Leader {}", npc::get_npc_name(npc::NpcKind::Humanoid) )) .with_main_tool(assets::load_expect_cloned( @@ -620,7 +628,7 @@ impl Floor { self.tiles.get(tile_pos) { let room = &self.rooms[*room]; - if RandomField::new(room.seed).chance(Vec3::from(pos), room.loot_density) { + if RandomField::new(room.seed).chance(Vec3::from(pos), room.loot_density * 0.5) { BlockMask::new(Block::new(BlockKind::Chest, Rgb::white()), 1) } else { empty diff --git a/world/src/util/random.rs b/world/src/util/random.rs index 15eb502188..aaf6b208e3 100644 --- a/world/src/util/random.rs +++ b/world/src/util/random.rs @@ -10,7 +10,7 @@ impl RandomField { pub const fn new(seed: u32) -> Self { Self { seed } } pub fn chance(&self, pos: Vec3, chance: f32) -> bool { - (self.get(pos) % (1 << 10)) as f32 / ((1 << 10) as f32) < chance + (self.get(pos) % (1 << 16)) as f32 / ((1 << 16) as f32) < chance } }