Merge pull request #10700 from datlo/bookforce

Add force to books, extra to space law
This commit is contained in:
variableundefined
2019-01-26 19:45:34 +08:00
committed by GitHub
2 changed files with 11 additions and 1 deletions
+10 -1
View File
@@ -167,8 +167,9 @@
icon_state ="book"
throw_speed = 1
throw_range = 5
force = 2
w_class = WEIGHT_CLASS_NORMAL //upped to three because books are, y'know, pretty big. (and you could hide them inside eachother recursively forever)
attack_verb = list("bashed", "whacked", "educated")
attack_verb = list("bashed", "whacked")
burn_state = FLAMMABLE
var/dat // Actual page content
@@ -283,6 +284,14 @@
else
return ..()
/obj/item/book/attack(mob/M, mob/living/user)
if(user.a_intent == INTENT_HELP)
force = 0
attack_verb = list("educated")
else
force = initial(force)
attack_verb = list("bashed", "whacked")
..()
/*
* Barcode Scanner