forked from github/server
Revert "add failing test for skill bonus from mine, start work"
This reverts commit ab87b1da85
.
This commit is contained in:
parent
ab87b1da85
commit
485e8f0ce4
|
@ -49,11 +49,5 @@ function test_adamantium2()
|
|||
process_orders()
|
||||
assert_equal(1, u1:get_item("adamantium"))
|
||||
assert_equal(adamantium - 1, r:get_resource("adamantium"))
|
||||
|
||||
-- mines give +1 to mining. mining 16 should give 2 adamantium
|
||||
u1:set_skill("mining", 15)
|
||||
process_orders()
|
||||
assert_equal(3, u1:get_item("adamantium"))
|
||||
assert_equal(adamantium - 3, r:get_resource("adamantium"))
|
||||
end
|
||||
|
||||
|
|
|
@ -923,7 +923,7 @@ static void allocate_resource(unit * u, const resource_type * rtype, int want)
|
|||
allocation *al;
|
||||
const resource_type *rring;
|
||||
int amount, skill, skill_mod = 0;
|
||||
variant save_mod = frac_make(1, 1);
|
||||
variant save_mod;
|
||||
|
||||
/* momentan kann man keine ressourcen abbauen, wenn man daf<61>r
|
||||
* Materialverbrauch hat: */
|
||||
|
@ -950,15 +950,9 @@ static void allocate_resource(unit * u, const resource_type * rtype, int want)
|
|||
return;
|
||||
}
|
||||
}
|
||||
if (u->building && u->building->type->modifiers) {
|
||||
building *b = inside_building(u);
|
||||
if (b) {
|
||||
message *msg = get_modifiers(u, b->type->modifiers, &save_mod, &skill_mod);
|
||||
if (msg) {
|
||||
ADDMSG(&u->faction->msgs, msg);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else {
|
||||
save_mod.sa[0] = 1;
|
||||
save_mod.sa[1] = 1;
|
||||
}
|
||||
|
||||
/* Bergw<67>chter k<>nnen Abbau von Eisen/Laen durch Bewachen verhindern.
|
||||
|
|
|
@ -73,7 +73,6 @@ extern "C" {
|
|||
void(*age) (struct building *);
|
||||
double(*taxes) (const struct building *, int size);
|
||||
struct attrib *attribs;
|
||||
struct resource_mod *modifiers;
|
||||
} building_type;
|
||||
|
||||
extern struct selist *buildingtypes;
|
||||
|
|
Loading…
Reference in New Issue