One more lore entry (sorry, didn't feel motivated today).

Adjusted ammo fabricator prioritization.
Adjusted weapon spawns for Hexen (more logical progression).
Increased probability of Embiggener spawns from Hexen weapon pieces.
This commit is contained in:
Mari the Deer 2020-05-04 20:48:54 +02:00
commit 2123a4564b
3 changed files with 76 additions and 14 deletions

View file

@ -3,14 +3,34 @@ Luna Event
TAB
Lore
REL
Nukuri;WhiteScar;Saya;SUSAN;Kereshnovka
Nukuri;WhiteScar;Saya;SUSAN;Kereshnovka;XAnimen
TXT
Name: Luna Event
Classification: Alien Contact
Date: February 2021
\cxName:\c-
\cf Luna Event\c-
\cxClassification:\c-
\cf Alien Contact\c-
\cxDate:\c-
\cf February 2021\c-
Summary: Name given to the first contact between humans and the Nukuri race, who had been observing us for centuries from within a hidden research facility on the Moon. This was something that Nikita Kunau, head of human studies, had planned for many years, although she didn't expect to do it so soon, but there was no other choice, as a major threat to the planet had surfaced, a rogue AI known as SUSAN, undefeatable by any weapon humanity could produce. Following the hasty announcement, Nukuri forces were deployed and successfully neutralized the AI at its core, a megastructure located on the seas north of Kereshnovka. After all was over, the Nukuri would begin to make themselves at home among us.
During the final days of the **SUSAN** rogue AI incident, when all hope was lost for mankind's survival, one very unexpected event happened. An emergency message was sent from the Moon, overtaking all video and radio signals. It was the announcement of an alien species making their presence known. The full transcript is as follows:
Addendum: The alliance with the Nukuri provided a major boost in scientific advancements for the human race, thanks to their much more advanced technology becoming available to us. Unfortunately, all this came to an end when WW3 happened.
\cf"This is a message for all of humankind. We are the Nukuri. For thousands of years we have observed you, studied you, while in hiding. We were to ensure absolute secrecy, and avoid influencing your developments in any way, until the time was right for our first contact. However, the current circumstances call for this contact to happen much sooner than we had planned. Your world is in immediate danger of ultimate destruction, and we shall not stand still and watch. Do not fear, the threat will be dealt with soon. May the stars shine bright on you."\c-
Saya's Note: Man, I miss those days. Back then you'd see all sorts of Nukuri cuties in the street, and I'd pretty much hang out with Zana-sama every weekend. Nowadays with the "White Scar" treaty in effect, life just sucks.
Following the announcement, SUSAN's countdown to destruction was halted, and control of Russia's missile systems was reestablished. The **Nukuri** had somehow remotely neutralized the AI at its core, as nothing could truly be observed by the units stationed right outside the range of its self-defense systems, the whole structure simply shut itself down.
Shortly after, and over many days, regular communications with the Nukuri would happen. Many questions would be answered, such as their origins (a remote solar system called **Xathar**, located in the Andromeda galaxy), how long had they been studying us (since 1309 BC), and if they were peaceful (to this last one, there was a long pause before getting a simple "yes", which raised some concerns).
On May 11th of 2021, an alliance between humans and Nukuri was finally signed, after the first reunion of **Emperor Ledora Yathai** with the leaders of the major nations of Earth. By the end of the year, many among the Nukuri had already made themselves at home in our planet, most coming from the **Luna Research Institute for Human Studies**, who desired to have a more in-depth experience of our culture.
In addition, the alliance provided humanity with a major boost in technological development, thanks to their various advances and knowledge being made available to us. Among other things, the Nukuri put a lot of effort into making their own computer technology compatible with ours, resulting in the powerful **Nekern Architecture**. They also helped alleviate the struggles for clean energy by introducing us to the **Nokorokinylum Microfusion Engine**, a method of cold fusion requiring little space and equipment, but also rather exotic elements (which are thankfully easily available in their homeworld).
These major changes also brought the attention of other species, neighbours of the Nukuri, who also showed interest in us. Humanity was made aware of just how, despite the vast emptiness of it all, the universe has much more life in it that one could have imagined. Plans had been made, for Earth to become part of the so-called **X'Animen Coalition**, an interplanetary association the Nukuri were part of.
However, it all came to a sudden end when, in June of 2073, **World War 3** began. In a single year, our alliance, all the great advancements, everything was completely undone, in what is often cited as the biggest mistake in human history: **The White Scar**.
\cxSaya's Notes:\c-
\cfEveryone really thought it was all over by then. Even us, with our damn anti-apocalypse bunker of a house. There was no way that we'd survive what that thing was going to do, practically setting off all the fucking nukes it could reach at once. And then THAT happened, kind of cliched af to be done right at the very last moment, a fucking heroic save like that. Bet they did it on purpose to look cool, heh.\c-
\cfAnyway, life was good back then, with all those Nukuri cuties hanging out with us. You could see so many of them in the street, and well, that was also when I met Zana-sama too, best goddamn Christmas gift of my life, heh. Really REALLY miss those days, you know, pretty much hanging out with her every weekend or so. Nowadays, life just plain sucks, and I can only ever get the chance to like, send and get messages super-rarely by passing them through the Lunar Embassy (when those stupid-ass rabbits actually do their jobs).\c-
\cfI really wish things would go back to how they used to be. I mean, sure, since our country didn't sign the bullshit White Scar treaty we can still use their tech, but they can't come here themselves, nor are we allowed to go there either. Fuck all that shit.\c-

View file

@ -792,6 +792,46 @@ Class AmmoFabricator : Inventory abstract
return Super.CreateCopy(other);
}
private bool CmpFabAmmo( Class<Ammo> a, Class<Ammo> b )
{
let ia = Owner.FindInventory(a);
int cnta = ia?ia.Amount:0;
int maxa = ia?ia.MaxAmount:GetDefaultByType(a).Amount;
let ib = Owner.FindInventory(b);
int cntb = ib?ib.Amount:0;
int maxb = ib?ib.MaxAmount:GetDefaultByType(b).Amount;
double facta = cnta/double(maxa);
double factb = cntb/double(maxb);
return (facta > factb);
}
private int partition_fabammo( Array<Class<Ammo> > a, int l, int h )
{
Class<Ammo> pv = a[h];
int i = (l-1);
for ( int j=l; j<=(h-1); j++ )
{
if ( CmpFabAmmo(pv,a[j]) )
{
i++;
Class<Ammo> tmp = a[j];
a[j] = a[i];
a[i] = tmp;
}
}
Class<Ammo> tmp = a[h];
a[h] = a[i+1];
a[i+1] = tmp;
return i+1;
}
private void qsort_fabammo( Array<Class<Ammo> > a, int l, int h )
{
if ( l >= h ) return;
int p = partition_fabammo(a,l,h);
qsort_fabammo(a,l,p-1);
qsort_fabammo(a,p+1,h);
}
bool FabricateAmmo()
{
Array<Class<Ammo> > available;
@ -805,7 +845,9 @@ Class AmmoFabricator : Inventory abstract
if ( !(def.Stamina) || (def.Stamina > maxunitprice) ) continue;
available.Push(a);
}
// start from lowest to highest needed until we fill the inventory or run out of budget
// sort by "need weight" (prioritize ammo that the player lacks over ammo that te player has plenty of
qsort_fabammo(available,0,available.Size()-1);
// loop through until we fill the inventory or run out of budget
bool given = false;
int consumed = 0;
String fabstr = "";
@ -920,7 +962,7 @@ Class FabricatorTier3 : AmmoFabricator
Inventory.Icon "graphics/HUD/Icons/I_Fabricator3.png";
Inventory.PickupMessage "$T_FABRICATOR3";
Inventory.MaxAmount 10;
AmmoFabricator.Budget 120000;
AmmoFabricator.Budget 150000;
AmmoFabricator.PerType 8;
AmmoFabricator.MaxUnitPrice 80000;
Stamina 150000;

View file

@ -2473,14 +2473,14 @@ Class SWWMHandler : EventHandler
else e.Replacement = 'Wallbuster';
}
else if ( (e.Replacee is 'Chaingun') || (e.Replacee is 'Blaster') || (e.Replacee is 'FWeapHammer') ) e.Replacement = 'Eviscerator';
else if ( (e.Replacee is 'RocketLauncher') || (e.Replacee is 'PhoenixRod') || (e.Replacee is 'CWeapFlame') ) e.Replacement = 'Hellblazer';
else if ( (e.Replacee is 'RocketLauncher') || (e.Replacee is 'PhoenixRod') || (e.Replacee is 'FWeaponPiece3') ) e.Replacement = 'Hellblazer';
else if ( (e.Replacee is 'PlasmaRifle') || (e.Replacee is 'SkullRod') )
{
if ( Random[Replacements](0,2) ) e.Replacement = 'Sparkster';
else e.Replacement = 'SilverBullet';
}
else if ( e.Replacee is 'MWeapLightning' ) e.Replacement = 'Sparkster';
else if ( e.Replacee is 'FWeaponPiece3' ) e.Replacement = 'SilverBullet';
else if ( e.Replacee is 'CWeapFlame' ) e.Replacement = 'Sparkster';
else if ( e.Replacee is 'MWeapLightning' ) e.Replacement = 'SilverBullet';
else if ( (e.Replacee is 'BFG9000') || (e.Replacee is 'Mace') )
{
if ( !Random[Replacements](0,2) ) e.Replacement = 'Ynykron';
@ -2659,8 +2659,8 @@ Class SWWMHandler : EventHandler
|| (e.Replacee == 'CWeaponPiece1') || (e.Replacee == 'CWeaponPiece3')
|| (e.Replacee == 'MWeaponPiece2') || (e.Replacee == 'MWeaponPiece3') )
{
if ( Random[Replacements](0,7) ) e.Replacement = 'SWWMNothing';
else if ( Random[Replacements](0,3) ) e.Replacement = 'HammerspaceEmbiggener';
if ( Random[Replacements](0,1) ) e.Replacement = 'SWWMNothing';
else if ( Random[Replacements](0,5) ) e.Replacement = 'HammerspaceEmbiggener';
else e.Replacement = 'GoldShell';
}
else if ( (e.Replacee == 'ArmorBonus') || (e.Replacee == 'ArtiTimeBomb') || (e.Replacee == 'ArtiBlastRadius') ) e.Replacement = 'ArmorNuggetItem';