Skip to content

Instantly share code, notes, and snippets.

@cthae
cthae / spawner_pvp.md
Last active January 19, 2025 21:10
2258: magic lockers description

So dungeon lockers. We have t2, t3, t4 and t5 lockers as for now. Here's how they work:

  • t2 lockers are Sierra and Themepark. They do have a lower chance of spawning t3 gear with low stats. We should probably have more t2. V15 is more of a t1.5 in that regard.
  • t3 lockers are blackrock, hermit and crater. They mostly spawn ok t3 gear and lower stats t3.5 gear (3.5 are things like turboplasmas, brotherhood armors, bridgekeeprs, and PA). T3 lockers also have a very low chance of spawning... SPECIAL implants. The chance for that is 1/5000. But ten accumulations will effectively make it 1/500. Maybe I'll change it but whatever. And these lockers don't spawn t4 gear. Well I don't consider PA t4. Given how there's also HPA and APA.
  • t4 lockers are blackrock lvl3, reno sewers, la grange 2x, WH 2x. They spawn less t3 (to avoid clutter), better t3.5 (better modifiers), 1/500 chance to spawn a SPECIAL implant, 1/1000 to spawn a COMBAT one. 1% chance to spawn either oil cans, t4 armors or t4 weapons, some t4 ammo too
@cthae
cthae / gist:f84a50bcd765f74596ae3017c513d44e
Last active February 27, 2022 07:03
adding a row into a table
function addSource(){
const count = document.querySelector("table#mainSources").querySelectorAll("tr").length;
const newRow = document.querySelector("tr#tr-0").cloneNode(true);
newRow.id = "tr-"+count;
newRow.querySelectorAll("td").forEach(td => {
const name = td.getAttribute("name");
if (name == "alias" || name == "mID"){
td.querySelector("label").innerHTML = td.querySelector("label").innerHTML.replace(":", " " + count + ":");
td.querySelector("input").id = td.querySelector("input").getAttribute("id").replace("0",count);
td.querySelector("input").value = "";