Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

МиниАпстрим #71

Merged
merged 44 commits into from
Nov 3, 2024
Merged
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
060c3e9
Rules v5 (#1948)
Leander-0 Oct 25, 2024
27db1b9
Automatic Changelog (#1948)
FrontierATC Oct 25, 2024
78644c9
No [color] for discord (#2326)
whatston3 Oct 25, 2024
8fcbd11
Adjust tyne price (#2328)
Tych0theSynth Oct 25, 2024
879e22e
Automatic Changelog (#2328)
FrontierATC Oct 25, 2024
3be4d61
Update phoenix.yml (#2333)
dvir001 Oct 26, 2024
1cf18c1
Space VGRoids support (#2334)
dvir001 Oct 26, 2024
a698d0d
Migration file split (#2315)
dvir001 Oct 26, 2024
efb3bca
Medical recipe guidebook entries (#2331)
whatston3 Oct 26, 2024
1278961
Update medical.yml (#2335)
dustylens Oct 26, 2024
27f7e4b
Automatic Changelog (#2331)
FrontierATC Oct 26, 2024
924d0e1
Rosy the Maple Mothroach Cloak (#2296)
dustylens Oct 26, 2024
d021bc5
Automatic Changelog (#2296)
FrontierATC Oct 26, 2024
e10e5f7
Medical Bounties (#2193)
whatston3 Oct 26, 2024
20f6dc9
Automatic Changelog (#2193)
FrontierATC Oct 26, 2024
572ea80
Update animals.yml (#2312)
dvir001 Oct 26, 2024
c5bf903
Automatic Changelog (#2312)
FrontierATC Oct 26, 2024
43e4efb
Remove world loader from outpost STC terminals, bus shuttle console. …
whatston3 Oct 27, 2024
e406872
Remove paracusia and changes solar flare event (#2340)
Leander-0 Oct 27, 2024
0a4c7bb
Automatic Changelog (#2340)
FrontierATC Oct 27, 2024
0eee6c2
Honey (#2282)
RichardRahl123 Oct 27, 2024
db1c95c
Automatic Changelog (#2282)
FrontierATC Oct 27, 2024
3509f5f
Update caduceus.yml (#2343)
dustylens Oct 27, 2024
b51b21f
lathe recipes clean up (#2303)
ErhardSteinhauer Oct 27, 2024
1c48efd
Automatic Changelog (#2303)
FrontierATC Oct 27, 2024
721b6db
added chem dispenser to caduceus.yml (#2321)
DmitriTheDemon Oct 28, 2024
657e9bc
Automatic Changelog (#2321)
FrontierATC Oct 28, 2024
7a833ed
Cvar cleanups (#2325)
dvir001 Oct 29, 2024
309ee72
Goblin Posters (#2345)
ErhardSteinhauer Oct 31, 2024
c5b4c9f
Automatic Changelog (#2345)
FrontierATC Oct 31, 2024
fef1639
Cargo Sell - fix order of checks, no selling station pets. (#2354)
whatston3 Nov 1, 2024
e7bf60f
Automatic Changelog (#2354)
FrontierATC Nov 1, 2024
e459747
bedrolls (#2332)
ErhardSteinhauer Nov 1, 2024
ca6a70c
Automatic Changelog (#2332)
FrontierATC Nov 1, 2024
1f03177
Adds security locked versions of sturdy shelves (#2348)
Tych0theSynth Nov 1, 2024
66f1bdc
Automatic Changelog (#2348)
FrontierATC Nov 1, 2024
0a23cd4
Bluespace rule + Events cleanup and improvements (#2337)
dvir001 Nov 1, 2024
7aa4e12
Automatic Changelog (#2337)
FrontierATC Nov 1, 2024
aa1851b
Removing Goblinbane complex interactions (#2355)
DmitriTheDemon Nov 1, 2024
f9b9372
Automatic Changelog (#2355)
FrontierATC Nov 1, 2024
f458ee3
Add suffix to damaged RTG generator flatpack (#2360)
arimah Nov 3, 2024
2a69cc4
Конфликты
Zekins3366 Nov 3, 2024
7528e08
фикс
Zekins3366 Nov 3, 2024
2999f4b
fix's event
mersen-tyn Nov 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Cargo Sell - fix order of checks, no selling station pets. (new-front…
…iers-14#2354)

* Review sale precondition check order

* Frontier pets shouldn't be sold

* Push dead mob check above recursive chunk
whatston3 authored Nov 1, 2024
commit fef1639f963cb6c9b842ec9a9bf26d96275bbc21
22 changes: 8 additions & 14 deletions Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@
using Robust.Shared.Map;
using Robust.Shared.Random;
using Robust.Shared.Audio;
using Content.Shared.Mind.Components; // Frontier

namespace Content.Server.Cargo.Systems;

@@ -319,15 +320,14 @@ private void GetPalletGoods(EntityUid consoleUid, EntityUid gridUid, out HashSet

private bool CanSell(EntityUid uid, TransformComponent xform)
{
if (_mobQuery.HasComponent(uid))
{
if (_mobQuery.GetComponent(uid).CurrentState == MobState.Alive)
{
return false;
}
// Frontier: Look for blacklisted items and stop the selling of the container.
if (_blacklistQuery.HasComponent(uid))
return false;

return true;
}
// Frontier: allow selling dead mobs
if (_mobQuery.TryComp(uid, out var mob) && mob.CurrentState != MobState.Dead)
return false;
// End Frontier

var complete = IsBountyComplete(uid, out var bountyEntities);

@@ -342,12 +342,6 @@ private bool CanSell(EntityUid uid, TransformComponent xform)
return false;
}

// Look for blacklisted items and stop the selling of the container.
if (_blacklistQuery.HasComponent(uid))
{
return false;
}

return true;
}

1 change: 1 addition & 0 deletions Resources/Prototypes/Entities/Mobs/NPCs/pets.yml
Original file line number Diff line number Diff line change
@@ -825,6 +825,7 @@
attributes:
proper: true
gender: male
- type: CargoSellBlacklist # Frontier

- type: entity
name: Tropico
10 changes: 7 additions & 3 deletions Resources/Prototypes/_NF/Entities/Mobs/NPCs/pets.yml
Original file line number Diff line number Diff line change
@@ -40,6 +40,7 @@
- Cat
- PetsNT
- type: ShowJobIcons
- type: CargoSellBlacklist

- type: entity
name: Clarpy
@@ -85,6 +86,7 @@
factions:
- Cat
- PirateNF
- type: CargoSellBlacklist

- type: entity
name: Cappy
@@ -146,12 +148,13 @@
- type: InteractionPopup
interactSuccessSound:
path: /Audio/_NF/Animals/nfsdcat_meow.ogg
- type: CargoSellBlacklist

- type: entity
name: Clugg
parent: [NFMobPet, MobCatCaracalGhost]
id: MobCatClugg
description:
description:
components:
- type: Sprite
drawdepth: Mobs
@@ -180,7 +183,7 @@
name: Mistake
parent: MobCatGhost
id: MobCatMistake
description: ???
description: "???"
components:
- type: Sprite
drawdepth: Mobs
@@ -256,4 +259,5 @@
- enum.DamageStateVisualLayers.Base:
kobold: YipYipColors
- horns:
horns_curled: YipYipHornColors
horns_curled: YipYipHornColors
- type: CargoSellBlacklist