File: empire.lua

package info (click to toggle)
naev 0.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 386,084 kB
  • sloc: ansic: 93,149; xml: 87,292; python: 2,347; sh: 904; makefile: 654; lisp: 162; awk: 4
file content (24 lines) | stat: -rw-r--r-- 646 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24


require "factions/standing/skel.lua"


_fcap_kill     = 15 -- Kill cap
_fdelta_distress = {-1, 0} -- Maximum change constraints
_fdelta_kill     = {-5, 1} -- Maximum change constraints
_fcap_misn     = 30 -- Starting mission cap, gets overwritten
_fcap_misn_var = "_fcap_empire"

_fthis         = faction.get("Empire")

sec_hit_min = 10


function faction_hit( current, amount, source, secondary )
   local start_standing = _fthis:playerStanding()
   local f = default_hit( current, amount, source, secondary )
   if ( secondary and amount < 0 and f < sec_hit_min ) then
      f = math.min( start_standing, sec_hit_min )
   end
   return f
end