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

Added extra flair to chicken hunter event #1332

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 6 additions & 1 deletion src/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { loc } from './locale.js';
import { races, traits, fathomCheck, blubberFill } from './races.js';
import { govTitle, garrisonSize, armyRating } from './civics.js';
import { housingLabel, drawTech, actions } from './actions.js';
import { flib } from './functions.js';
import { tradeRatio } from './resources.js';
import { checkControlling, soldierDeath } from './civics.js';
import { govActive } from './governor.js';
Expand Down Expand Up @@ -594,10 +595,14 @@ export const events = {
type: 'major',
effect(){
let dead = Math.floor(seededRandom(2,jobScale(10)));
let type = Math.floor(seededRandom(0,10));
if (dead > global.resource[global.race.species].amount){ dead = global.resource[global.race.species].amount; }
global.resource[global.race.species].amount -= dead;
blubberFill(dead);
return loc('event_chicken',[loc(`event_chicken_eaten${Math.floor(seededRandom(0,10))}`),dead,loc(`event_chicken_seasoning${Math.floor(seededRandom(0,10))}`)]);
if(type === 7){
return loc('event_chicken',[loc(`event_chicken_eaten${type}`, [flib('name')]),dead,loc(`event_chicken_seasoning${Math.floor(seededRandom(0,10))}`)]);
}
return loc('event_chicken',[loc(`event_chicken_eaten${type}`),dead,loc(`event_chicken_seasoning${Math.floor(seededRandom(0,10))}`)]);
}
},
brawl:{
Expand Down
2 changes: 1 addition & 1 deletion strings/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@
"event_chicken_eaten4": "velociraptor",
"event_chicken_eaten5": "gluttony demon",
"event_chicken_eaten6": "bloodthirsty feral chicken",
"event_chicken_eaten7": "group of hunters",
"event_chicken_eaten7": "group of %0 hunters",
"event_chicken_eaten8": "swarm of ants",
"event_chicken_eaten9": "cute bunny that's surprisingly fast, deadly, and hungry for meat",
"event_chicken_seasoning0": "Lemon pepper seasoning",
Expand Down