Skip to content

Gun Rarity System#3616

Merged
Alkheemist merged 14 commits intomasterfrom
gun-rarity
Oct 12, 2025
Merged

Gun Rarity System#3616
Alkheemist merged 14 commits intomasterfrom
gun-rarity

Conversation

@Cheackraze
Copy link
Member

@Cheackraze Cheackraze commented Jun 22, 2025

About the PR

Adds a rudimentary rarity system for guns. It has 3 basic tiers of improvement, with each tier adding an additional 15-35% boost. The three potentially affected stats are Accuracy (recoil rates, minimums and maximums), Fire Rate, and Projectile Speed. These three values are shared across all types of guns and allows for the start of a very basic and generic system that can be applied to all guns without adding any additional burden on the weapon creators.

Why / Balance

This is an additional component to the recent gun balancing rework. With the baseline of all weapons having recently recieved cross-spectrum nerfs, this is the intended followup of having rare and unique weapon rewards that make for impactful expedition rewards. As a secondary goal, we aim to somewhat revive the 'black market' of weapons brokerage between players, giving the incentive to sell and trade more powerful versions of weaponry that can only be found through successful expedition completions.

Technical details

Very simple and lightweight implementation for now, as a proof of concept and to get it into the hands of the players. The only integration with upstream code is an added, empty broadcast event hooked into the storagefill system, so that we may catch on to an entity after it has completed filling with contents. This event has the possibility of future expansion with other systems.

How to test

Run some expeditions, carefully examine the guns you find as loot. Notice any changed names of weapons and the stats as they compare to the standard issue versions of these weapons. Alternatively, there is one "random dungeon loot" spawner that will spawn a random rarity, random t3 dungeon reward gun, and you can spawn multiple of these to see potential changed guns as well.

Media

image
image
image
image

Requirements

Breaking changes

Changelog

🆑 checkraze

  • add: Added rare and improved gun variants as expedition loot rewards

@Cheackraze Cheackraze changed the title gun-test Gun Rarity System Jun 22, 2025
@github-actions github-actions bot added the S: Needs Review This PR is awaiting reviews label Jun 22, 2025
@Cheackraze
Copy link
Member Author

Of special note: this does nothing to affect the distribution of said rewards, and is currently set at a flat distribution of 25% chance to have any currently spawned expedition gun to have rarity 0-3

@JojyAsmir
Copy link
Contributor

JojyAsmir commented Jun 23, 2025

Have you thought about adding a more unique effect to the "legendary" version of each gun, when the system is more fleshed out? Possibly with flavor text on the gun's description like in Borderlands?

A few example effect ideas;
-Gestio: Burst count increased, garunteed +fire rate modifier
-Faith: if the wielder has a Faith implanter, 50% chance to not consume ammo with each shot
-Hristov: Lightweight materials, significantly reduces movement slowdown when aiming

@Cheackraze
Copy link
Member Author

Have you thought about adding a more unique effect to the "legendary" version of each gun, when the system is more fleshed out? Possibly with flavor text on the gun's description like in Borderlands?

A few example effect ideas; -Gestio: Burst count increased, garunteed +fire rate modifier -Faith: if the wielder has a Faith implanter, 50% chance to not consume ammo with each shot -Hristov: Lightweight materials, significantly reduces movement slowdown when aiming

Goes against the stated goals of the system to be generic and apply to any and all future/past weapons. So no, not in this system.

@RustyRed64
Copy link
Contributor

Request: Could boosted stats on the statistic overview be colored green if they are getting boosted?

@gitjubx

This comment was marked as off-topic.

Copy link
Contributor

@blackknight954 blackknight954 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and it does work, so here's my stamp

Copy link
Contributor

@arimah arimah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is good to go as a proof of concept. I'd love to see how it plays out in practice.

I do think we'll need to make the modified stats inspectable, but that's a separate PR and not a blocker for getting this merged.

/// Modifier that can be applied to the gun's accuracy.
/// </summary>
[DataField]
public StatModifier AccuracyModifier = new StatModifier(0.65f, 0.85f);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extremely minor nitpick but technically this is an inaccuracy modifier and not an accuracy one (since lower number = better accuracy in this case)

@Alkheemist
Copy link
Contributor

tested, works.
frontier is now a looter shooter

@Alkheemist Alkheemist added S: Approved and removed S: Needs Review This PR is awaiting reviews S: Untriaged labels Oct 12, 2025
@Alkheemist Alkheemist merged commit 33067b2 into master Oct 12, 2025
11 checks passed
FrontierATC added a commit that referenced this pull request Oct 12, 2025
@arimah arimah mentioned this pull request Oct 14, 2025
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants