Update reputation information
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@20651 282e977c-c81d-0410-88c4-b93c2d0d6712master
parent
d7abe3b5f3
commit
a218dd2560
|
@ -50,7 +50,7 @@ WHERE name=? AND ABS(rep) > 0;
|
|||
result = con.execute(query, (player,)).fetchall()
|
||||
return result
|
||||
|
||||
def record_kill(race, region, player, fraction=0.0005, limit=0.4):
|
||||
def record_kill(race, region, player, fraction=0.0001, limit=0.4):
|
||||
con = _get_db()
|
||||
query = """
|
||||
WITH updates AS (
|
||||
|
|
|
@ -12,43 +12,43 @@ INSERT OR REPLACE INTO regions VALUES
|
|||
('Gnarg', 'ALL', 0.25);
|
||||
|
||||
INSERT OR REPLACE INTO relations VALUES
|
||||
('Valriel', 'angel', 1),
|
||||
('Valriel', 'angel', 10),
|
||||
('Valriel', 'demon', -1),
|
||||
('Gorokh', 'demon', 1),
|
||||
('Gorokh', 'demon', 10),
|
||||
('Gorokh', 'angel', -1),
|
||||
('Devourers', 'undead', 1),
|
||||
('Devourers', 'undead', 10),
|
||||
('Devourers', 'none', -1),
|
||||
('Sorig', 'air_elemental', 1),
|
||||
('Sorig', 'air_elemental', 10),
|
||||
('Sorig', 'none', -1),
|
||||
('Ruggilli', 'consuming_fire_creatures', 1),
|
||||
('Ruggilli', 'consuming_fire_creatures', 10),
|
||||
('Ruggilli', 'chaotic_water_creatures', -1),
|
||||
('Ixalovh', 'chaotic_water_creatures', 1),
|
||||
('Ixalovh', 'chaotic_water_creatures', 10),
|
||||
('Ixalovh', 'consuming_fire_creatures', -1),
|
||||
('Gaea', 'animal', 1),
|
||||
('Gaea', 'bird', 1),
|
||||
('Gaea', 'slime', 1),
|
||||
('Gaea', 'insect', 1),
|
||||
('Gaea', 'reptile', 1),
|
||||
('Gaea', 'water_elemental', 1),
|
||||
('Gaea', 'earth_elemental', 1),
|
||||
('Gaea', 'air_elemental', 1),
|
||||
('Gaea', 'fire_elemental', 1),
|
||||
('Gaea', 'animal', 10),
|
||||
('Gaea', 'bird', 10),
|
||||
('Gaea', 'slime', 10),
|
||||
('Gaea', 'insect', 10),
|
||||
('Gaea', 'reptile', 10),
|
||||
('Gaea', 'water_elemental', 10),
|
||||
('Gaea', 'earth_elemental', 10),
|
||||
('Gaea', 'air_elemental', 10),
|
||||
('Gaea', 'fire_elemental', 10),
|
||||
('Gaea', 'undead', -1),
|
||||
('Gaea', 'unnatural', -1),
|
||||
('Valkyrie', 'human', 1),
|
||||
('Valkyrie', 'troll', 1),
|
||||
('Valkyrie', 'human', 10),
|
||||
('Valkyrie', 'troll', 10),
|
||||
('Valkyrie', 'unnatural', -1),
|
||||
('Valkyrie', 'angel', -1),
|
||||
('Valkyrie', 'demon', -1),
|
||||
('Valkyrie', 'undead', -1),
|
||||
('Mostrai', 'dwarf', 1),
|
||||
('Mostrai', 'dwarf', 10),
|
||||
('Mostrai', 'goblin', -1),
|
||||
('Mostrai', 'giant', -1),
|
||||
('Lythander', 'faerie', 1),
|
||||
('Lythander', 'faerie', 10),
|
||||
('Lythander', 'goblin', -1),
|
||||
('Lythander', 'troll', -1),
|
||||
('Gnarg', 'goblin', 1),
|
||||
('Gnarg', 'giant', 1),
|
||||
('Gnarg', 'troll', 1),
|
||||
('Gnarg', 'goblin', 10),
|
||||
('Gnarg', 'giant', 10),
|
||||
('Gnarg', 'troll', 10),
|
||||
('Gnarg', 'faerie', -1),
|
||||
('Gnarg', 'dwarf', -1);
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
INSERT OR REPLACE INTO regions VALUES
|
||||
('Dragons', 'ALL', 0.4),
|
||||
('Scorn', 'scorn', 0.5),
|
||||
('Scorn', 'scornarena', 0.5),
|
||||
('Scorn', 'scorncounty', 0.5),
|
||||
('Scorn', 'scornoldcity', 0.5);
|
||||
|
||||
|
@ -13,7 +12,7 @@ INSERT OR REPLACE INTO relations VALUES
|
|||
('Scorn', 'dragon', -1),
|
||||
('Scorn', 'giant', -1),
|
||||
('Scorn', 'goblin', -1),
|
||||
('Scorn', 'human', 1),
|
||||
('Scorn', 'human', 10),
|
||||
('Scorn', 'reptile', -1),
|
||||
('Scorn', 'troll', -1),
|
||||
('Scorn', 'undead', -1),
|
||||
|
|
Loading…
Reference in New Issue